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:
parent
3a46c9fd3e
commit
698d27aada
|
@ -1816,7 +1816,7 @@ end
|
||||||
|
|
||||||
-- Main control handling: main loop and socket receive
|
-- Main control handling: main loop and socket receive
|
||||||
|
|
||||||
function receive()
|
function APreceive()
|
||||||
l, e = ootSocket:receive()
|
l, e = ootSocket:receive()
|
||||||
-- Handle incoming message
|
-- Handle incoming message
|
||||||
if e == 'closed' then
|
if e == 'closed' then
|
||||||
|
@ -1874,7 +1874,7 @@ function main()
|
||||||
end
|
end
|
||||||
if (curstate == STATE_OK) or (curstate == STATE_INITIAL_CONNECTION_MADE) or (curstate == STATE_TENTATIVELY_CONNECTED) then
|
if (curstate == STATE_OK) or (curstate == STATE_INITIAL_CONNECTION_MADE) or (curstate == STATE_TENTATIVELY_CONNECTED) then
|
||||||
if (frame % 30 == 0) then
|
if (frame % 30 == 0) then
|
||||||
receive()
|
APreceive()
|
||||||
end
|
end
|
||||||
elseif (curstate == STATE_UNINITIALIZED) then
|
elseif (curstate == STATE_UNINITIALIZED) then
|
||||||
if (frame % 60 == 0) then
|
if (frame % 60 == 0) then
|
||||||
|
|
Loading…
Reference in New Issue