Merge pull request #818 from inguin/emi-new-game

EMI: Fix crash when restarting the game
This commit is contained in:
Ingo van Lil 2014-02-01 16:11:49 -08:00
commit 8a0a264c29
2 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@ end
--Overwrite stock loadprefs function
system_prefs.loadprefs = function(table, filename)
--avoid installing tag methods repeatedly when starting a new game
if system_prefs.defaults_cfg ~= nil then
return
end
PrintDebug("Function system_prefs.loadprefs modified for ResidualVM loaded")
--save old cfg table as default values