Skip to content

Commit 8cacad3

Browse files
committed
fix(zc): properly reset directory cache
1 parent 4c922be commit 8cacad3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/zc/zc_sys.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5146,10 +5146,11 @@ int32_t OnSaveZCConfig()
51465146

51475147
int32_t OnnClearQuestDir()
51485148
{
5149+
auto current_path = fs::current_path() / "quests";
51495150
if(jwin_alert3(
51505151
"Clear Current Directory Cache",
5151-
"Are you sure that you wish to clear the current cached directory?",
5152-
"This will default the current directory to `<ROOT>/quests` for this instance of ZC Player!",
5152+
"Are you sure that you wish to reset where ZC Player looks for quests?",
5153+
fmt::format("The new directory will be: {}", current_path.string()).c_str(),
51535154
NULL,
51545155
"&Yes",
51555156
"&No",
@@ -5159,9 +5160,9 @@ int32_t OnnClearQuestDir()
51595160
0,
51605161
get_zc_font(font_lfont)) == 1)
51615162
{
5162-
zc_set_config("zeldadx","quest_dir","");
5163+
zc_set_config("zeldadx","quest_dir","quests");
51635164
flush_config_file();
5164-
strcpy(qstdir,"");
5165+
strcpy(qstdir,"quests");
51655166
#ifdef __EMSCRIPTEN__
51665167
em_sync_fs();
51675168
#endif

0 commit comments

Comments
 (0)