aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgpu/gettimimage.c
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2021-07-01 11:18:22 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2021-07-01 11:18:22 +0800
commitacc1a959fe3c4bc5d5e91f1f31e182ff967008ca (patch)
tree4f08247e6d5768d88202ea91af1806cbece13f55 /libpsn00b/psxgpu/gettimimage.c
parent01fe30bd8bae59ab954751b08bcc1d158eff7edb (diff)
downloadpsn00bsdk-acc1a959fe3c4bc5d5e91f1f31e182ff967008ca.tar.gz
Fixed missing type errors when compiling libraries due to the new variable type changes
Diffstat (limited to 'libpsn00b/psxgpu/gettimimage.c')
-rw-r--r--libpsn00b/psxgpu/gettimimage.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libpsn00b/psxgpu/gettimimage.c b/libpsn00b/psxgpu/gettimimage.c
index 49ce8e9..d9cf1bf 100644
--- a/libpsn00b/psxgpu/gettimimage.c
+++ b/libpsn00b/psxgpu/gettimimage.c
@@ -1,8 +1,9 @@
+#include <sys/types.h>
#include <psxgpu.h>
-int GetTimInfo(unsigned int *tim, TIM_IMAGE *timimg) {
+int GetTimInfo(u_long *tim, TIM_IMAGE *timimg) {
- unsigned int *rtim;
+ u_long *rtim;
// Check ID
if( ( tim[0]&0xff ) != 0x10 ) {
@@ -21,7 +22,7 @@ int GetTimInfo(unsigned int *tim, TIM_IMAGE *timimg) {
if( timimg->mode & 0x8 ) {
timimg->crect = (RECT*)(rtim+1);
- timimg->caddr = (unsigned int*)(rtim+3);
+ timimg->caddr = (u_long*)(rtim+3);
rtim += rtim[0]>>2;
@@ -32,7 +33,7 @@ int GetTimInfo(unsigned int *tim, TIM_IMAGE *timimg) {
}
timimg->prect = (RECT*)(rtim+1);
- timimg->paddr = (unsigned int*)(rtim+3);
+ timimg->paddr = (u_long*)(rtim+3);
return 0;