Commit Graph

16 Commits

Author SHA1 Message Date
Ryan Pavlik
7e295eb944 move some platform-specific code out of the main wiiuse source
Initializing and cleaning up platform-specific fields in the wiimote
structure is now done in a separate routine.
2011-09-07 10:43:21 -05:00
Ryan Pavlik
b03f8acecf fix visual studio build 2011-09-07 08:41:33 -05:00
Ryan Pavlik
44612529a7 try using endianness conversion functions instead of icky macros 2011-09-07 08:41:33 -05:00
Ryan Pavlik
8ae4146fd9 Fix for shutting off rumble, from Jeff Baker (Inv3rsion, LLC.) 2011-09-07 08:29:37 -05:00
Ryan Pavlik
8e78f9b649 improve all includes using iwyu 2011-09-07 08:29:37 -05:00
Ryan Pavlik
43a2529be0 fix docs for new output redirector 2011-05-02 15:54:05 -05:00
Ryan Pavlik
ccabaadf46 check malloc results 2011-05-02 12:42:12 -05:00
Ryan Pavlik
6c7fb6f12f improved platform definitions and definition checks 2011-05-02 10:32:26 -05:00
Ryan Pavlik
83a030ccd1 clean up redundant stdio.h includes 2011-04-28 09:56:23 -05:00
Ryan Pavlik
bfcb2fe94c shuffle and clean up includes - builds on windows properly again 2011-04-28 09:49:39 -05:00
Johannes Zarl
4829592601 Add support for redirecting or disabling messages from stdout to elsewhere.
The newly introduced procedure wiiuse_set_output can be used to set the FILE*
used for each of the loglevels LOGLEVEL_ERROR, LOGLEVEL_WARNING, LOGLEVEL_INFO,
and LOGLEVEL_DEBUG. Setting the logfile to 0 disables log output for a
loglevel. This adds the macro definition WIIUSE_HAS_OUTPUT_REDIRECTION, so
programs can test for the feature.

The internal log macros in definitions.h all honor this output redirection mechanism.
2011-04-27 08:33:36 -05:00
Johannes Zarl
ca4a38c31c fix doc typo in wiiuse.c. 2011-04-27 08:33:27 -05:00
Ryan Pavlik
8eef1f89dc Fix some crashes by checking pointers before deref 2010-11-11 15:11:27 -06:00
Ryan Pavlik
200778ed32 Modify credit statement to point to new location 2010-11-11 12:38:51 -06:00
Ryan Pavlik
dde5bb965a Improve balance board, use stdint.h 2010-07-22 18:42:04 -05:00
Ryan Pavlik
24b1063e59 Upstream official 0.12 2010-07-22 16:29:25 -05:00