summaryrefslogtreecommitdiff
path: root/src/port/GameExtractor.cpp
diff options
context:
space:
mode:
authorAltoXorg <56553686+Alto1772@users.noreply.github.com>2025-08-10 01:25:46 +0800
committerGitHub <noreply@github.com>2025-08-09 11:25:46 -0600
commitdb01cf3d6fec1ef7f963e7e063251fd3e1e0a21b (patch)
tree18cd7414c8e7de88c1e85298e7fd653628d260e8 /src/port/GameExtractor.cpp
parent334fdeafd26c15e03b4f198002ad86b8422c0e2f (diff)
Fix non-portable (#532)
* Fix for non-portable builds * submodule update Torch, [TEMP] libultraship * submodule update libultraship * place assets in exe's dir on post build
Diffstat (limited to 'src/port/GameExtractor.cpp')
-rw-r--r--src/port/GameExtractor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/port/GameExtractor.cpp b/src/port/GameExtractor.cpp
index 1fa9e80e8..9e942333d 100644
--- a/src/port/GameExtractor.cpp
+++ b/src/port/GameExtractor.cpp
@@ -56,7 +56,10 @@ std::optional<std::string> GameExtractor::ValidateChecksum() const {
}
bool GameExtractor::GenerateOTR() const {
- Companion::Instance = new Companion(this->mGameData, ArchiveType::O2R, false);
+ const std::string assets_path = Ship::Context::GetAppBundlePath();
+ const std::string game_path = Ship::Context::GetAppDirectoryPath();
+
+ Companion::Instance = new Companion(this->mGameData, ArchiveType::O2R, false, assets_path, game_path);
try {
Companion::Instance->Init(ExportType::Binary);