Skip to content

Commit b9a389a

Browse files
main: Create empty hash_data folder if it doesn't exist
* This seems to work for the connection freeze workaround as well
1 parent d0e7afa commit b9a389a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
*.pyc
22
main.build
33
main.dist
4+
main.onefile-build
5+
built

main.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
open(os.path.join(DEFAULT_INSTALL_DIR, "parameters.txt"), "w").write(params_data)
1616
print("Pointed launcher to Sunrise servers.")
1717

18-
# Next, grab cnc-ddraw
18+
# Setup the wrokaround for connection hang
19+
os.makedirs(os.path.join(DEFAULT_INSTALL_DIR, "hash_data"), exist_ok=True)
20+
print("Added workaround for connection freeze on modern versions of Windows.")
21+
22+
# Finally, grab cnc-ddraw
1923
ddraw_data = requests.get("https://raw.githubusercontent.com/rocketprogrammer/TTOManager/main/libs/cnc-ddraw/ddraw.dll").content
2024
open(os.path.join(DEFAULT_INSTALL_DIR, "ddraw.dll"), "wb").write(ddraw_data)
2125
print("Added cnc-ddraw display wrapper.\nToontown Online should be ready to go now.")
26+
27+
os.system("pause")

0 commit comments

Comments
 (0)