mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 22:07:34 +00:00
Made out-of-memory error in SCUMM a bit more verbose
svn-id: r34201
This commit is contained in:
parent
9eaa119f31
commit
c657f1d09a
@ -395,8 +395,7 @@ void SaveLoadChooser::updateInfos(bool redraw) {
|
||||
int hours = minutes / 60;
|
||||
minutes %= 60;
|
||||
|
||||
snprintf(buffer, 32, "Playtime: %.2d:%.2d",
|
||||
hours & 0xFF, minutes & 0xFF);
|
||||
snprintf(buffer, 32, "Playtime: %.2d:%.2d", hours, minutes);
|
||||
_playtime->setLabel(buffer);
|
||||
} else {
|
||||
_date->setLabel("No date saved");
|
||||
|
@ -809,7 +809,7 @@ byte *ResourceManager::createResource(int type, int idx, uint32 size) {
|
||||
|
||||
ptr = (byte *)calloc(size + sizeof(MemBlkHeader) + SAFETY_AREA, 1);
|
||||
if (ptr == NULL) {
|
||||
error("Out of memory while allocating %d", size);
|
||||
error("createResource(%s,%d): Out of memory while allocating %d", resTypeFromId(type), idx, size);
|
||||
}
|
||||
|
||||
_allocatedSize += size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user