Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 3454483

Browse files
authored
Remove UI detection flag
In some cases it's causing weird issues
1 parent 709e275 commit 3454483

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

source/program/main.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,7 @@ HOOK_DEFINE_TRAMPOLINE(SyncWait) {
5656

5757
static int Callback(uint64_t _this) {
5858
nvnWindowSync = (void*)(_this + 0xFD0);
59-
uint8_t UI_flag = 0;
60-
uint64_t flag_struct = *(uint64_t*)exl::util::modules::GetTargetOffset(0xC22328);
61-
if (flag_struct) {
62-
uint64_t struct2 = *(uint64_t*)(flag_struct + 0x3F0);
63-
if (struct2)
64-
UI_flag = *(uint8_t*)(struct2+0x168);
65-
}
66-
if ((cutsceneFlag || UI_flag == 1) && nvnWindowSync) {
59+
if (cutsceneFlag && nvnWindowSync) {
6760
return ((nvnSyncWait_0)(nvnSyncWait_ptr))(nvnWindowSync, -1);
6861
}
6962
return Orig(_this);

0 commit comments

Comments
 (0)