diff -rup scummvm-0.8.0-orig/backends/dc/Makefile scummvm-0.8.0/backends/dc/Makefile
old
|
new
|
VPATH = $(srcdir)
|
10 | 10 | CC = sh-elf-gcc -ml -m4-single-only |
11 | 11 | CXX = sh-elf-g++ -ml -m4-single-only |
12 | 12 | CXXFLAGS= -O3 -Wno-multichar -funroll-loops -fschedule-insns2 -fomit-frame-pointer -fdelete-null-pointer-checks -fno-exceptions |
13 | | DEFINES = -D__DC__ -DNONSTANDARD_PORT -DUSE_MAD -DNOSERIAL |
| 13 | DEFINES = -D__DC__ -DAUTOSAVE_OFF -DNONSTANDARD_PORT -DUSE_MAD -DNOSERIAL |
14 | 14 | LDFLAGS = -Wl,-Ttext,0x8c010000 -nostartfiles $(ronindir)/lib/crt0.o |
15 | 15 | INCLUDES= -I./ -I$(srcdir) -I$(srcdir)/common -I$(ronindir)/include/ |
16 | 16 | LIBS = -L$(ronindir)/lib -lmad -lronin-noserial -lz -lm |
… |
… |
plugin_dist :
|
53 | 53 | |
54 | 54 | dist : SCUMMVM.BIN plugins plugin_dist |
55 | 55 | |
| 56 | |
diff -rup scummvm-0.8.0-orig/queen/queen.cpp scummvm-0.8.0/queen/queen.cpp
old
|
new
|
void QueenEngine::update(bool checkPlaye
|
231 | 231 | _input->quickLoadReset(); |
232 | 232 | loadGameState(0); |
233 | 233 | } |
234 | | if (_system->getMillis() - _lastSaveTime >= AUTOSAVE_INTERVAL) { |
235 | | saveGameState(AUTOSAVE_SLOT, "Autosave"); |
236 | | _lastSaveTime = _system->getMillis(); |
237 | | } |
| 234 | #if !defined(AUTOSAVE_OFF) |
| 235 | if (_system->getMillis() - _lastSaveTime >= AUTOSAVE_INTERVAL) { |
| 236 | saveGameState(AUTOSAVE_SLOT, "Autosave"); |
| 237 | _lastSaveTime = _system->getMillis(); |
| 238 | } |
| 239 | #endif |
238 | 240 | } |
239 | 241 | if (!_input->cutawayRunning()) { |
240 | 242 | if (checkPlayerInput) { |
diff -rup scummvm-0.8.0-orig/scumm/scumm.cpp scummvm-0.8.0/scumm/scumm.cpp
old
|
new
|
int ScummEngine::scummLoop(int delta) {
|
2339 | 2339 | } |
2340 | 2340 | } |
2341 | 2341 | |
2342 | | // Trigger autosave all 5 minutes. |
2343 | | if (!_saveLoadFlag && _system->getMillis() > _lastSaveTime + 5 * 60 * 1000) { |
2344 | | _saveLoadSlot = 0; |
2345 | | sprintf(_saveLoadName, "Autosave %d", _saveLoadSlot); |
2346 | | _saveLoadFlag = 1; |
2347 | | _saveTemporaryState = false; |
2348 | | } |
| 2342 | #if !defined(AUTOSAVE_OFF) |
| 2343 | // Trigger autosave all 5 minutes. |
| 2344 | if (!_saveLoadFlag && _system->getMillis() > _lastSaveTime + 5 * 60 * 1000) { |
| 2345 | _saveLoadSlot = 0; |
| 2346 | sprintf(_saveLoadName, "Autosave %d", _saveLoadSlot); |
| 2347 | _saveLoadFlag = 1; |
| 2348 | _saveTemporaryState = false; |
| 2349 | } |
| 2350 | #endif |
2349 | 2351 | |
2350 | 2352 | if (VAR_GAME_LOADED != 0xFF) |
2351 | 2353 | VAR(VAR_GAME_LOADED) = 0; |
diff -rup scummvm-0.8.0-orig/sky/sky.cpp scummvm-0.8.0/sky/sky.cpp
old
|
new
|
int SkyEngine::go() {
|
240 | 240 | |
241 | 241 | int32 frameTime = (int32)_system->getMillis(); |
242 | 242 | |
243 | | if (_system->getMillis() - _lastSaveTime > 5 * 60 * 1000) { |
244 | | if (_skyControl->loadSaveAllowed()) { |
245 | | _lastSaveTime = _system->getMillis(); |
246 | | _skyControl->doAutoSave(); |
247 | | } else |
248 | | _lastSaveTime += 30 * 1000; // try again in 30 secs |
249 | | } |
| 243 | #if !defined(AUTOSAVE_OFF) |
| 244 | if (_system->getMillis() - _lastSaveTime > 5 * 60 * 1000) { |
| 245 | if (_skyControl->loadSaveAllowed()) { |
| 246 | _lastSaveTime = _system->getMillis(); |
| 247 | _skyControl->doAutoSave(); |
| 248 | } else |
| 249 | _lastSaveTime += 30 * 1000; // try again in 30 secs |
| 250 | } |
| 251 | #endif |
250 | 252 | _skySound->checkFxQueue(); |
251 | 253 | _skyMouse->mouseEngine((uint16)_mouseX, (uint16)_mouseY); |
252 | 254 | handleKey(); |