You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int ok = MessageBoxW(NULL, L"A legacy install of DFHack has been detected in the Dwarf Fortress folder. This likely means that you have installed DFHack with the old Steam client (or manually). This legacy installation will almost certainly interfere with using DFHack. Do you want to remove the old files now? (recommended)", L"Legacy DFHack Install Detected", MB_OKCANCEL);
369
442
370
-
if (installmode)
371
-
exit(0);
443
+
if (ok == IDOK)
444
+
remove_old_install(df_install_folder);
445
+
#else
446
+
int response = 0;
447
+
std::string filelist;
448
+
for (auto file : old_filelist)
449
+
if (std::filesystem::exists(df_install_folder / file))
"A legacy install of DFHack has been detected in the Dwarf Fortress directory.This likely means that you have installed DFHack with the old Steam client (or manually).This installation will almost certainly interfere with using DFHack. \n\n"
454
+
"To remove these files, run the following command: rm -r " + df_install_folder.string() + "/{ " + filelist + "}\n\n"
455
+
};
456
+
457
+
notify(message.c_str());
458
+
#endif
459
+
}
460
+
}
372
461
373
462
if (!wrap_launch(launch_via_steam))
374
463
exit(1);
@@ -389,6 +478,5 @@ int main(int argc, char* argv[]) {
0 commit comments