ok imma stop using size_t at this point
This commit is contained in:
@@ -20,7 +20,7 @@ bool load_dol(const std::string &path, mem &mem, broadway &broadway) {
|
||||
ircolib::u32 bss_address, bss_size, entry_point;
|
||||
} hdr;
|
||||
|
||||
for (size_t bin_index = 0; bin_index < 0xD8; bin_index += 4) {
|
||||
for (ircolib::u32 bin_index = 0; bin_index < 0xD8; bin_index += 4) {
|
||||
if (ircolib::is_inside_range(bin_index, 0, 0x1b)) // text file offsets
|
||||
hdr.text[bin_index / 4].offset = std::byteswap(ircolib::read_access<ircolib::u32>(bin, bin_index));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user