mirror of https://github.com/mgba-emu/mgba.git
Scripting: Return proper callback ID from socket.add
This commit is contained in:
parent
ea5db5f72d
commit
e3fbb55854
1
CHANGES
1
CHANGES
|
@ -28,6 +28,7 @@ Other fixes:
|
||||||
- Qt: Fix OSD on modern macOS (fixes mgba.io/i/2736)
|
- Qt: Fix OSD on modern macOS (fixes mgba.io/i/2736)
|
||||||
- Scripting: Fix receiving packets for client sockets
|
- Scripting: Fix receiving packets for client sockets
|
||||||
- Scripting: Fix empty receive calls returning unknown error on Windows
|
- Scripting: Fix empty receive calls returning unknown error on Windows
|
||||||
|
- Scripting: Return proper callback ID from socket.add
|
||||||
Misc:
|
Misc:
|
||||||
- Core: Handle relative paths for saves, screenshots, etc consistently (fixes mgba.io/i/2826)
|
- Core: Handle relative paths for saves, screenshots, etc consistently (fixes mgba.io/i/2826)
|
||||||
- GB Serialize: Add missing savestate support for MBC6 and NT (newer)
|
- GB Serialize: Add missing savestate support for MBC6 and NT (newer)
|
||||||
|
|
|
@ -101,7 +101,7 @@ static const char* _socketLuaSource =
|
||||||
" local cbid = self._nextCallback\n"
|
" local cbid = self._nextCallback\n"
|
||||||
" self._nextCallback = cbid + 1\n"
|
" self._nextCallback = cbid + 1\n"
|
||||||
" self._callbacks[event][cbid] = callback\n"
|
" self._callbacks[event][cbid] = callback\n"
|
||||||
" return id\n"
|
" return cbid\n"
|
||||||
" end,\n"
|
" end,\n"
|
||||||
" remove = function(self, cbid)\n"
|
" remove = function(self, cbid)\n"
|
||||||
" for _, group in pairs(self._callbacks) do\n"
|
" for _, group in pairs(self._callbacks) do\n"
|
||||||
|
|
Loading…
Reference in New Issue