mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-12 00:38:48 -07:00
Delete src/Util/OpenGamePrompt.cs
This commit is contained in:
parent
b9efee5aad
commit
07c1438658
@ -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");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user