(PSL1GHT/Switch) Fix warnings

This commit is contained in:
libretroadmin 2022-07-07 16:37:56 +02:00
parent 9af17b633e
commit cd28d5ec8a
3 changed files with 22 additions and 1 deletions

View File

@ -68,10 +68,12 @@ SYS_PROCESS_PARAM(1001, 0x100000)
SYS_PROCESS_PARAM(1001, 0x200000)
#endif
#ifndef __PSL1GHT__
#ifdef HAVE_MULTIMAN
#define MULTIMAN_SELF_FILE "/dev_hdd0/game/BLES80608/USRDIR/RELOAD.SELF"
static bool multiman_detected = false;
#endif
#endif
#ifdef HAVE_MEMINFO
typedef struct {

View File

@ -115,7 +115,6 @@ static void switch_font_render_line(
float scale, const unsigned int color, float pos_x,
float pos_y, unsigned text_align)
{
const struct font_glyph* glyph_q = NULL;
int delta_x = 0;
int delta_y = 0;
unsigned fb_width = sw->vp.full_width;

View File

@ -683,18 +683,38 @@ extern int audioAddData(uint32_t portNum, float *data,
#define FS_TYPE_DIR 1
#ifdef __PSL1GHT__
#include <lv2/sysfs.h>
#ifndef O_RDONLY
#define O_RDONLY SYS_O_RDONLY
#endif
#ifndef O_WRONLY
#define O_WRONLY SYS_O_WRONLY
#endif
#ifndef O_CREAT
#define O_CREAT SYS_O_CREAT
#endif
#ifndef O_TRUNC
#define O_TRUNC SYS_O_TRUNC
#endif
#ifndef O_RDWR
#define O_RDWR SYS_O_RDWR
#endif
#else
#include <cell/cell_fs.h>
#ifndef O_RDONLY
#define O_RDONLY CELL_FS_O_RDONLY
#endif
#ifndef O_WRONLY
#define O_WRONLY CELL_FS_O_WRONLY
#endif
#ifndef O_CREAT
#define O_CREAT CELL_FS_O_CREAT
#endif
#ifndef O_TRUNC
#define O_TRUNC CELL_FS_O_TRUNC
#endif
#ifndef O_RDWR
#define O_RDWR CELL_FS_O_RDWR
#endif
#define sysFsStat cellFsStat
#define sysFSStat CellFsStat
#define sysFSDirent CellFsDirent