Commit Graph

319 Commits

Author SHA1 Message Date
CreeperMario
51f3d4bdd7 whb: Logging functions use less RAM at expense of binary size. 2017-08-28 06:59:32 +09:30
CreeperMario
40ff966159 Re-organise .gitmodules file 2017-08-27 19:16:37 +09:30
CreeperMario
d44b7f774e Update cppformat v2 to fmtlib v4
* I did this mainly to remove some build warnings that were showing up
in cppformat v2 underneath clang (the default macOS compiler)
* At this point, WUT will build on macOS with no warnings whatsoever.
2017-08-27 18:41:08 +09:30
CreeperMario
5829abb4ef crt: Suppress warnings for pointer logic 2017-08-27 17:06:02 +09:30
CreeperMario
75bb7b5d10 whb: Rename "socketinit" to "libmanager" 2017-08-20 20:36:48 +09:30
CreeperMario
a2247e7b1e whb: Add simplistic socket library manager.
* This manager counts how many times the program has requested the
socket library be initialized, so that the socket library is not
mistakenly closed while other things are still using sockets.
* WHBInitializeSocketLibrary will call socket_lib_init() and also keep a
count on how many times it has been called.
* WHBDeinitializeSocketLibrary will call socket_lib_finish(), but only
if it has been called as many times as WHBInitializeSocketLibrary.
2017-08-20 19:16:27 +09:30
CreeperMario
20c7dbf2fb whb: Add ability to remove logging functions
* WHBRemoveLogHandler will look through the "registry" of logging
functions, and will set the entry to NULL if it matches what the user
passes.
* WHBLogUdpDeinit will correctly close the socket and shut down the
socket library in addition to removing its entry in the registry.
2017-08-20 18:17:07 +09:30
CreeperMario
ac4ce95f84 udplogserver: Flush output buffer when sent a message
* Because we are no longer adding a new line, which automatically
flushes the buffer.
2017-08-20 17:51:45 +09:30
CreeperMario
45f3cd71ab whb: Modification of logging functions
* WHBLogPrint and WHBLogPrint have been renamed to WHBLogWrite and
WHBLogWrite respectively.
* WHBLogPrint and WHBLogPrintf have been re-implemented to automatically
add a new line to the end of the string, and then send the string to
WHBLogWrite.
2017-08-20 16:57:43 +09:30
CreeperMario
84d1957066 udplogserver: Do not automatically add a new line to log outputs. 2017-08-19 21:23:20 +09:30
James
dd73b95579 Merge pull request #56 from CreeperMario/unrelated-fixes
Various small fixes
2017-08-06 17:52:14 +01:00
CreeperMario
90d13e5708 libwhb: Add a simplistic Cafe Log handler 2017-08-06 17:42:43 +09:30
CreeperMario
c0c1faa1e9 libwhb: Initialize FSCmdBlock in WHBUnmountSdCard 2017-08-06 17:11:15 +09:30
CreeperMario
492bad4382 crt: **Really** fix newlib lock 2017-08-06 16:56:17 +09:30
James Benton
96b24236f1 Fix newlib lock 2017-07-03 15:43:53 +01:00
James Benton
6bc6534a9f whb: Fix GPU hang reset. 2017-06-02 14:37:58 +01:00
James Benton
574eeef4f0 whb: Use OSGetTitleID to check if we were launched from WHB. 2017-06-02 14:37:58 +01:00
James
d796876a35 Update README.md 2017-06-02 13:59:20 +01:00
James Benton
c265a9f4db Fix udplogserver Linux build 2017-06-02 13:54:55 +01:00
James Benton
e0f1b03edf Add .travis.yml 2017-06-02 13:49:41 +01:00
James
8b4816d6f4 Update README.md 2017-06-02 13:32:58 +01:00
James Benton
04ec3338b7 appveyor: pls 2017-06-02 13:28:31 +01:00
James Benton
c2b09a3a28 appveyor: pls 2017-06-02 13:23:54 +01:00
James Benton
6a02035b2a appveyor: Change build to build_script 2017-06-02 13:22:12 +01:00
James Benton
bfaf5382a0 Add appveyor.yml 2017-06-02 13:20:19 +01:00
James Benton
11940e076c Update triangle sample.
Still doesn't render correctly on hardware - will lead to the GPU hanging,
maybe something wrong with our custom compiled shader.
2017-06-02 11:55:36 +01:00
James Benton
43e1b0ab4f Add UDP log server. 2017-06-02 11:52:30 +01:00
James Benton
d28f2f0a7a Fix formatting. 2017-06-02 11:50:57 +01:00
James Benton
0239462847 nsysnet: Add defines for UDP broadcast. 2017-06-02 11:50:43 +01:00
James Benton
ee9bd49c34 whb: Handle GPU hangs by resetting the GPU on shutdown.
So your application will exit cleanly even when you break the GPU.
2017-06-02 11:50:12 +01:00
James Benton
2c18b246ae whb: Fix proc to better support HBL launched applications.
Should exit cleanly to HBL now.

TODO: Is it possible to auto detect if we were launched from HBL?
2017-06-02 11:48:59 +01:00
James Benton
79345f239f whb: Add crash handler based off the one in coreinit.
Although I'm not convinced it's actually working... yet.
2017-06-02 11:47:28 +01:00
James Benton
b79a58dec2 whb: Add SD card mounting support. 2017-06-02 11:46:31 +01:00
James Benton
fb325ec894 whb: Add UDP logging support. 2017-06-02 11:46:15 +01:00
James Benton
fb38792da9 whb: Add missing include to gfx.h 2017-06-02 11:44:04 +01:00
James Benton
c81a06048f gfd: Add GFDGetLastErrorString. 2017-06-02 11:43:41 +01:00
James Benton
2100cea176 coreinit: Add OSGetSymbolName, OSGetUPID. 2017-06-02 11:42:42 +01:00
James Benton
5a07bf6c1d coreinit: Add DisassemblePPCRange. 2017-06-02 11:42:24 +01:00
James Benton
46b3c9c7e0 coreinit: Add OSEnableHomeButtonMenuhome button menu and OSIsHomeButtonMenuEnabled. 2017-06-02 11:41:54 +01:00
James Benton
a2cf3837a3 coreinit: Fix type from uint8_t * to void * in MEMExpHeap functions. 2017-06-02 11:41:03 +01:00
James Benton
c83ff22780 coreinit: Move OSContext to context.h 2017-06-02 11:40:41 +01:00
James Benton
cef331cc09 whb: Add GFD texture loading with WHBGfxLoadGFDTexture, WHBGfxFreeTexture. 2017-05-28 12:01:06 +01:00
James Benton
3c47d28082 whb: Fix missing includes. 2017-05-28 12:01:06 +01:00
James Benton
bb05542e60 gx2r: Fix GX2R allocated memory flag. 2017-05-28 12:01:06 +01:00
James Benton
bd59620c56 gx2: Add GX2RResourceFlags to GX2Surface. 2017-05-28 12:01:06 +01:00
James Benton
576ab3fe4d coreinit: Fix missing threadqueue.h include in messagequeue.h 2017-05-26 18:24:14 +01:00
James Benton
c4aebac137 coreinit: Fix OSMessageFlags enum name. 2017-05-26 17:46:57 +01:00
James
660e16a071 Merge pull request #53 from rw-r-r-0644/master
renamed crt-lite crt0.s to crt0.S to fix cmake issues
2017-05-17 08:07:26 -07:00
rw-r-r-0644
1eec51cee1 renamed crt-lite crt0.s to crt0.S to fix cmake issues 2017-05-16 22:11:15 +02:00
James Benton
7e484d94ba Remove autogenerated registers from sample shader 2017-05-11 20:00:01 +01:00