mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
SWORD25: Fix Amiga compilation
This commit is contained in:
parent
befa99ca77
commit
2a2a5e51c6
@ -235,13 +235,13 @@ bool InputEngine::persist(OutputPersistenceBlock &writer) {
|
||||
// Write out the number of command callbacks and their names.
|
||||
// Note: We do this only for compatibility with older engines resp.
|
||||
// the original engine.
|
||||
writer.write((uint)1);
|
||||
writer.write((uint32)1);
|
||||
writer.writeString("LuaCommandCB");
|
||||
|
||||
// Write out the number of command callbacks and their names.
|
||||
// Note: We do this only for compatibility with older engines resp.
|
||||
// the original engine.
|
||||
writer.write((uint)1);
|
||||
writer.write((uint32)1);
|
||||
writer.writeString("LuaCharacterCB");
|
||||
|
||||
return true;
|
||||
@ -253,7 +253,7 @@ bool InputEngine::unpersist(InputPersistenceBlock &reader) {
|
||||
// Read number of command callbacks and their names.
|
||||
// Note: We do this only for compatibility with older engines resp.
|
||||
// the original engine.
|
||||
uint commandCallbackCount;
|
||||
uint32 commandCallbackCount;
|
||||
reader.read(commandCallbackCount);
|
||||
assert(commandCallbackCount == 1);
|
||||
|
||||
|
@ -48,7 +48,7 @@ InputPersistenceBlock::~InputPersistenceBlock() {
|
||||
}
|
||||
|
||||
void InputPersistenceBlock::read(int16 &value) {
|
||||
signed int v;
|
||||
int32 v;
|
||||
read(v);
|
||||
value = static_cast<int16>(v);
|
||||
}
|
||||
@ -96,7 +96,7 @@ void InputPersistenceBlock::readString(Common::String &value) {
|
||||
value = "";
|
||||
|
||||
if (checkMarker(STRING_MARKER)) {
|
||||
uint size;
|
||||
uint32 size;
|
||||
read(size);
|
||||
|
||||
if (checkBlockSize(size)) {
|
||||
@ -108,7 +108,7 @@ void InputPersistenceBlock::readString(Common::String &value) {
|
||||
|
||||
void InputPersistenceBlock::readByteArray(Common::Array<byte> &value) {
|
||||
if (checkMarker(BLOCK_MARKER)) {
|
||||
uint size;
|
||||
uint32 size;
|
||||
read(size);
|
||||
|
||||
if (checkBlockSize(size)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user