hook frame callback in socket connect

This commit is contained in:
Adam Higerd 2023-02-12 14:57:29 -06:00 committed by Vicki Pfau
parent e10f5997be
commit 033efff86e
2 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ Other fixes:
- Qt: Fix initializing update revision info
- Qt: Redo stable branch detection heuristic (fixes mgba.io/i/2679)
- Res: Fix species name location in Ruby/Sapphire revs 1/2 (fixes mgba.io/i/2685)
- Scripting: Fix receiving packets for client sockets
- VFS: Fix minizip write returning 0 on success instead of size
Misc:
- macOS: Add category to plist (closes mgba.io/i/2691)

View File

@ -134,7 +134,7 @@ static const char* _socketLuaSource =
" end,\n"
" connect = function(self, address, port)\n"
" local status = self._s:connect(address, port)\n"
" return socket._wrap(status)\n"
" return self:_hook(status)\n"
" end,\n"
" listen = function(self, backlog)\n"
" local status = self._s:listen(backlog or 1)\n"