What do you think?
Currently it looks like this.
Code: Select all
function waitForLoadingScreen()
if memoryReadBytePtr(getProc(), 0x00A0A9F8, 0x0C) == 0 then -- wait for loading screen
repeat
yrest(1000)
until memoryReadBytePtr(getProc(), 0x00A0A9F8, 0x0C) == 1
end
repeat -- wait until loading screen gone
yrest(1000)
until memoryReadBytePtr(getProc(), 0x00A0A9F8, 0x0C) == 0
end
Address : A0A9F8
Offset : 0C
It equals 1 when the loading screen is showing and 0 when it's not.