diff --git a/.gitignore b/.gitignore index 0a8db49..37df383 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ Thumbs.db build/ lib/ +bin/ diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..7d46ae8 --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,20 @@ +SUBDIRS:= $(shell ls | egrep -v '^(CVS)$$') + +DATESTRING := $(shell date +%Y)$(shell date +%m)$(shell date +%d) + +#--------------------------------------------------------------------------------- +all: examples +#--------------------------------------------------------------------------------- + @rm -fr bin + @mkdir -p bin + @find . -name "*.3dsx" ! -path "./bin/*" -exec cp -fv {} bin \; + +examples: + @for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i || { exit 1;} fi; done; + +#--------------------------------------------------------------------------------- +clean: +#--------------------------------------------------------------------------------- + @rm -fr bin + @rm -f *.bz2 + @for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i clean || { exit 1;} fi; done; diff --git a/source/base.c b/source/base.c index 7090b60..9350d03 100644 --- a/source/base.c +++ b/source/base.c @@ -35,13 +35,14 @@ static void C3Di_SetTex(GPU_TEXUNIT unit, C3D_Tex* tex) static aptHookCookie hookCookie; -static void C3Di_AptEventHook(int hookType, void* param) +static void C3Di_AptEventHook(APT_HookType hookType, void* param) { C3D_Context* ctx = C3Di_GetContext(); switch (hookType) { case APTHOOK_ONSUSPEND: + default: { break; }