DEVTOOLS: Add nancy3 missing sound patch to nancy.dat

Also slightly modified the format to allow for language
checks in the PatchAssociation struct
This commit is contained in:
Kaloyan Chehlarski 2023-11-04 22:17:33 +02:00
parent 8745974c86
commit 996a55abbe
6 changed files with 16 additions and 4 deletions

View File

@ -241,6 +241,8 @@ int main(int argc, char *argv[]) {
WRAPWITHOFFSET(writeRingingTexts(output, _nancy3TelephoneRinging))
WRAPWITHOFFSET(writeEmptySaveTexts(output, _nancy3EmptySaveStrings))
WRAPWITHOFFSET(writeEventFlagNames(output, _nancy3EventFlagNames))
WRAPWITHOFFSET(writePatchFile(output, 4, nancy3PatchSrcFiles, "files/nancy3"))
WRAPWITHOFFSET(writePatchAssociations(output, nancy3PatchAssociations))
// Nancy Drew: Treasure in the Royal Tower data
gameOffsets.push_back(output.pos());

View File

@ -219,7 +219,7 @@ void writeToFile(File &file, const Hint &obj) {
template<>
void writeToFile(File &file, const PatchAssociation &obj) {
file.writeString(obj.confManID);
writeToFile(file, obj.confManProps);
writeToFile(file, obj.fileIDs);
}

Binary file not shown.

View File

@ -630,8 +630,8 @@ const Common::Array<const char *> nancy2PatchSrcFiles {
// to the last two ARs in scene S1160. This allows the player to re-enter the
// prop room when they've collected the door knob, but not the wire clippers.
const Common::Array<PatchAssociation> nancy2PatchAssociations {
{ "softlocks_fix", { "S1160" } },
{ "final_timer", { "S1563", "S1564", "S1565" } }
{ { "softlocks_fix", "true" }, { "S1160" } },
{ { "final_timer", "true" }, { "S1563", "S1564", "S1565" } }
};
#endif // NANCY2DATA

View File

@ -853,4 +853,14 @@ const Common::Array<const char *> _nancy3EventFlagNames = {
"empty",
};
const Common::Array<const char *> nancy3PatchSrcFiles {
"han92b.his"
};
// Patch notes:
// - The missing sound file is a patch from the original devs. Should only be enabled in the English version
const Common::Array<PatchAssociation> nancy3PatchAssociations {
{ { "language", "en" }, { "han92b.his" } }
};
#endif // NANCY3DATA_H

View File

@ -91,7 +91,7 @@ struct SoundChannelInfo {
};
struct PatchAssociation {
const char *confManID;
Common::Array<const char *> confManProps;
Common::Array<const char *> fileIDs;
};