diff options
| author | John Wilbert M. Villamor <lameguy64@gmail.com> | 2020-11-29 20:18:38 +0800 |
|---|---|---|
| committer | John Wilbert M. Villamor <lameguy64@gmail.com> | 2020-11-29 20:18:38 +0800 |
| commit | 3d38a12ca171490e22c7b56cd19c008f2dadfb83 (patch) | |
| tree | 543653494423391c02fa21f5688baa90c67fdabe /libpsn00b/psxcd | |
| parent | 60deeff6e078271a17cf77c6204edbbde846f0bd (diff) | |
| download | psn00bsdk-3d38a12ca171490e22c7b56cd19c008f2dadfb83.tar.gz | |
Defined MDEC registers, corrected SquareRoot12() lookup table typo, updated memmove(), removed redundant toolchain definitions, added HDTV example
Diffstat (limited to 'libpsn00b/psxcd')
| -rw-r--r-- | libpsn00b/psxcd/isofs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpsn00b/psxcd/isofs.c b/libpsn00b/psxcd/isofs.c index 11dba6c..0122609 100644 --- a/libpsn00b/psxcd/isofs.c +++ b/libpsn00b/psxcd/isofs.c @@ -391,7 +391,7 @@ static int find_dir_entry(const char *name, ISO_DIR_ENTRY *dirent) char namebuff[16]; #ifdef DEBUG - printf("psxcd_dbg: Locating file %s.\n", name); + printf( "psxcd_dbg: Locating file %s.\n", name ); #endif i = 0; @@ -399,13 +399,13 @@ static int find_dir_entry(const char *name, ISO_DIR_ENTRY *dirent) while(dir_pos < _cd_iso_directory_len) { dir_entry = (ISO_DIR_ENTRY*)(_cd_iso_directory_buff+dir_pos); - + if( !(dir_entry->flags & 0x2) ) { strncpy(namebuff, _cd_iso_directory_buff+dir_pos+sizeof(ISO_DIR_ENTRY), dir_entry->identifierLen); - + if( strcmp(namebuff, name) == 0 ) { *dirent = *dir_entry; |
