diff options
| author | John Wilbert M. Villamor <lameguy64@gmail.com> | 2020-03-11 09:11:01 +0800 |
|---|---|---|
| committer | John Wilbert M. Villamor <lameguy64@gmail.com> | 2020-03-11 09:11:01 +0800 |
| commit | e82da2abe4c264d4b48a48d79cf9b8e4c4fb8ab6 (patch) | |
| tree | 0e5aa79d00229902aa0eae88c018ee9d226f83b7 /libpsn00b | |
| parent | 84422eceb3ecaa325f814b306665e58b0c3be647 (diff) | |
| download | psn00bsdk-e82da2abe4c264d4b48a48d79cf9b8e4c4fb8ab6.tar.gz | |
Fixed CdInit() syntax, fixed CdlFILE, updated toolchain.txt a bit.
Diffstat (limited to 'libpsn00b')
| -rw-r--r-- | libpsn00b/include/psxcd.h | 4 | ||||
| -rw-r--r-- | libpsn00b/psxcd/isofs.c | 4 | ||||
| -rw-r--r-- | libpsn00b/psxcd/psxcd.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libpsn00b/include/psxcd.h b/libpsn00b/include/psxcd.h index 1d045d9..072a219 100644 --- a/libpsn00b/include/psxcd.h +++ b/libpsn00b/include/psxcd.h @@ -103,7 +103,7 @@ typedef struct _CdlATV */ typedef struct _CdlFILE { - CdlLOC loc; + CdlLOC pos; u_int size; char name[16]; } CdlFILE; @@ -125,7 +125,7 @@ typedef void (*CdlCB)(int, unsigned char *); extern "C" { #endif -int CdInit(int mode); +int CdInit(void); CdlLOC* CdIntToPos(int i, CdlLOC *p); int CdPosToInt(CdlLOC *p); diff --git a/libpsn00b/psxcd/isofs.c b/libpsn00b/psxcd/isofs.c index 7d48eea..149f746 100644 --- a/libpsn00b/psxcd/isofs.c +++ b/libpsn00b/psxcd/isofs.c @@ -675,7 +675,7 @@ CdlFILE *CdSearchFile(CdlFILE *fp, const char *filename) printf("psxcd_dbg: Located file at LBA %d.\n", dir_entry.entryOffs.lsb); #endif - CdIntToPos(dir_entry.entryOffs.lsb, &fp->loc); + CdIntToPos(dir_entry.entryOffs.lsb, &fp->pos); fp->size = dir_entry.entrySize.lsb; return fp; @@ -797,7 +797,7 @@ int CdReadDir(CdlDIR *dir, CdlFILE* file) dir_entry->identifierLen ); } - CdIntToPos( dir_entry->entryOffs.lsb, &file->loc ); + CdIntToPos( dir_entry->entryOffs.lsb, &file->pos ); file->size = dir_entry->entrySize.lsb; diff --git a/libpsn00b/psxcd/psxcd.c b/libpsn00b/psxcd/psxcd.c index 5be9eec..7b4aa20 100644 --- a/libpsn00b/psxcd/psxcd.c +++ b/libpsn00b/psxcd/psxcd.c @@ -15,7 +15,7 @@ void _cd_control(unsigned char com, unsigned char *param, int plen); void _cd_wait_ack(void); void _cd_wait(void); -int CdInit(int mode) +int CdInit(void) { // Sets up CD-ROM hardware and low-level subsystem _cd_init(); |
