From 8f9476f4c1a235a1330b53e1868a96e221be1c07 Mon Sep 17 00:00:00 2001 From: Maximus32 Date: Mon, 8 Jul 2024 20:24:16 +0200 Subject: [PATCH] GCC14 fixes Mostly copied over from OPL, credits to uyjulian. --- iop/cdvdfsv/src/scmd.c | 4 ++-- iop/cdvdman_emu/src/scmd.c | 4 ++-- iop/cdvdman_emu/src/searchfile.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/iop/cdvdfsv/src/scmd.c b/iop/cdvdfsv/src/scmd.c index 43565eb..f5be039 100644 --- a/iop/cdvdfsv/src/scmd.c +++ b/iop/cdvdfsv/src/scmd.c @@ -121,7 +121,7 @@ static inline void rpcSCmd_cdreadModelID(void *buf) M_DEBUG("%s\n", __FUNCTION__); - r->result = sceCdReadModelID(&r->param1); + r->result = sceCdReadModelID((unsigned int *)&r->param1); } //------------------------------------------------------------------------- @@ -132,7 +132,7 @@ static inline void rpcSCmd_cdreaddvddualinfo(void *buf) M_DEBUG("%s\n", __FUNCTION__); - r->result = sceCdReadDvdDualInfo((int *)&r->param1, &r->param2); + r->result = sceCdReadDvdDualInfo((int *)&r->param1, (unsigned int *)&r->param2); } //------------------------------------------------------------------------- diff --git a/iop/cdvdman_emu/src/scmd.c b/iop/cdvdman_emu/src/scmd.c index d592025..5e395dd 100644 --- a/iop/cdvdman_emu/src/scmd.c +++ b/iop/cdvdman_emu/src/scmd.c @@ -188,7 +188,7 @@ int sceCdReadGUID(u64 *GUID) } //-------------------------------------------------------------- -int sceCdReadModelID(unsigned long int *ModelID) +int sceCdReadModelID(unsigned int *ModelID) { M_DEBUG("%s(-)\n", __FUNCTION__); @@ -196,7 +196,7 @@ int sceCdReadModelID(unsigned long int *ModelID) } //------------------------------------------------------------------------- -int sceCdReadDvdDualInfo(int *on_dual, u32 *layer1_start) +int sceCdReadDvdDualInfo(int *on_dual, unsigned int *layer1_start) { M_DEBUG("%s(-, -)\n", __FUNCTION__); diff --git a/iop/cdvdman_emu/src/searchfile.c b/iop/cdvdman_emu/src/searchfile.c index e170528..416cca0 100644 --- a/iop/cdvdman_emu/src/searchfile.c +++ b/iop/cdvdman_emu/src/searchfile.c @@ -130,7 +130,7 @@ static struct dirTocEntry *cdvdman_locatefile(char *name, u32 tocLBA, int tocLen if (!(cdvdman_settings.flags & IOPCORE_COMPAT_EMU_DVDDL)) { int on_dual; - u32 layer1_start; + unsigned int layer1_start; sceCdReadDvdDualInfo(&on_dual, &layer1_start); if (layer) @@ -187,7 +187,7 @@ static int cdvdman_findfile(sceCdlFILE *pcdfile, const char *name, int layer) lsn = tocEntryPointer->fileLBA; if (layer) { - sceCdReadDvdDualInfo((int *)&pcdfile->lsn, &pcdfile->size); + sceCdReadDvdDualInfo((int *)&pcdfile->lsn, (unsigned int *)&pcdfile->size); lsn += pcdfile->size; } @@ -237,7 +237,7 @@ void cdvdman_searchfile_init(void) // DVD DL support if (!(cdvdman_settings.flags & IOPCORE_COMPAT_EMU_DVDDL)) { int on_dual; - u32 layer1_start; + unsigned int layer1_start; sceCdReadDvdDualInfo(&on_dual, &layer1_start); if (on_dual) { //u32 lsn0 = mediaLsnCount;