Adjustments in config to write explicitly the mem_size

This will help manager developers to decide the VM's memory size without knowing the actual machine table.
This commit is contained in:
Laci bá
2021-11-13 20:05:48 +01:00
parent 7900178a87
commit 6119e3a019

View File

@@ -2327,9 +2327,8 @@ save_machine(void)
else
config_set_string(cat, "fpu_type", (char *) fpu_get_internal_name(cpu_f, cpu, fpu_type));
if (mem_size == 4096)
//Write the mem_size explicitly to the setttings in order to help managers to display it without having the actual machine table
config_delete_var(cat, "mem_size");
else
config_set_int(cat, "mem_size", mem_size);
config_set_int(cat, "cpu_use_dynarec", cpu_use_dynarec);