summaryrefslogtreecommitdiff
path: root/libpcsxcore/cdriso.c
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-01-12 02:51:29 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-01-12 02:51:29 +0000
commit27e8b5744ddab50cc9ef50b6ee1f3a94010a8cea (patch)
treec38e3e5475e499b769368cb34129c70f1e2a36f8 /libpcsxcore/cdriso.c
parent9bbb363c552598dcec7d17c7e6386a6f405edcab (diff)
- Added -slowboot parameter.
- Load SBI file from patches/SLUS_xxx.xx.sbi instead. - Inlined the I-cache code for performance improvement. - Fixed endianness issue (not tested). git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@62024 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/cdriso.c')
-rw-r--r--libpcsxcore/cdriso.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index f2746943..5c83990b 100644
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -701,61 +701,6 @@ static int opensubfile(const char *isoname) {
return 0;
}
-// redump.org SBI files
-u8 sbitime[256][3];
-u8 sbicount;
-
-int opensbifile(const char *isoname) {
- FILE *sbihandle;
- char sbiname[MAXPATHLEN];
-
-
- // init
- sbicount = 0;
-
-
- // copy name of the iso and change extension from .img to .sbi
- strncpy(sbiname, isoname, sizeof(sbiname));
- sbiname[MAXPATHLEN - 1] = '\0';
- if (strlen(sbiname) >= 4) {
- strcpy(sbiname + strlen(sbiname) - 4, ".sbi");
- }
- else {
- return -1;
- }
-
- sbihandle = fopen(sbiname, "rb");
- if (sbihandle == NULL) {
- return -1;
- }
-
-
- // 4-byte SBI header
- fread( sbiname, 1, 4, sbihandle );
- while( !feof(sbihandle) ) {
- u8 subq[11];
- fread( sbitime[ sbicount++ ], 1, 3, sbihandle );
- fread( subq, 1, 11, sbihandle );
- }
-
-
- return 0;
-}
-
-int checkSBI(u8 *time) {
- int lcv;
-
- // both BCD format
- for( lcv=0; lcv<sbicount; lcv++ ) {
- if( time[0] == sbitime[lcv][0] &&
- time[1] == sbitime[lcv][1] &&
- time[2] == sbitime[lcv][2] )
- return 1;
- }
-
- return 0;
-}
-
long CALLBACK ISOinit(void) {
assert(cdHandle == NULL);
assert(subHandle == NULL);
@@ -830,14 +775,9 @@ static long CALLBACK ISOopen(void) {
fseek(cdHandle, 0, SEEK_SET);
}
-
if (!subChanMixed && opensubfile(GetIsoFile()) == 0) {
SysPrintf("[+sub]");
}
-
- if (opensbifile(GetIsoFile()) == 0) {
- SysPrintf("[+sbi]");
- }
SysPrintf(".\n");