fix multithreaded import racing condition when frozen

This commit is contained in:
Fabian Dill
2020-07-10 22:43:54 +02:00
parent d190fe65c6
commit f27d9e904f
3 changed files with 13 additions and 9 deletions

View File

@@ -20,6 +20,7 @@ from Fill import distribute_items_cutoff, distribute_items_staleness, distribute
balance_multiworld_progression
from ItemList import generate_itempool, difficulties, fill_prizes
from Utils import output_path, parse_player_names, get_options, __version__
import Patch
seeddigits = 20
@@ -226,7 +227,6 @@ def main(args, seed=None):
rompath = output_path(f'{outfilebase}{outfilepname}{outfilesuffix}.sfc')
rom.write_to_file(rompath)
if args.create_diff:
import Patch
Patch.create_patch_file(rompath)
return (player, team, list(rom.name))