Skip to content

Commit fde3cc7

Browse files
committed
fix compilation
1 parent 528de05 commit fde3cc7

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ SIO_DEBUG ?= 0
1818
DEBUG ?= 0
1919
COH ?= 0
2020
LCDVD ?= LEGACY#or LATEST
21+
2122
# ----------------------------- #
2223
.SILENT:
2324

@@ -53,7 +54,7 @@ ifeq ($(SMB),1)
5354
endif
5455

5556
ifeq ($(COH), 1)
56-
CDVDFSV = 0
57+
LCDVD=NONE
5758
SIO2MAN = 0
5859
MCMAN = 0
5960
EE_OBJS += ioprp.o
@@ -77,9 +78,13 @@ ifeq ($(LCDVD),LEGACY)
7778
CDVD_SOURCE = iop/cdvd.irx
7879
EE_INCS += -Iiop/oldlibs/libcdvd/ee
7980
EE_LIBS += -lcdvdfs
80-
else
81+
EE_OBJS += cdvd_irx.o
82+
else ifeq ($(LCDVD), LATEST)
8183
EE_CFLAGS += -DLIBCDVD_LATEST
8284
CDVD_SOURCE = iop/__precompiled/cdfs.irx
85+
EE_OBJS += cdvd_irx.o
86+
else ifeq ($(LCDVD), NONE)
87+
EE_CFLAGS += -DNO_CDVD_CDFS
8388
endif
8489

8590
ifeq ($(XFROM),1)
@@ -135,11 +140,6 @@ else
135140
EE_CFLAGS += -DUSE_ROM_MCMAN
136141
endif
137142

138-
ifeq ($(CDVDFSV),1)
139-
EE_OBJS += cdvd_irx.o
140-
else
141-
EE_CFLAGS += -DUSE_ROM_CDVDFSV
142-
endif
143143

144144
ifeq ($(LIBPAD),2)
145145
EE_LIBS += -lpadx
@@ -226,7 +226,8 @@ info:
226226
$(info DS34 include PS3/PS4 controller support)
227227
$(info MX4SIO support for SDCard connected to memory card slot 2)
228228
$(info MMCE support for direct SDCard access on SD2PSX or memcardpro2)
229-
$(info ----------)
229+
$(info COH support for Arcade PS2 models (system2x6 and Python1))
230+
$(info ------------------------)
230231
$(info IOPTRAP load exception handler module to IOP)
231232
$(info UDPTTY transfer stdout to UDP broadcast)
232233
$(info PPC_UART transfer stdout to DECKARD UART)

include/launchelf.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
#include <debug.h>
3939
#include <gsKit.h>
4040
#include <dmaKit.h>
41+
#ifndef NO_CDVD_CDFS
4142
#include <cdvd_rpc.h>
43+
#endif
4244
#include <libcdvd.h>
4345
#include <libjpg.h>
4446
#include <libkbd.h>

src/main.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ IMPORT_BIN2C(dvrdrv_irx);
6868
IMPORT_BIN2C(dvrfile_irx);
6969
#endif
7070

71-
#ifndef USE_ROM_CDVDFSV
71+
#ifndef NO_CDVD_CDFS
7272
IMPORT_BIN2C(cdvd_irx);
7373
#endif
74+
7475
#ifdef MMCE
7576
IMPORT_BIN2C(mmceman_irx);
7677
#endif
@@ -1230,11 +1231,13 @@ static void loadCdModules(void)
12301231
DPRINTF(" [rom0:CDVDFSV]: ID=%d, ret=%d\n", id, ret);
12311232
#endif
12321233
sceCdInit(SCECdINoD); // SCECdINoD init without check for a disc. Reduces risk of a lockup if the drive is in a erroneous state.
1234+
#ifndef NO_CDVD_CDFS
12331235
id = SifExecModuleBuffer(cdvd_irx, size_cdvd_irx, 0, NULL, &ret);
12341236
LCDVD_INIT();
12351237
DPRINTF(" [CDVD]: id=%d, ret=%d\n", id, ret);
1236-
1238+
#endif
12371239
have_cdvd = 1;
1240+
12381241
}
12391242
}
12401243
//------------------------------
@@ -1331,11 +1334,12 @@ static void getExternalFilePath(const char *argPath, char *filePath)
13311334
mountDVRPParty(party);
13321335

13331336
#endif
1334-
#ifndef SUPPORT_SYSTEM_2X6
1337+
#ifndef NO_CDVD_CDFS
13351338
} else if (!strncmp(argPath, "cdfs", 4)) {
13361339
strcpy(filePath, argPath);
13371340
LCDVD_FLUSHCACHE();
13381341
LCDVD_DISKREADY(0);
1342+
#endif
13391343
} else {
13401344
genFixPath(argPath, filePath);
13411345
}

0 commit comments

Comments
 (0)