mirror of
https://github.com/zeldaret/tww.git
synced 2026-09-11 04:03:32 -04:00
misc match
This commit is contained in:
@@ -881,7 +881,6 @@ bool JUTException::queryMapAddress_single(char* mapPath, u32 address, s32 sectio
|
||||
section_idx++;
|
||||
while (true) {
|
||||
char* src;
|
||||
char* dst;
|
||||
|
||||
while (true) {
|
||||
int length = file.fgets(buffer, ARRAY_SIZE(buffer));
|
||||
@@ -893,11 +892,12 @@ bool JUTException::queryMapAddress_single(char* mapPath, u32 address, s32 sectio
|
||||
|
||||
int i = 0;
|
||||
src = buffer + 1;
|
||||
dst = section_name;
|
||||
for (; *src != '\0'; i++, dst++, src++) {
|
||||
*dst = *src;
|
||||
while (*src != '\0') {
|
||||
section_name[i] = *src;
|
||||
if (*src == ' ' || i == 0xf)
|
||||
break;
|
||||
i++;
|
||||
src++;
|
||||
}
|
||||
|
||||
section_name[i] = 0;
|
||||
|
||||
Reference in New Issue
Block a user