Fix running on non-windows platforms

Also remove incorrect comment
This commit is contained in:
Kevin Cathcart 2018-01-01 11:50:35 -05:00
parent ce30913121
commit d36b6b1beb
2 changed files with 4 additions and 3 deletions

View File

@ -51,7 +51,10 @@ class BackgroundTaskProgress(BackgroundTask):
self.window['padx'] = 5
self.window['pady'] = 5
try:
self.window.attributes("-toolwindow", 1)
except tk.TclError:
pass
self.window.wm_title(title)
self.label_var = tk.StringVar()

2
Rom.py
View File

@ -472,8 +472,6 @@ def patch_rom(world, rom, hashtable, beep='normal', sprite=None):
else:
rom.write_bytes(0x180090, [0x04, 0x47, 0x03, 0x47, 0x02, 0x47, 0x04, 0x47])
# TODO: FIXME: need to set capcity upgrade fills (2,3,0,0) for easy, (0,0,0,0) otherwise
# set up game internal RNG seed
for i in range(1024):
rom.write_byte(0x178000 + i, random.randint(0, 255))