X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Femu.c;h=ab17a1fc9fc191904d99b921d786db484ce6cc9b;hb=7b802576b284e113c637324e583a3a44e0e8e871;hp=02640bbbe4fce6e9945b13c3dd63844d7c1b7c08;hpb=bdec53c90b6e53990fc206cabaec31b844f34d1e;p=picodrive.git diff --git a/platform/common/emu.c b/platform/common/emu.c index 02640bb..ab17a1f 100644 --- a/platform/common/emu.c +++ b/platform/common/emu.c @@ -511,8 +511,10 @@ int emu_ReadConfig(int game, int no_defaults) ret = -1; if (config_havesect(cfg, sect)) { + int vol = currentConfig.volume; emu_setDefaultConfig(); ret = config_readsect(cfg, sect); + currentConfig.volume = vol; // make vol global (bah) } if (ret != 0)