aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameStart.gd
diff options
context:
space:
mode:
author BrickPi <49528459+BrickPi@users.noreply.github.com>2024-01-21 21:10:47 +0100
committer GitHub <noreply@github.com>2024-01-21 21:10:47 +0100
commit0840fd621cf35201f1e5ef90ad09033a2242b181 (patch)
tree12023bcc0a0b3d598aefec1b70bcd345de946ffe /game/src/Game/GameStart.gd
parentfc0658161f84c7949198c2d907614acaa4332728 (diff)
parent369cb94556d82a2c273443ed7628c4cc37458ce0 (diff)
Merge pull request #197 from OpenVicProject/reorganising
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