Delete src/Util/OpenGamePrompt.cs

This commit is contained in:
sonic 2024-08-18 19:40:37 +02:00 committed by GitHub
parent b9efee5aad
commit 07c1438658
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,23 +0,0 @@
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.AspNetCore.Mvc;
using System.Diagnostics;
namespace sodoff.Utils;
public class OpenGamePrompt {
public static void prompt() {
string key;
Console.WriteLine("Do you want to open the game");
Console.WriteLine("yes or no");
key = Console.ReadLine();
if (key == "yes")
{
Console.WriteLine("Opening game");
Process.Start(Directory.GetParent(Environment.CurrentDirectory) + "/Client/" + "DOMain.exe");
}
if (key == "no")
{
Console.WriteLine("You can manually open the game now");
}
}
}