-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
81 lines (73 loc) · 2.97 KB
/
Program.cs
File metadata and controls
81 lines (73 loc) · 2.97 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System;
namespace ClearFivem
{
class Program
{
static void Main(string[] args)
{
while (true)
{
// Limpiar la consola
Console.Clear();
// Información del creador y versión del programa con arte ASCII
Utilities.PrintAsciiArt();
Console.WriteLine();
Console.WriteLine("Welcome to ClearFiveM by Imperio System v1.6");
Console.WriteLine();
// Mostrar menú de opciones
ShowMenu();
// Leer opción del usuario
string option = Console.ReadLine() ?? string.Empty;
// Limpiar la consola antes de realizar la acción
Console.Clear();
switch (option)
{
case "1":
ClearCache.Clear();
break;
case "2":
ClearLogsAndCrashes.Clear();
break;
case "3":
DigitalEntitlements.Clear();
break;
case "4":
ClearFileKeysBinds.Clear();
break;
case "5":
ClearTempFiles.Clear();
break;
case "6":
// Nueva opción combinada: Limpiar Cache, Logs/Crashes y Archivos Temporales
Console.WriteLine("Starting Combined Cleaning (Options 1, 2, 5)...");
ClearCache.Clear();
ClearLogsAndCrashes.Clear();
ClearTempFiles.Clear();
Console.WriteLine("Combined Cleaning completed successfully!");
break;
case "7":
Console.WriteLine("Thanks for using ClearFiveM by Imperio Company. Goodbye!");
return;
default:
Console.WriteLine("Invalid option. Please select a valid option.");
break;
}
// Esperar que el usuario presione una tecla para volver al menú
Console.WriteLine("Press any key to return to the menu...");
Console.ReadKey();
}
}
static void ShowMenu()
{
Console.WriteLine("Please select an option:");
Console.WriteLine("1. Clean Cache");
Console.WriteLine("2. Clean Logs and Crashes");
Console.WriteLine("3. Clean Digital Entitlements (OPTIONAL)");
Console.WriteLine("4. Clear file keysBings (OPTIONAL)");
Console.WriteLine("5. Clean Temporary Files (OPTIONAL)");
Console.WriteLine("6. Combined Cleaning (Options 1, 2, 5)");
Console.WriteLine("7. Exit");
Console.Write("Option: ");
}
}
}