mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +00:00
Significantly overhaul OPT code
Simplify the mess that was option setting (2 redundant variables !?) Move options to a separate file Have "modules" own their options, and OPT only access them (less redundancy) Simplify code, respect naming conventions better
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
#include "extern/err.h"
|
||||
#include "platform.h" // strdup
|
||||
|
||||
uint8_t fillByte;
|
||||
|
||||
struct SectionStackEntry {
|
||||
struct Section *section;
|
||||
char const *scope; /* Section's symbol scope */
|
||||
@@ -543,7 +545,7 @@ void out_Skip(int32_t skip, bool ds)
|
||||
} else {
|
||||
checkcodesection();
|
||||
while (skip--)
|
||||
writebyte(CurrentOptions.fillchar);
|
||||
writebyte(fillByte);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user