Commit Graph

35 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
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
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
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 Benton
d28f2f0a7a Fix formatting. 2017-06-02 11:50:57 +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
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
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
24c57e28c0 Add missing latte_enum_sq.h header required by libwhb. 2017-05-10 17:48:48 +01:00
James Benton
2cb787fabf Add libwhb - WUT HomeBrew library.
A library with utility functions for helping create simple homebrew
applications.

Mainly based off shinyquagsire23's gx2 sample.
https://github.com/shinyquagsire23/gx2texture2D
2017-05-10 17:30:34 +01:00
James Benton
91621b39b1 cmake: Rename libgfd target to gfd.
So we get libgfd.a instead of liblibgfd.a
2017-05-10 17:27:50 +01:00
James Benton
ad35efc97c Add libdefaultheap.
Gives you access to MEMAllocFromDefaultHeap{Ex} and MEMFreeToDefaultHeap.
This is a workaround until we can support data imports.
2017-05-10 17:27:00 +01:00
James Benton
c9d177651e gx2: Add missing GX2GetSwapStatus export. 2017-05-10 17:24:10 +01:00
James Benton
5c9cc47e1c gx2: Add GX2TempGetGPUVersion. 2017-05-10 17:24:01 +01:00
James Benton
8c93d5b3c8 proc_ui: Add ProcUIRegisterCallback{Core}. 2017-05-10 17:21:57 +01:00
James Benton
fcafa791b3 Add libgfd. 2017-05-07 01:38:01 +01:00
James Benton
bfeac63818 Rearrange source tree. 2017-05-07 01:37:13 +01:00