Options: add "VerifyKeys" Mixin and showcase it for OoT Logic Tricks

This commit is contained in:
Fabian Dill
2022-01-11 22:01:54 +01:00
parent ee190601ee
commit 3acd966241
3 changed files with 30 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
import logging
import os
from Utils import __version__
from jinja2 import Template
@@ -9,6 +10,9 @@ import Options
target_folder = os.path.join("WebHostLib", "static", "generated")
handled_in_js = {"start_inventory", "local_items", "non_local_items", "start_hints", "start_location_hints",
"exclude_locations"}
def create():
os.makedirs(os.path.join(target_folder, 'configs'), exist_ok=True)
@@ -91,6 +95,10 @@ def create():
"min": option.range_start,
"max": option.range_end,
}
elif option_name in handled_in_js:
pass
else:
logging.debug(f"{option} not exported to Web Settings.")
player_settings["gameOptions"] = game_options