Skip to content

Commit

Permalink
dont use latest cdfs.irx by default
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps authored Jul 25, 2024
1 parent e31a9a3 commit bc17c7d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MX4SIO ?= 0
SIO2MAN ?= 0
PPC_UART ?= 0
DEBUG ?= 0
LCDVD ?= LATEST#or LEGACY
LCDVD ?= LEGACY#or LATEST
# ----------------------------- #
.SILENT:

Expand Down Expand Up @@ -53,9 +53,9 @@ ifeq ($(LCDVD),LEGACY)
$(info -- Building with legacy libcdvd)
EE_CFLAGS += -DLIBCDVD_LEGACY
CDVD_SOURCE = iop/cdvd.irx
else
EE_INCS += -Iiop/oldlibs/libcdvd/ee
EE_LIBS += -lcdvdfs
else
EE_CFLAGS += -DLIBCDVD_LATEST
CDVD_SOURCE = iop/__precompiled/cdfs.irx
endif
Expand Down
2 changes: 2 additions & 0 deletions include/cdvd_macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
#define __CDVD_COMPAT_MACRO

#ifdef LIBCDVD_LEGACY
#define LCDVD_FLUSHCACHE() CDVD_FlushCache()
#define LCDVD_INIT() CDVD_Init()
#define LCDVD_STOP() CDVD_Stop()
#define LCDVD_DISKREADY(x) CDVD_DiskReady(x)
#else
#define LCDVD_FLUSHCACHE() // TO-DO / IMPLEMENT ME
#define LCDVD_INIT() // does not exist on sdk libcdvd
#define LCDVD_STOP() sceCdStop()
#define LCDVD_DISKREADY(x) sceCdDiskReady(x)
Expand Down
2 changes: 1 addition & 1 deletion src/filer.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ int genFixPath(const char *inp_path, char *gen_path)
pathSep = strchr(uLE_path, '/');

if (!strncmp(uLE_path, "cdfs", 4)) { //if using CD or DVD disc path
// TODO: Flush CDFS cache
LCDVD_FLUSHCACHE();
LCDVD_DISKREADY(0);
//end of clause for using a CD or DVD path

Expand Down
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ static void getExternalFilePath(const char *argPath, char *filePath)
#endif
} else if (!strncmp(argPath, "cdfs", 4)) {
strcpy(filePath, argPath);
// TODO: Flush CDFS cache
LCDVD_FLUSHCACHE();
LCDVD_DISKREADY(0);
} else {
genFixPath(argPath, filePath);
Expand Down Expand Up @@ -2357,7 +2357,7 @@ static void Execute(char *pathin)
Show_build_info();
return;
} else if (!strncmp(path, "cdfs", 4)) {
// TODO: Flush CDFS cache
LCDVD_FLUSHCACHE();
LCDVD_DISKREADY(0);
party[0] = 0;
goto CheckELF_path;
Expand Down

0 comments on commit bc17c7d

Please sign in to comment.