Skip to content

Commit

Permalink
Decompile 0x4BA988
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbatalov committed May 6, 2022
1 parent 0c17221 commit c7c6a4b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,30 @@ void sub_4B947C()
windowManagerExit();
}

// 0x4BA988
bool sub_4BA988(const char* regionName)
{
if (dword_51DCB8 == -1) {
return false;
}

STRUCT_6727B0* ptr = &(stru_6727B0[dword_51DCB8]);
if (ptr->window == -1) {
return false;
}

for (int index = 0; index < ptr->regionsLength; index++) {
Region* region = ptr->regions[index];
if (region != NULL) {
if (stricmp(regionGetName(region), regionName) == 0) {
return true;
}
}
}

return false;
}

// 0x4BA9FC
bool sub_4BA9FC(int initialCapacity)
{
Expand Down
1 change: 1 addition & 0 deletions src/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ int sub_4B9050();
void sub_4B9058(Program* program);
void sub_4B9190(int resolution, int a2);
void sub_4B947C();
bool sub_4BA988(const char* regionName);
bool sub_4BA9FC(int initialCapacity);
bool sub_4BAB68(int x, int y, bool a3);
bool sub_4BADC0(const char* regionName, int a2, int a3, int a4, int a5, int a6);
Expand Down

0 comments on commit c7c6a4b

Please sign in to comment.