mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Rename isWRA0Mode to isWRAM0Mode
This commit is contained in:
@@ -27,7 +27,7 @@ extern uint8_t scrambleWRAMX;
|
||||
extern uint8_t scrambleSRAM;
|
||||
extern bool is32kMode;
|
||||
extern bool beVerbose;
|
||||
extern bool isWRA0Mode;
|
||||
extern bool isWRAM0Mode;
|
||||
extern bool disablePadding;
|
||||
|
||||
struct FileStackNode {
|
||||
|
||||
@@ -44,7 +44,7 @@ uint8_t scrambleWRAMX = 0;
|
||||
uint8_t scrambleSRAM = 0;
|
||||
bool is32kMode; // -t
|
||||
bool beVerbose; // -v
|
||||
bool isWRA0Mode; // -w
|
||||
bool isWRAM0Mode; // -w
|
||||
bool disablePadding; // -x
|
||||
|
||||
FILE *linkerScript;
|
||||
@@ -349,7 +349,7 @@ int main(int argc, char *argv[])
|
||||
switch (ch) {
|
||||
case 'd':
|
||||
isDmgMode = true;
|
||||
isWRA0Mode = true;
|
||||
isWRAM0Mode = true;
|
||||
break;
|
||||
case 'l':
|
||||
if (linkerScriptName)
|
||||
@@ -411,7 +411,7 @@ int main(int argc, char *argv[])
|
||||
beVerbose = true;
|
||||
break;
|
||||
case 'w':
|
||||
isWRA0Mode = true;
|
||||
isWRAM0Mode = true;
|
||||
break;
|
||||
case 'x':
|
||||
disablePadding = true;
|
||||
@@ -438,7 +438,7 @@ int main(int argc, char *argv[])
|
||||
// Patch the size array depending on command-line options
|
||||
if (!is32kMode)
|
||||
sectionTypeInfo[SECTTYPE_ROM0].size = 0x4000;
|
||||
if (!isWRA0Mode)
|
||||
if (!isWRAM0Mode)
|
||||
sectionTypeInfo[SECTTYPE_WRAM0].size = 0x1000;
|
||||
|
||||
// Patch the bank ranges array depending on command-line options
|
||||
|
||||
@@ -200,7 +200,7 @@ static void doSanityChecks(struct Section *section)
|
||||
else
|
||||
section->type = SECTTYPE_ROM0;
|
||||
}
|
||||
if (isWRA0Mode && section->type == SECTTYPE_WRAMX) {
|
||||
if (isWRAM0Mode && section->type == SECTTYPE_WRAMX) {
|
||||
if (section->isBankFixed && section->bank != 1)
|
||||
error(NULL, 0, "%s: WRAMX sections must be in bank 1 with options -w or -d",
|
||||
section->name.c_str());
|
||||
|
||||
@@ -11,7 +11,7 @@ struct SectionTypeInfo sectionTypeInfo[SECTTYPE_INVALID] = {
|
||||
{ // SECTTYPE_WRAM0
|
||||
.name = "WRAM0"s,
|
||||
.startAddr = 0xC000,
|
||||
.size = 0x2000, // Patched to 0x1000 if !isWRA0Mode
|
||||
.size = 0x2000, // Patched to 0x1000 if !isWRAM0Mode
|
||||
.firstBank = 0,
|
||||
.lastBank = 0,
|
||||
},
|
||||
|
||||
@@ -28,7 +28,7 @@ fail() {
|
||||
}
|
||||
|
||||
|
||||
# Draw a random tile offset and VRA0 size
|
||||
# Draw a random tile offset and VRAM0 size
|
||||
# Neither should change anything to how the image is displayed
|
||||
while [[ "$ofs" -eq 0 ]]; do (( ofs = RANDOM % 256 )); done
|
||||
while [[ "$size" -eq 0 ]]; do (( size = RANDOM % 256 )); done
|
||||
|
||||
Reference in New Issue
Block a user