mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 00:45:10 +00:00
DEVTOOLS: Update create-nancy
Updated the format for nancy.dat to make multilanguage arrays much easier to read.
This commit is contained in:
parent
bfff477734
commit
a367dfe519
@ -220,11 +220,10 @@ void writeToFile(File &file, const Hint &obj) {
|
||||
}
|
||||
|
||||
void writeMultilangArray(File &file, const Common::Array<Common::Array<const char *>> &array) {
|
||||
file.writeUint16(array.size());
|
||||
Common::Array<uint32> offsets;
|
||||
uint32 offsetsOffset = file.pos();
|
||||
|
||||
file.skip(array.size() * 4);
|
||||
file.skip(array.size() * 4 + 4 + 2);
|
||||
|
||||
for (uint i = 0; i < array.size(); ++i) {
|
||||
offsets.push_back(file.pos());
|
||||
@ -234,6 +233,8 @@ void writeMultilangArray(File &file, const Common::Array<Common::Array<const cha
|
||||
uint end = file.pos();
|
||||
file.seek(offsetsOffset);
|
||||
|
||||
file.writeUint16(array.size());
|
||||
file.writeUint32(end);
|
||||
for (uint i = 0; i < array.size(); ++i) {
|
||||
file.writeUint32(offsets[i]);
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ struct ConditionalDialogue {
|
||||
};
|
||||
|
||||
struct GoodbyeSceneChange {
|
||||
Common::Array<int16> sceneIDs;
|
||||
Common::Array<uint16> sceneIDs;
|
||||
Common::Array<EventFlagDescription> flagConditions;
|
||||
EventFlagDescription flagToSet;
|
||||
};
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user