mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
SCI32: Treat %d as unsigned in kString
At least Shivers has VMDs with resource IDs above 2^15; treating %d as signed means that the wrong filename gets created.
This commit is contained in:
parent
e58dad8bb6
commit
44dfa4c49f
@ -733,11 +733,12 @@ namespace {
|
||||
}
|
||||
|
||||
bool isSignedType(const char type) {
|
||||
return type == 'd' || type == 'i';
|
||||
// For whatever reason, %d ends up being treated as unsigned in SSCI
|
||||
return type == 'i';
|
||||
}
|
||||
|
||||
bool isUnsignedType(const char type) {
|
||||
return strchr("uxXoc", type);
|
||||
return strchr("duxXoc", type);
|
||||
}
|
||||
|
||||
bool isStringType(const char type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user