-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMessages.cs
42 lines (35 loc) · 1.61 KB
/
Messages.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
namespace ASRT_No_AI;
internal static class Messages
{
const string GAME_NAME = "ASRT No AI Tool";
internal static void GameNotFoundError()
{
MessageBox.Show("Please start the game first!", GAME_NAME, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
internal static void VersionMismatchError()
{
MessageBox.Show("Cannot apply patch. Please ensure you are\n" +
"running the correct version of the game!", GAME_NAME, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
internal static void CannotAccessMemoryError()
{
MessageBox.Show("An unexpected error occurred while trying to access the memory of the game process.\n" +
"Ensure your user has enough permissions to do so.\n\n" +
"Check if the game is running under admin privileges.\n" +
"If so, this tool needs to be run as admin as well!", GAME_NAME, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
internal static void Success()
{
MessageBox.Show("You are now free from the AI in Single Race mode!", GAME_NAME, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
internal static DialogResult GameAlreadyPatched()
{
return MessageBox.Show("It appears your game is already patched\n" +
"Do you want to remove the patch and restore stock settings?", GAME_NAME, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
}
internal static void GameUnpatched()
{
MessageBox.Show("No AI mod has been disabled!\n" +
"Enjoy your stock experience!", GAME_NAME, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}