-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathremove_shader_cache.py
More file actions
44 lines (33 loc) · 1.18 KB
/
Copy pathremove_shader_cache.py
File metadata and controls
44 lines (33 loc) · 1.18 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
"""
Shader Cache Remover - Main Entry Point
A modular application for detecting and removing shader cache files
from various applications and game engines.
"""
import sys
from pathlib import Path
# Add the current directory to Python path
current_dir = Path(__file__).parent
if str(current_dir) not in sys.path:
sys.path.insert(0, str(current_dir))
def main():
"""Main entry point for the application."""
try:
# Import GUI components directly
from shader_cache_remover.gui.main_window import MainWindow
import tkinter as tk
# Create the root window and application
root = tk.Tk()
app = MainWindow(root)
# Set up the window close handler
root.protocol("WM_DELETE_WINDOW", app.on_closing)
# Start the main event loop
root.mainloop()
except ImportError as e:
print(f"Error: Could not import required components: {e}")
print("Please ensure tkinter is installed: pip install tk")
sys.exit(1)
except Exception as e:
print(f"Error starting Shader Cache Remover: {e}")
sys.exit(1)
if __name__ == "__main__":
main()