aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game
diff options
context:
space:
mode:
Diffstat (limited to 'game/src/Game')
-rw-r--r--game/src/Game/GameStart.gd6
-rw-r--r--game/src/Game/Menu/MainMenu/ReleaseInfoBox.gd2
2 files changed, 6 insertions, 2 deletions
diff --git a/game/src/Game/GameStart.gd b/game/src/Game/GameStart.gd
index 422a42a..ea9a95e 100644
--- a/game/src/Game/GameStart.gd
+++ b/game/src/Game/GameStart.gd
@@ -35,7 +35,7 @@ func _load_compatibility_mode():
if not compatibility_mode_path:
# TODO - non-Windows default paths
- const default_path : String = "C:/Program Files (x86)/Steam/steamapps/common/Victoria 2"
+ const default_path : String = "G:/Games/Steam-Library/steamapps/common/Victoria 2"
compatibility_mode_path = default_path
var compatibility_mode_paths : PackedStringArray = [compatibility_mode_path]
@@ -62,10 +62,14 @@ func _initialize_game() -> void:
loading_screen.try_update_loading_screen(100)
var end := Time.get_ticks_usec()
+ Checksum.calculate_directory_checksum('res://')
+ print(Checksum.get_checksum())
+
print("Loading took ", float(end - start) / 1000000, " seconds")
# change scene in a thread-safe way
get_tree().call_deferred("change_scene_to_file", "res://src/Game/GameMenu.tscn")
+
func _on_splash_container_splash_end():
loading_screen.show()
diff --git a/game/src/Game/Menu/MainMenu/ReleaseInfoBox.gd b/game/src/Game/Menu/MainMenu/ReleaseInfoBox.gd
index f401919..cb21a4b 100644
--- a/game/src/Game/Menu/MainMenu/ReleaseInfoBox.gd
+++ b/game/src/Game/Menu/MainMenu/ReleaseInfoBox.gd
@@ -20,7 +20,7 @@ func _ready():
_commit_label.text = _GIT_INFO_.short_hash
_commit_label.tooltip_text = _GIT_INFO_.commit_hash
# UI-111
- _checksum = Checksum.get_checksum_text()
+ _checksum = str(Checksum.get_checksum())
_update_checksum_label_text()
func _notification(what : int):