Update subproject libultraship.
Some checks are pending
GenerateBuilds / generate-port-o2r (push) Waiting to run
GenerateBuilds / build-windows (push) Blocked by required conditions
GenerateBuilds / build-macos (push) Blocked by required conditions
GenerateBuilds / build-linux (push) Blocked by required conditions
GenerateBuilds / build-switch (push) Blocked by required conditions

This commit is contained in:
Tortuga veloz 2025-03-24 06:26:32 +01:00 committed by Alejandro Asenjo Nitti
parent e5137ea604
commit 983d64e81d
23 changed files with 26 additions and 26 deletions

@ -1 +1 @@
Subproject commit e1db49367bb3743a304d763be34830b4c1999873 Subproject commit dedbf8c3887e2c4e68a9719d1552ac4e8f8f1393

View file

@ -9,7 +9,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryAnimV0::ReadResource(std::
return nullptr; return nullptr;
} }
auto anim = std::make_shared<Animation>(file->InitData); auto anim = std::make_shared<Animation>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
int16_t frameCount = reader->ReadInt16(); int16_t frameCount = reader->ReadInt16();

View file

@ -9,7 +9,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryColPolyV0::ReadResource(st
return nullptr; return nullptr;
} }
auto colPoly = std::make_shared<ColPoly>(file->InitData); auto colPoly = std::make_shared<ColPoly>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
auto colPolysCount = reader->ReadUInt32(); auto colPolysCount = reader->ReadUInt32();

View file

@ -12,7 +12,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryEnvSettingsV0::ReadResourc
return nullptr; return nullptr;
} }
auto env = std::make_shared<EnvSettings>(file->InitData); auto env = std::make_shared<EnvSettings>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
env->mSettings.type = reader->ReadInt32(); env->mSettings.type = reader->ReadInt32();

View file

@ -9,7 +9,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryGenericArrayV0::ReadResour
return nullptr; return nullptr;
} }
auto arr = std::make_shared<GenericArray>(file->InitData); auto arr = std::make_shared<GenericArray>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
auto type = reader->ReadUInt32(); auto type = reader->ReadUInt32();

View file

@ -9,7 +9,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryHitboxV0::ReadResource(std
return nullptr; return nullptr;
} }
auto hitbox = std::make_shared<Hitbox>(file->InitData); auto hitbox = std::make_shared<Hitbox>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
auto count = reader->ReadUInt32(); auto count = reader->ReadUInt32();

View file

@ -13,7 +13,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryLimbV0::ReadResource(std::
return nullptr; return nullptr;
} }
auto limb = std::make_shared<Limb>(file->InitData); auto limb = std::make_shared<Limb>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
uint64_t dlist = reader->ReadUInt64(); uint64_t dlist = reader->ReadUInt64();

View file

@ -9,7 +9,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryMessageV0::ReadResource(st
return nullptr; return nullptr;
} }
auto msg = std::make_shared<Message>(file->InitData); auto msg = std::make_shared<Message>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
auto size = reader->ReadUInt32(); auto size = reader->ReadUInt32();

View file

@ -11,7 +11,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryMessageLookupV0::ReadResou
return nullptr; return nullptr;
} }
auto table = std::make_shared<MessageLookup>(file->InitData); auto table = std::make_shared<MessageLookup>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
auto count = reader->ReadUInt32(); auto count = reader->ReadUInt32();

View file

@ -12,7 +12,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryObjectInitV0::ReadResource
return nullptr; return nullptr;
} }
auto obj = std::make_shared<ObjectInit>(file->InitData); auto obj = std::make_shared<ObjectInit>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
auto count = reader->ReadUInt32(); auto count = reader->ReadUInt32();

View file

@ -10,7 +10,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryScriptCMDV0::ReadResource(
return nullptr; return nullptr;
} }
auto cmds = std::make_shared<ScriptCMDs>(file->InitData); auto cmds = std::make_shared<ScriptCMDs>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
auto size = reader->ReadUInt32(); auto size = reader->ReadUInt32();

View file

@ -10,7 +10,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryScriptV0::ReadResource(std
return nullptr; return nullptr;
} }
auto script = std::make_shared<Script>(file->InitData); auto script = std::make_shared<Script>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
auto size = reader->ReadUInt32(); auto size = reader->ReadUInt32();

View file

@ -11,7 +11,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinarySkeletonV0::ReadResource(s
return nullptr; return nullptr;
} }
auto skel = std::make_shared<Skeleton>(file->InitData); auto skel = std::make_shared<Skeleton>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
auto count = reader->ReadUInt32(); auto count = reader->ReadUInt32();

View file

@ -9,7 +9,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryVec3fV0::ReadResource(std:
return nullptr; return nullptr;
} }
auto vec = std::make_shared<Vec3fArray>(file->InitData); auto vec = std::make_shared<Vec3fArray>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
auto vecCount = reader->ReadUInt32(); auto vecCount = reader->ReadUInt32();

View file

@ -9,7 +9,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryVec3sV0::ReadResource(std:
return nullptr; return nullptr;
} }
auto vec = std::make_shared<Vec3sArray>(file->InitData); auto vec = std::make_shared<Vec3sArray>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
auto vecCount = reader->ReadUInt32(); auto vecCount = reader->ReadUInt32();

View file

@ -9,7 +9,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryAudioTableV0::ReadResource
return nullptr; return nullptr;
} }
auto table = std::make_shared<AudioTable>(file->InitData); auto table = std::make_shared<AudioTable>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
int16_t med = reader->ReadInt16(); int16_t med = reader->ReadInt16();

View file

@ -8,7 +8,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryAdpcmBookV0::ReadResource(
return nullptr; return nullptr;
} }
auto book = std::make_shared<AdpcmBook>(file->InitData); auto book = std::make_shared<AdpcmBook>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
book->mBook.order = reader->ReadUInt32(); book->mBook.order = reader->ReadUInt32();

View file

@ -9,7 +9,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryDrumV0::ReadResource(std::
return nullptr; return nullptr;
} }
auto drum = std::make_shared<Drum>(file->InitData); auto drum = std::make_shared<Drum>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
drum->mDrum.adsrDecayIndex = reader->ReadUByte(); drum->mDrum.adsrDecayIndex = reader->ReadUByte();

View file

@ -8,7 +8,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryEnvelopeV0::ReadResource(s
return nullptr; return nullptr;
} }
auto envelope = std::make_shared<Envelope>(file->InitData); auto envelope = std::make_shared<Envelope>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
uint32_t count = reader->ReadUInt32(); uint32_t count = reader->ReadUInt32();

View file

@ -9,7 +9,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryInstrumentV0::ReadResource
return nullptr; return nullptr;
} }
auto instrument = std::make_shared<Instrument>(file->InitData); auto instrument = std::make_shared<Instrument>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
instrument->mInstrument.isRelocated = reader->ReadUByte(); instrument->mInstrument.isRelocated = reader->ReadUByte();

View file

@ -8,7 +8,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryAdpcmLoopV0::ReadResource(
return nullptr; return nullptr;
} }
auto loop = std::make_shared<AdpcmLoop>(file->InitData); auto loop = std::make_shared<AdpcmLoop>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
loop->mLoop.start = reader->ReadUInt32(); loop->mLoop.start = reader->ReadUInt32();

View file

@ -17,7 +17,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinarySampleV1::ReadResource(std
return nullptr; return nullptr;
} }
auto sample = std::make_shared<Sample>(file->InitData); auto sample = std::make_shared<Sample>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
sample->mSample.codec = reader->ReadUByte(); sample->mSample.codec = reader->ReadUByte();
@ -149,12 +149,12 @@ std::shared_ptr<Ship::IResource> ResourceFactoryXMLSampleV0::ReadResource(std::s
return nullptr; return nullptr;
} }
auto sample = std::make_shared<Sample>(file->InitData); auto sample = std::make_shared<Sample>(initData);
auto child = std::get<std::shared_ptr<tinyxml2::XMLDocument>>(file->Reader)->FirstChildElement(); auto child = std::get<std::shared_ptr<tinyxml2::XMLDocument>>(file->Reader)->FirstChildElement();
const char* customFormatStr = child->Attribute("CustomFormat"); const char* customFormatStr = child->Attribute("CustomFormat");
memset(&sample->mSample, 0, sizeof(sample->mSample)); memset(&sample->mSample, 0, sizeof(sample->mSample));
sample->mSample.isRelocated = 0; sample->mSample.isRelocated = 0;
sample->mSample.codec = CodecStrToInt(child->Attribute("Codec"), file->InitData->Path.c_str()); sample->mSample.codec = CodecStrToInt(child->Attribute("Codec"), initData->Path.c_str());
sample->mSample.medium = MediumStrToInt(child->Attribute("Medium")); sample->mSample.medium = MediumStrToInt(child->Attribute("Medium"));
sample->mSample.unk = child->IntAttribute("bit26"); sample->mSample.unk = child->IntAttribute("bit26");

View file

@ -11,7 +11,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinarySoundFontV0::ReadResource(
return nullptr; return nullptr;
} }
auto font = std::make_shared<SoundFont>(file->InitData); auto font = std::make_shared<SoundFont>(initData);
auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader); auto reader = std::get<std::shared_ptr<Ship::BinaryReader>>(file->Reader);
font->mFont.numInstruments = reader->ReadUByte(); font->mFont.numInstruments = reader->ReadUByte();
@ -216,7 +216,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryXMLSoundFontV0::ReadResource(std
if (!FileHasValidFormatAndReader(file, initData)) { if (!FileHasValidFormatAndReader(file, initData)) {
return nullptr; return nullptr;
} }
auto audioSoundFont = std::make_shared<SoundFont>(file->InitData); auto audioSoundFont = std::make_shared<SoundFont>(initData);
auto child = std::get<std::shared_ptr<tinyxml2::XMLDocument>>(file->Reader)->FirstChildElement(); auto child = std::get<std::shared_ptr<tinyxml2::XMLDocument>>(file->Reader)->FirstChildElement();
// Header data // Header data
memset(&audioSoundFont->mFont, 0, sizeof(audioSoundFont->mFont)); memset(&audioSoundFont->mFont, 0, sizeof(audioSoundFont->mFont));