yellows8
fa3d93d649
Enabled using setvbuf with adjustments, improves netloader perf. Fixed issue with large-chunksize, chunksize is now uint32_t and initialized to 0. Minor other change.
2019-08-08 17:57:17 -04:00
yellows8
6c84575ef7
Fixed buffer overflow when the netloader chunksize is too large, during NRO transfer (this will not occur with an unmodified nxlink).
2019-08-05 12:00:45 -04:00
yellows8
d616ed02a7
Fixed buffer overflow vuln with netloader args introduced with the original netloader commit. Fixed unrelated bounds check in launchAddArg() which assumed there was nothing after argData_s.buf within argData_s, which was no longer the case once nxlink_host was added to argData_s.
2018-10-27 16:11:02 -04:00
yellows8
1435a2fb3b
Use non-blocking for netloader_datafd. Added sendall which is used instead of calling send directly, the output len from sendall is now checked. Check recvall len output when transferring args. The blocking handling in recvall/sendall now uses netloaderGetExit(). netloader_error() now uses locking, and only writes to netloader_errortext when it's not set. netloader_error() also aborts when netloader exit was requested.
2018-10-27 14:42:07 -04:00
yellows8
86632292b0
Display netloader status with a modified msgbox.
...
* Enabled StrIds in language.c for this with some adjustments.
* Moved sockets init/exit into netloaderInit/netloaderExit, netloaderInit now returns Result.
* Changed the params for netloaderGetState to an output struct.
* In netloaderTask(), check netloader_exitflag at the end before clearing it.
* Moved code calling loadnro from netloader_loop into netloaderTask.
* Call thrd_sleep with the while-loop calling netloader_loop in netloaderTask.
* Various other changes.
2018-10-23 20:13:10 -04:00
yellows8
ba4c80d76d
Fixed exiting with + button when netloader is active.
2018-10-22 22:13:33 -04:00
yellows8
6d6fb4e3a3
Allow aborting the netloader transfer when the user presses B. When decompress() aborts/fails, delete the file. When returning to HBMENU_DEFAULT from netloader, reload the menu since the netloader NRO may have been deleted due to transfer abort/failure. Minor adjustments.
2018-10-20 12:54:03 -04:00
yellows8
45a10488b1
Moved netloader to the worker thread. Minor improvements.
2018-10-20 11:13:29 -04:00
SegFault42
4987cbddb1
fix memset error
2018-08-16 19:13:29 -04:00
Dave Murphy
4539b8e78d
clean up includes for OSX
2018-05-12 16:57:17 +02:00
yellows8
94b1d648d1
Fixed string warnings with gcc 8.1.0.
2018-05-09 21:25:53 -04:00
yellows8
bbf6bf50f7
Always set PING_ENABLED=1, and removed outdated comment.
2018-05-08 16:28:55 -04:00
yellows8
4563794505
Use nacp.h from libnx. Clear errortext in netloader_error().
2018-04-26 17:28:58 -04:00
yellows8
8506e1b316
In netloader_error(), use same msgbox width/height as main() since 'OK' wasn't displayed properly. Also use snprintf instead of sprintf in netloader_error().
2018-03-20 23:34:51 -04:00
Dave Murphy
03a4de8c25
use iquote for libnx headers on pc ( #29 )
2018-03-19 18:57:47 -04:00
yellows8
5731858272
Moved 'v' from APP_VERSION in Makefile to Makefile.nx/Makefile.pc, so that the version in the built nro-nacp doesn't include 'v'. Removed nxlink.h include since switch.h has this.
2018-03-19 18:36:58 -04:00
Dave Murphy
ebced71ec3
Add nxlink support ( #27 )
...
* Add nxlink support
* use libnx nro.h
* make sure path doesn't overflow
* convert indentation to spaces
2018-03-19 21:42:58 +01:00