hekate: move emummc config load inside relevant functions

This ensures that hekate can re-read it in case of sd card swap while in TUI and also doesn't read it if not needed.
This commit is contained in:
CTCaer
2021-09-26 12:23:54 +03:00
parent 609a76045a
commit 05ce867064
2 changed files with 11 additions and 8 deletions

View File

@@ -42,9 +42,9 @@ void emummc_load_cfg()
emu_cfg.active_part = 0;
emu_cfg.fs_ver = 0;
if (!emu_cfg.nintendo_path)
emu_cfg.nintendo_path = (char *)malloc(0x80);
emu_cfg.nintendo_path = (char *)malloc(0x200);
if (!emu_cfg.emummc_file_based_path)
emu_cfg.emummc_file_based_path = (char *)malloc(0x80);
emu_cfg.emummc_file_based_path = (char *)malloc(0x200);
emu_cfg.nintendo_path[0] = 0;
emu_cfg.emummc_file_based_path[0] = 0;