Replacing Save Settings on Exit with Settings on Load
This commit is contained in:
@@ -148,7 +148,7 @@ SETTINGSTOPROCESS = {
|
||||
"createrom": "create_rom",
|
||||
"calcplaythrough": "calc_playthrough",
|
||||
"print_custom_yaml": "print_custom_yaml",
|
||||
"saveonexit": "saveonexit"
|
||||
"settingsonload": "settingsonload"
|
||||
}
|
||||
},
|
||||
"startinventory": {
|
||||
|
||||
@@ -68,6 +68,15 @@ def bottom_frame(self, parent, args=None):
|
||||
self.widgets[key].pack(side=LEFT)
|
||||
|
||||
def generateRom():
|
||||
guiargs = create_guiargs(parent)
|
||||
argsDump = vars(guiargs)
|
||||
from Gui import save_settings
|
||||
if parent.randomSprite.get():
|
||||
argsDump['sprite'] = 'random'
|
||||
elif argsDump['sprite']:
|
||||
argsDump['sprite'] = argsDump['sprite'].name
|
||||
save_settings(parent, argsDump, "last.json")
|
||||
|
||||
guiargs = create_guiargs(parent)
|
||||
# get default values for missing parameters
|
||||
for k,v in vars(parse_cli(['--multi', str(guiargs.multi)])).items():
|
||||
|
||||
Reference in New Issue
Block a user