Skip to content

Commit

Permalink
SS adjust minimum ramsize
Browse files Browse the repository at this point in the history
  • Loading branch information
kanjitalk755 committed Jul 9, 2018
1 parent 93fb08d commit e760d28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions SheepShaver/src/Unix/main_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -944,9 +944,9 @@ int main(int argc, char **argv)
if (RAMSize <= 1000) {
RAMSize *= 1024 * 1024;
}
if (RAMSize < 8*1024*1024) {
if (RAMSize < 16 * 1024 * 1024) {
WarningAlert(GetString(STR_SMALL_RAM_WARN));
RAMSize = 8*1024*1024;
RAMSize = 16 * 1024 * 1024;
}
memory_mapped_from_zero = false;
ram_rom_areas_contiguous = false;
Expand Down
4 changes: 2 additions & 2 deletions SheepShaver/src/Windows/main_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ int main(int argc, char **argv)
if (RAMSize <= 1000) {
RAMSize *= 1024 * 1024;
}
if (RAMSize < 8*1024*1024) {
if (RAMSize < 16 * 1024 * 1024) {
WarningAlert(GetString(STR_SMALL_RAM_WARN));
RAMSize = 8*1024*1024;
RAMSize = 16 * 1024 * 1024;
}
RAMBase = 0;
if (vm_mac_acquire(RAMBase, RAMSize) < 0) {
Expand Down
2 changes: 1 addition & 1 deletion SheepShaver/src/user_strings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ user_string_def common_strings[] = {
{STR_SCSI_BUFFER_ERR, "Cannot allocate SCSI buffer (requested %d bytes). Giving up."},
{STR_SCSI_SG_FULL_ERR, "SCSI scatter/gather table full. Giving up."},

{STR_SMALL_RAM_WARN, "Selected less than 8MB Mac RAM, using 8MB."},
{STR_SMALL_RAM_WARN, "Selected less than 16MB Mac RAM, using 16MB."},
{STR_CANNOT_UNMOUNT_WARN, "The volume '%s' could not be unmounted. SheepShaver will not use it."},
{STR_CREATE_VOLUME_WARN, "Cannot create hardfile (%s)."},

Expand Down

0 comments on commit e760d28

Please sign in to comment.