Ticket #8482: scummvmautosavedef.patch

File scummvmautosavedef.patch, 561 bytes (added by SF/metafox, 15 years ago)

Set autosave_period to 0 if NONSTANDARD_PORT is defined

  • base/main.cpp

    diff -urN scummvm/base/main.cpp scummvm2/base/main.cpp
    old new  
    404404
    405405        if (!ConfMan.hasKey("autosave_period")) {
    406406                // By default, trigger autosave every 5 minutes
     407        #ifdef NONSTANDARD_PORT
     408                ConfMan.set("autosave_period", 0 * 60, Common::ConfigManager::kApplicationDomain);
     409      #else
    407410                ConfMan.set("autosave_period", 5 * 60, Common::ConfigManager::kApplicationDomain);
     411        #endif
    408412        }
    409413
    410414        // Load the plugins