mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
Fix resource packs enabled in 1.0.1 being permanently enabled (#602)
* Fix resource packs enabled in 1.0.1 being permanently enabled * Also add an explanatory comment
This commit is contained in:
@@ -112,6 +112,12 @@ func load_settings() -> void:
|
||||
for section in cfg_file.get_sections():
|
||||
for key in cfg_file.get_section_keys(section):
|
||||
file[section][key] = cfg_file.get_value(section, key)
|
||||
fix_broken_settings()
|
||||
|
||||
func fix_broken_settings() -> void:
|
||||
# Fix any "permanently-enabled" resource packs from 1.0.2 snapshots after portable mode was added, but before this bug was fixed
|
||||
for i in range(file.visuals.resource_packs.size()):
|
||||
file.visuals.resource_packs[i] = str(file.visuals.resource_packs[i]).trim_prefix("/")
|
||||
|
||||
func apply_settings() -> void:
|
||||
for i in file.video.keys():
|
||||
|
Reference in New Issue
Block a user