mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
SWORD25: Specifying int size to make Amiga happy
This commit is contained in:
parent
2a2a5e51c6
commit
7a669b770f
@ -263,7 +263,7 @@ bool InputEngine::unpersist(InputPersistenceBlock &reader) {
|
||||
// Read number of character callbacks and their names.
|
||||
// Note: We do this only for compatibility with older engines resp.
|
||||
// the original engine.
|
||||
uint characterCallbackCount;
|
||||
uint32 characterCallbackCount;
|
||||
reader.read(characterCallbackCount);
|
||||
assert(characterCallbackCount == 1);
|
||||
|
||||
|
@ -74,14 +74,14 @@ void OutputPersistenceBlock::write(bool value) {
|
||||
void OutputPersistenceBlock::writeString(const Common::String &string) {
|
||||
writeMarker(STRING_MARKER);
|
||||
|
||||
write(string.size());
|
||||
write((uint32)string.size());
|
||||
rawWrite(string.c_str(), string.size());
|
||||
}
|
||||
|
||||
void OutputPersistenceBlock::writeByteArray(Common::Array<byte> &value) {
|
||||
writeMarker(BLOCK_MARKER);
|
||||
|
||||
write((uint)value.size());
|
||||
write((uint32)value.size());
|
||||
rawWrite(&value[0], value.size());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user