diff options
| author | Fabien Romano <fabienromano@gmail.com> | 2026-01-19 18:04:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-19 17:04:55 +0000 |
| commit | 35039565dfd1f6ffefca845b361269c5cd36fed4 (patch) | |
| tree | 6b31d83e0d8eb728f84b050b577b408ae6d99c76 | |
| parent | 451820cac480041c52358d57d9bfae5893d89455 (diff) | |
fix portArchiveVersion, DetectOTRVersion() use LocateFileAcrossAppDirs() so it needs filename as argument, not full path. (#6168)
| -rw-r--r-- | soh/soh/OTRGlobals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index eba843165..b544b31b1 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -273,7 +273,7 @@ OTRGlobals::OTRGlobals() { context = Ship::Context::CreateUninitializedInstance("Ship of Harkinian", appShortName, "shipofharkinian.json"); portArchivePath = Ship::Context::LocateFileAcrossAppDirs("soh.o2r"); - OTRVersion portArchiveVersion = DetectOTRVersion(portArchivePath, false); + OTRVersion portArchiveVersion = DetectOTRVersion("soh.o2r", false); sohArchiveVersionMatch = portArchiveVersion.major == gBuildVersionMajor && portArchiveVersion.minor == gBuildVersionMinor && portArchiveVersion.patch == gBuildVersionPatch; |
