OoT: Allow Crowd Control support for Ocarina of Time (Bizhawk) #4501

Changed the name of the default "receive" function in order to work with Crowd Control
This commit is contained in:
Pierre-Alain BESSERO 2025-01-17 20:06:20 +01:00 committed by GitHub
parent 3a46c9fd3e
commit 698d27aada
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1816,7 +1816,7 @@ end
-- Main control handling: main loop and socket receive
function receive()
function APreceive()
l, e = ootSocket:receive()
-- Handle incoming message
if e == 'closed' then
@ -1874,7 +1874,7 @@ function main()
end
if (curstate == STATE_OK) or (curstate == STATE_INITIAL_CONNECTION_MADE) or (curstate == STATE_TENTATIVELY_CONNECTED) then
if (frame % 30 == 0) then
receive()
APreceive()
end
elseif (curstate == STATE_UNINITIALIZED) then
if (frame % 60 == 0) then