mirror of
https://github.com/mlaux/gb6.git
synced 2026-04-26 17:18:02 +00:00
tweak memory warning
This commit is contained in:
+2
-2
@@ -411,8 +411,8 @@ int LoadRom(Str63 fileName, short vRefNum)
|
||||
return false;
|
||||
}
|
||||
|
||||
// 2 MB base + 256 KB per 32 KB of ROM
|
||||
if (MaxBlock() < MEMORY_WARNING_THRESHOLD + rom.length * 8) {
|
||||
// 1.5 MB base + 128 KB per 16 KB bank of ROM
|
||||
if (MaxBlock() < BASE_MEMORY_REQUIRED + rom.length * 8) {
|
||||
ShowCenteredAlert(
|
||||
ALRT_4_LINE,
|
||||
"\pI don't have much memory left after",
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ extern PixMap offscreen_pixmap;
|
||||
|
||||
#define SOFT_RESET_TICKS 30 /* ~0.5 sec at 60Hz */
|
||||
|
||||
#define MEMORY_WARNING_THRESHOLD (2 * 1024 * 1024)
|
||||
#define BASE_MEMORY_REQUIRED (3 * 1024 * 512)
|
||||
|
||||
int LoadRom(Str63, short);
|
||||
void SetScreenScale(int scale);
|
||||
|
||||
+1
-1
@@ -285,7 +285,7 @@ data 'SICN' (128) {
|
||||
};
|
||||
|
||||
data 'SIZE' (-1) {
|
||||
$"0080 0030 0000 0020 0000" /* .Ä. ...... */
|
||||
$"0080 0080 0000 0020 0000" /* .Ä. ...... */
|
||||
};
|
||||
|
||||
data 'ics#' (128) {
|
||||
|
||||
Reference in New Issue
Block a user