diff --git a/Makefile.wii b/Makefile.wii index 3f702da3df..072282ca5e 100644 --- a/Makefile.wii +++ b/Makefile.wii @@ -265,6 +265,10 @@ ifeq ($(LOAD_WITHOUT_CORE_INFO),1) CFLAGS += -DLOAD_WITHOUT_CORE_INFO endif +ifneq ($(V),1) + Q := @ +endif + OBJOUT = -o LINKOUT = -o LINK = $(CXX) @@ -278,7 +282,8 @@ $(EXT_INTER_TARGET): $(OBJ) $(LINK) $(LINKOUT)$@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(PLATEXTRA) $(LIBS) %.o: %.c - $(CC) $(CFLAGS) -c $(OBJOUT)$@ $< + @$(if $(Q), $(shell echo echo CC $<),) + $(Q)$(CC) $(CFLAGS) -c $(OBJOUT)$@ $< %.o: %.cpp $(CXX) $(CFLAGS) -c $(OBJOUT)$@ $< diff --git a/deps/rcheevos/src/rc_compat.c b/deps/rcheevos/src/rc_compat.c index 9477c79cf7..80044d37de 100644 --- a/deps/rcheevos/src/rc_compat.c +++ b/deps/rcheevos/src/rc_compat.c @@ -3,10 +3,6 @@ #include #include -#if defined(_3DS) && !defined(_POSIX_THREADS) -#include <../rthreads/ctr_pthread.h> -#endif - #ifdef RC_C89_HELPERS int rc_strncasecmp(const char* left, const char* right, size_t length) @@ -124,22 +120,24 @@ void rc_mutex_unlock(rc_mutex_t* mutex) void rc_mutex_init(rc_mutex_t* mutex) { - LWP_MutexInit(mutex, NULL); + /* LWP_MutexInit has the handle passed by reference */ + /* Other LWP_Mutex* calls have the handle passed by value */ + LWP_MutexInit(&mutex->handle, 1); } void rc_mutex_destroy(rc_mutex_t* mutex) { - LWP_MutexDestroy(mutex); + LWP_MutexDestroy(mutex->handle); } void rc_mutex_lock(rc_mutex_t* mutex) { - LWP_MutexLock(mutex); + LWP_MutexLock(mutex->handle); } void rc_mutex_unlock(rc_mutex_t* mutex) { - LWP_MutexUnlock(mutex); + LWP_MutexUnlock(mutex->handle); } #elif defined(_3DS) diff --git a/deps/rcheevos/src/rc_compat.h b/deps/rcheevos/src/rc_compat.h index 9d44f2828e..614d1bc273 100644 --- a/deps/rcheevos/src/rc_compat.h +++ b/deps/rcheevos/src/rc_compat.h @@ -81,6 +81,11 @@ RC_BEGIN_C_DECLS typedef struct rc_mutex_t { void* handle; /* HANDLE is defined as "void*" */ } rc_mutex_t; + #elif defined(GEKKO) + #include + typedef struct rc_mutex_t { + mutex_t handle; + } rc_mutex_t; #elif defined(_3DS) #include <3ds/synchronization.h> typedef RecursiveLock rc_mutex_t; diff --git a/gfx/drivers/gx_gfx.c b/gfx/drivers/gx_gfx.c index 0e27b6f955..baca247fc0 100644 --- a/gfx/drivers/gx_gfx.c +++ b/gfx/drivers/gx_gfx.c @@ -74,6 +74,9 @@ } #endif +void VIDEO_SetTrapFilter(bool enable); +void VIDEO_SetGamma(int gamma); + enum { GX_RESOLUTIONS_DEFAULT = 0, diff --git a/input/drivers_hid/wiiusb_hid.c b/input/drivers_hid/wiiusb_hid.c index ec29be501d..bab98695bb 100644 --- a/input/drivers_hid/wiiusb_hid.c +++ b/input/drivers_hid/wiiusb_hid.c @@ -15,6 +15,8 @@ */ #include +#include +#include #include #include