mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-22 18:49:18 +01:00
Fix compilation errors with latest libOGC/devkitPPC
(Partially ported from snes9xgx: a417745817
)
This commit is contained in:
parent
7ea8a271b2
commit
72fee232c7
@ -346,7 +346,7 @@ int FileSortCallback(const void *f1, const void *f2)
|
|||||||
if(((BROWSERENTRY *)f1)->isdir && !(((BROWSERENTRY *)f2)->isdir)) return -1;
|
if(((BROWSERENTRY *)f1)->isdir && !(((BROWSERENTRY *)f2)->isdir)) return -1;
|
||||||
if(!(((BROWSERENTRY *)f1)->isdir) && ((BROWSERENTRY *)f2)->isdir) return 1;
|
if(!(((BROWSERENTRY *)f1)->isdir) && ((BROWSERENTRY *)f2)->isdir) return 1;
|
||||||
|
|
||||||
return stricmp(((BROWSERENTRY *)f1)->filename, ((BROWSERENTRY *)f2)->filename);
|
return strcasecmp(((BROWSERENTRY *)f1)->filename, ((BROWSERENTRY *)f2)->filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -361,7 +361,7 @@ bool IsSz()
|
|||||||
char * p = strrchr(browserList[browser.selIndex].filename, '.');
|
char * p = strrchr(browserList[browser.selIndex].filename, '.');
|
||||||
|
|
||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
if(stricmp(p, ".7z") == 0)
|
if(strcasecmp(p, ".7z") == 0)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -563,12 +563,12 @@ static bool ParseDirEntries()
|
|||||||
if(ext == NULL)
|
if(ext == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if( stricmp(ext, "agb") != 0 && stricmp(ext, "gba") != 0 &&
|
if( strcasecmp(ext, "agb") != 0 && strcasecmp(ext, "gba") != 0 &&
|
||||||
stricmp(ext, "bin") != 0 && stricmp(ext, "elf") != 0 &&
|
strcasecmp(ext, "bin") != 0 && strcasecmp(ext, "elf") != 0 &&
|
||||||
stricmp(ext, "mb") != 0 && stricmp(ext, "dmg") != 0 &&
|
strcasecmp(ext, "mb") != 0 && strcasecmp(ext, "dmg") != 0 &&
|
||||||
stricmp(ext, "gb") != 0 && stricmp(ext, "gbc") != 0 &&
|
strcasecmp(ext, "gb") != 0 && strcasecmp(ext, "gbc") != 0 &&
|
||||||
stricmp(ext, "cgb") != 0 && stricmp(ext, "sgb") != 0 &&
|
strcasecmp(ext, "cgb") != 0 && strcasecmp(ext, "sgb") != 0 &&
|
||||||
stricmp(ext, "zip") != 0 && stricmp(ext, "7z") != 0)
|
strcasecmp(ext, "zip") != 0 && strcasecmp(ext, "7z") != 0)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,12 +13,12 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <wiiuse/wpad.h>
|
|
||||||
#include <wupc/wupc.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
#include <di/di.h>
|
#include <di/di.h>
|
||||||
|
#include <wiiuse/wpad.h>
|
||||||
|
#include <wupc/wupc.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "vbagx.h"
|
#include "vbagx.h"
|
||||||
|
@ -313,7 +313,7 @@ bool InitializeNetwork(bool silent)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
networkInit = !(if_config(wiiIP, NULL, NULL, true) < 0);
|
networkInit = !(if_config(wiiIP, NULL, NULL, true, 10) < 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CancelAction();
|
CancelAction();
|
||||||
|
@ -82,7 +82,7 @@ static void createXMLSetting(const char * name, const char * description, const
|
|||||||
mxmlElementSetAttr(item, "description", description);
|
mxmlElementSetAttr(item, "description", description);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void createXMLController(unsigned int controller[], const char * name, const char * description)
|
static void createXMLController(u32 controller[], const char * name, const char * description)
|
||||||
{
|
{
|
||||||
item = mxmlNewElement(section, "controller");
|
item = mxmlNewElement(section, "controller");
|
||||||
mxmlElementSetAttr(item, "name", name);
|
mxmlElementSetAttr(item, "name", name);
|
||||||
@ -201,7 +201,9 @@ preparePrefsData ()
|
|||||||
|
|
||||||
createXMLSection("Menu", "Menu Settings");
|
createXMLSection("Menu", "Menu Settings");
|
||||||
|
|
||||||
|
#ifdef HW_RVL
|
||||||
createXMLSetting("WiimoteOrientation", "Wiimote Orientation", toStr(GCSettings.WiimoteOrientation));
|
createXMLSetting("WiimoteOrientation", "Wiimote Orientation", toStr(GCSettings.WiimoteOrientation));
|
||||||
|
#endif
|
||||||
createXMLSetting("ExitAction", "Exit Action", toStr(GCSettings.ExitAction));
|
createXMLSetting("ExitAction", "Exit Action", toStr(GCSettings.ExitAction));
|
||||||
createXMLSetting("MusicVolume", "Music Volume", toStr(GCSettings.MusicVolume));
|
createXMLSetting("MusicVolume", "Music Volume", toStr(GCSettings.MusicVolume));
|
||||||
createXMLSetting("SFXVolume", "Sound Effects Volume", toStr(GCSettings.SFXVolume));
|
createXMLSetting("SFXVolume", "Sound Effects Volume", toStr(GCSettings.SFXVolume));
|
||||||
@ -331,7 +333,7 @@ static void loadXMLSetting(float * var, const char * name)
|
|||||||
* Load XML elements into variables for a controller mapping
|
* Load XML elements into variables for a controller mapping
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
static void loadXMLController(unsigned int controller[], const char * name)
|
static void loadXMLController(u32 controller[], const char * name)
|
||||||
{
|
{
|
||||||
item = mxmlFindElement(xml, xml, "controller", "name", name, MXML_DESCEND);
|
item = mxmlFindElement(xml, xml, "controller", "name", name, MXML_DESCEND);
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
#include "vba/gba/Sound.h"
|
#include "vba/gba/Sound.h"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
extern char* strcasestr(const char *, const char *);
|
||||||
extern void __exception_setreload(int t);
|
extern void __exception_setreload(int t);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -272,7 +273,7 @@ bool SaneIOS(u32 ios)
|
|||||||
static bool gecko = false;
|
static bool gecko = false;
|
||||||
static mutex_t gecko_mutex = 0;
|
static mutex_t gecko_mutex = 0;
|
||||||
|
|
||||||
static ssize_t __out_write(struct _reent *r, int fd, const char *ptr, size_t len)
|
static ssize_t __out_write(struct _reent *r, void* fd, const char *ptr, size_t len)
|
||||||
{
|
{
|
||||||
if (!gecko || len == 0)
|
if (!gecko || len == 0)
|
||||||
return len;
|
return len;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
#define _VBAGX_H_
|
#define _VBAGX_H_
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/param.h>
|
||||||
|
|
||||||
#include "filelist.h"
|
#include "filelist.h"
|
||||||
#include "utils/FreeTypeGX.h"
|
#include "utils/FreeTypeGX.h"
|
||||||
|
@ -32,7 +32,7 @@ u32 FrameTimer = 0;
|
|||||||
/*** External 2D Video ***/
|
/*** External 2D Video ***/
|
||||||
/*** 2D Video Globals ***/
|
/*** 2D Video Globals ***/
|
||||||
GXRModeObj *vmode = NULL; // Graphics Mode Object
|
GXRModeObj *vmode = NULL; // Graphics Mode Object
|
||||||
unsigned int *xfb[2] = { NULL, NULL }; // Framebuffers
|
u32 *xfb[2] = { NULL, NULL }; // Framebuffers
|
||||||
int whichfb = 0; // Frame buffer toggle
|
int whichfb = 0; // Frame buffer toggle
|
||||||
|
|
||||||
static Mtx GXmodelView2D;
|
static Mtx GXmodelView2D;
|
||||||
|
Loading…
Reference in New Issue
Block a user