]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Always write PPC implementation config entry if PPC is enabled.
authorToni Wilen <twilen@winuae.net>
Sun, 7 Sep 2014 08:31:21 +0000 (11:31 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 7 Sep 2014 08:31:21 +0000 (11:31 +0300)
cfgfile.cpp

index ea013d2f3708fe34308868e0d84d7b247bf692cd..214a39917ef77bd550cf6cf366b65cb8def65e7c 100644 (file)
@@ -1513,7 +1513,8 @@ void cfgfile_save_options (struct zfile *f, struct uae_prefs *p, int type)
        cfgfile_write_bool (f, _T("cpu_24bit_addressing"), p->address_space_24);
        /* do not reorder end */
        cfgfile_dwrite_bool(f, _T("cpu_reset_pause"), p->reset_delay);
-       cfgfile_dwrite_str(f, _T("ppc_implementation"), ppc_implementations[p->ppc_implementation]);
+       if (p->ppc_mode)
+               cfgfile_write_str(f, _T("ppc_implementation"), ppc_implementations[p->ppc_implementation]);
 
        if (p->cpu_cycle_exact) {
                if (p->cpu_frequency)