fixed ramsize in preferences editor

This commit is contained in:
kanjitalk755 2018-06-27 23:25:33 +09:00
parent 700b57d758
commit 63fa75adf0
1 changed files with 4 additions and 2 deletions

View File

@ -143,8 +143,10 @@ static NSString *getStringFromPrefs(const char *key)
[romFile setStringValue: getStringFromPrefs("rom") ];
[unixRoot setStringValue: getStringFromPrefs("extfs") ];
[disableCdrom setIntValue: PrefsFindBool("nocdrom") ];
[ramSize setIntValue: PrefsFindInt32("ramsize") / (1024*1024) ];
[ramSizeStepper setIntValue: PrefsFindInt32("ramsize") / (1024*1024) ];
int ramsize = PrefsFindInt32("ramsize");
if (ramsize > 1000) ramsize >>= 20;
[ramSize setIntValue: ramsize ];
[ramSizeStepper setIntValue: ramsize ];
int display_type = 0;
int dis_width = 640;