-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
30 lines (22 loc) · 790 Bytes
/
main.py
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
import time
import sys
from pathlib import Path
from PyQt6.QtWidgets import QApplication
from UI.tracker import MainWindow
from tracker.world_state import WorldState
from emulator_interaction.bizhalk import Emuhawk
# Launch the bizhawk process
import subprocess
from tests.setup_bizhawk import bizhawk_folder
if __name__ == "__main__":
bizhawk = subprocess.Popen([bizhawk_folder / 'EmuHawk.exe',
"--lua=build/lua_components/hook.lua",
sys.argv[1]])
time.sleep(10)
icon_folder = Path('UI/IconSets')
emuhawk = Emuhawk(Path('emulator_interaction/controls.json'), 60)
world_state = WorldState(emuhawk)
app = QApplication([])
w = MainWindow(world_state, icon_folder)
w.show()
app.exec()