Skip to content

Commit e57ca67

Browse files
author
Niko
committed
PCDRV progress
1 parent 10e409c commit e57ca67

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

decompile/General/CDSYS/CDSYS_04_SetXAToLang.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
void DECOMP_CDSYS_SetXAToLang(int lang)
44
{
5-
6-
// PS1
7-
#ifdef USE_PCDRV
8-
return;
9-
#endif
10-
115
char* xaLang;
126
int fileSize;
137
struct XNF* xnf;

decompile/General/LOAD/LOAD_14_InitCD.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
void DECOMP_LOAD_InitCD()
44
{
5-
#ifndef USE_PCDRV
6-
#define boolUseDisc 1 // PS1
7-
#else
8-
#define boolUseDisc 0 // PC
9-
PCinit();
5+
#ifdef USE_PCDRV
6+
PCinit();
7+
DECOMP_CDSYS_Init(0);
8+
return;
109
#endif
1110

12-
DECOMP_CDSYS_Init(boolUseDisc);
11+
DECOMP_CDSYS_Init(1);
1312
}

decompile/General/LOAD/LOAD_22_XnfFile.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
// Used for XNF and only the XNF
44
void* DECOMP_LOAD_XnfFile(char* filename, void* ptrDestination, int* size)
55
{
6-
7-
// PS1
8-
#ifndef USE_PCDRV
9-
106
CdlFILE cdlFile;
117

128
DECOMP_LOAD_StringToUpper(filename);
@@ -38,7 +34,4 @@ void* DECOMP_LOAD_XnfFile(char* filename, void* ptrDestination, int* size)
3834
return 0;
3935

4036
return ptrDestination;
41-
42-
#endif
43-
4437
}

0 commit comments

Comments
 (0)