(WIIU) misc.

This commit is contained in:
aliaspider 2016-11-05 15:01:43 +01:00
parent 176dd79f33
commit 0433cae3c9
3 changed files with 3 additions and 10 deletions

View File

@ -53,16 +53,7 @@ static int16_t wiiu_input_state(void *data, const struct retro_keybind **binds,
{
wiiu_input_t *wiiu = (wiiu_input_t*)data;
if(!wiiu)
return 0;
if (port > 0)
return 0;
if(!binds)
return 0;
if(!binds[port])
if(!wiiu || (port > 0) || !binds || !binds[port])
return 0;
switch (device)

View File

@ -1,4 +1,5 @@
export WIILOAD=tcp:$1
rm $2.stripped -rf
powerpc-eabi-strip $2 -o $2.stripped
wiiload $2.stripped
#netcat -p 4405 -l $1

View File

@ -17,6 +17,7 @@ extern "C" {
#define DEBUG_STR(X) printf( "%s: %s\n", #X, (char*)(X))
#define DEBUG_VAR(X) printf( "%-20s: 0x%08X\n", #X, (u32)(X))
#define DEBUG_INT(X) printf( "%-20s: %10i\n", #X, (s32)(X))
#define DEBUG_FLOAT(X) printf( "%-20s: %10.3f\n", #X, (float)(X))
#define DEBUG_VAR64(X) printf( #X"\r\t\t\t\t : 0x%016llX\n", (u64)(X))
//#define DEBUG_ERROR(X) do{if(X)dump_result_value(X);}while(0)
#define PRINTFPOS(X,Y) "\x1b["#X";"#Y"H"