game: allow overriding the config directory location (#3477)

This is primarily driven for proper mod-support. Mods would like to
isolate their settings and saves (potentially) and that is currently
done by find-and-replacing code before building. Bad!

Additionally, this has the side-effect of allowing for portable
installations of the game so, win-win.

Testing in progress, i'll merge once it is ready.
This commit is contained in:
Tyler Wilding
2024-04-28 15:29:20 -04:00
committed by GitHub
parent fee0a435fc
commit a021c392ec
11 changed files with 99 additions and 28 deletions
+4 -2
View File
@@ -379,9 +379,11 @@ void Workspace::tracked_file_will_save(const LSPSpec::DocumentUri& file_uri) {
}
}
void Workspace::update_global_index(const GameVersion game_version){
// TODO - project wide indexing potentially (ie. finding references)
// clang-format off
void Workspace::update_global_index(const GameVersion game_version) {
// TODO - project wide indexing potentially (ie. finding references)
};
// clang-format on
void Workspace::stop_tracking_file(const LSPSpec::DocumentUri& file_uri) {
m_tracked_ir_files.erase(file_uri);