diff options
Diffstat (limited to 'libpsn00b')
| -rw-r--r-- | libpsn00b/common.mk | 8 | ||||
| -rw-r--r-- | libpsn00b/include/psxgpu.h | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libpsn00b/common.mk b/libpsn00b/common.mk index 83b45e9..d15d4a5 100644 --- a/libpsn00b/common.mk +++ b/libpsn00b/common.mk @@ -2,9 +2,15 @@ # You may need to modify these values to match with your toolchain setup. # GCC version +ifndef GCC_VERSION + GCC_VERSION = 7.4.0 +endif + # GCC base paths +ifndef GCC_BASE + ifeq "$(OS)" "Windows_NT" # For Windows GCC_BASE = /c/mipsel-unknown-elf @@ -15,6 +21,8 @@ GCC_BASE = /usr/local/mipsel-unknown-elf endif +endif + # Toolchain prefix PREFIX = mipsel-unknown-elf- diff --git a/libpsn00b/include/psxgpu.h b/libpsn00b/include/psxgpu.h index 42c9156..65d3f66 100644 --- a/libpsn00b/include/psxgpu.h +++ b/libpsn00b/include/psxgpu.h @@ -140,7 +140,7 @@ /* ORIGINAl CODE */ #define setDrawMask( p, sb, mt ) \ - setlen( p, 1 ), p->code[0] = sb|(mt<<1), \ + setlen( p, 1 ), (p)->code[0] = sb|(mt<<1), \ setcode( p, 0xe6 ) |
