mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-04-23 08:14:31 +00:00
fix portArchiveVersion, DetectOTRVersion() use LocateFileAcrossAppDirs() so it needs filename as argument, not full path. (#6168)
This commit is contained in:
parent
451820cac4
commit
35039565df
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue