mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 08:40:59 +00:00
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:
parent
8745974c86
commit
996a55abbe
@ -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());
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
BIN
devtools/create_nancy/files/nancy3/han92b.his
Normal file
BIN
devtools/create_nancy/files/nancy3/han92b.his
Normal file
Binary file not shown.
@ -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
|
||||
|
@ -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
|
||||
|
@ -91,7 +91,7 @@ struct SoundChannelInfo {
|
||||
};
|
||||
|
||||
struct PatchAssociation {
|
||||
const char *confManID;
|
||||
Common::Array<const char *> confManProps;
|
||||
Common::Array<const char *> fileIDs;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user