aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameStart.gd
diff options
context:
space:
mode:
author BrickPi <ajmach6@gmail.com>2024-01-19 22:52:24 +0100
committer BrickPi <ajmach6@gmail.com>2024-01-21 16:25:06 +0100
commit2940411cb33a64cd41c2d39ddf98aab54edc9f69 (patch)
tree8cefa44e20d3fd26f7ba083454ffdcbb43c1d05f /game/src/Game/GameStart.gd
parentfb2561bd998f211d2099f811a6b6b25a57118160 (diff)
Reorganise Asset File Structure
Diffstat (limited to 'game/src/Game/GameStart.gd')
-rw-r--r--game/src/Game/GameStart.gd11
1 files changed, 3 insertions, 8 deletions
diff --git a/game/src/Game/GameStart.gd b/game/src/Game/GameStart.gd
index 3a98dca..857fea9 100644
--- a/game/src/Game/GameStart.gd
+++ b/game/src/Game/GameStart.gd
@@ -42,11 +42,8 @@ func _save_setting(file : ConfigFile) -> void:
file.set_value(section_name, setting_name, _settings_base_path)
func _load_compatibility_mode() -> void:
- # Set this to your Vic2 install dir or a mod's dir to enable compatibility mode
- # (this won't work for mods which rely on vanilla map assets, copy missing assets
- # into the mod's dir for a temporary fix)
- # Usage: OpenVic --compatibility-mode <path>
-
+ # To test mods, set your base path to Victoria II and then pass mods in reverse order with --mod="mod" for each mod.
+
var arg_base_path : String = ArgumentParser.get_argument(&"base-path", "")
var arg_search_path : String = ArgumentParser.get_argument(&"search-path", "")
@@ -70,9 +67,7 @@ func _load_compatibility_mode() -> void:
# and if not also search for a Steam install
actual_base_path = GameSingleton.search_for_game_path("..")
if not actual_base_path:
- var title : String = "Failed to find game asset path!"
- var msg : String = "The path can be specified with the \"base-path\" command line option."
- OS.alert(msg, title)
+ OS.alert(tr("ERROR_ASSET_PATH_NOT_FOUND_MESSAGE"), tr("ERROR_ASSET_PATH_NOT_FOUND"))
get_tree().quit()
return