mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Fix the Wii build with the refactored sdlayer. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@4767 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9268b9f0b6
commit
20c7bbbea6
2 changed files with 19 additions and 12 deletions
|
@ -178,6 +178,7 @@ int32_t wm_msgbox(const char *name, const char *fmt, ...)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SDL_MAJOR_VERSION != 1
|
||||||
int32_t wm_ynbox(const char *name, const char *fmt, ...)
|
int32_t wm_ynbox(const char *name, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
char buf[2048];
|
char buf[2048];
|
||||||
|
@ -235,6 +236,7 @@ int32_t wm_ynbox(const char *name, const char *fmt, ...)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void wm_setapptitle(const char *name)
|
void wm_setapptitle(const char *name)
|
||||||
{
|
{
|
||||||
|
@ -272,6 +274,17 @@ void wm_setapptitle(const char *name)
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if defined GEKKO
|
||||||
|
# define HW_RVL
|
||||||
|
# include <ogc/lwp.h>
|
||||||
|
# include <ogc/lwp_watchdog.h>
|
||||||
|
|
||||||
|
#include "gctypes.h" // for bool
|
||||||
|
extern void L2Enhance();
|
||||||
|
extern void CON_EnableGecko(int channel,int safe);
|
||||||
|
extern bool fatInit(uint32_t cacheSize, bool setAsDefaultDevice);
|
||||||
|
#endif
|
||||||
|
|
||||||
static void attach_debugger_here(void) {}
|
static void attach_debugger_here(void) {}
|
||||||
|
|
||||||
/* XXX: libexecinfo could be used on systems without gnu libc. */
|
/* XXX: libexecinfo could be used on systems without gnu libc. */
|
||||||
|
@ -372,6 +385,8 @@ void setvsync(int32_t sync)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int32_t sdlayer_checkversion(void);
|
||||||
|
#if SDL_MAJOR_VERSION != 1
|
||||||
int32_t sdlayer_checkversion(void)
|
int32_t sdlayer_checkversion(void)
|
||||||
{
|
{
|
||||||
SDL_version compiled;
|
SDL_version compiled;
|
||||||
|
@ -445,6 +460,7 @@ int32_t initsystem(void)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -748,6 +764,7 @@ void uninitmouse(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if SDL_MAJOR_VERSION != 1
|
||||||
//
|
//
|
||||||
// grabmouse_low() -- show/hide mouse cursor, lower level (doesn't check state).
|
// grabmouse_low() -- show/hide mouse cursor, lower level (doesn't check state).
|
||||||
// furthermore return 0 if successful.
|
// furthermore return 0 if successful.
|
||||||
|
@ -766,6 +783,7 @@ static inline char grabmouse_low(char a)
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// grabmouse() -- show/hide mouse cursor
|
// grabmouse() -- show/hide mouse cursor
|
||||||
|
@ -1823,7 +1841,7 @@ int32_t handleevents_sdlcommon(SDL_Event *ev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t handleevents_pollsdl(void);
|
||||||
#if SDL_MAJOR_VERSION != 1
|
#if SDL_MAJOR_VERSION != 1
|
||||||
// SDL 2.0 specific event handling
|
// SDL 2.0 specific event handling
|
||||||
int32_t handleevents_pollsdl(void)
|
int32_t handleevents_pollsdl(void)
|
||||||
|
|
|
@ -2,17 +2,6 @@
|
||||||
|
|
||||||
#include <SDL/SDL_events.h>
|
#include <SDL/SDL_events.h>
|
||||||
|
|
||||||
#if defined GEKKO
|
|
||||||
# define HW_RVL
|
|
||||||
# include <ogc/lwp.h>
|
|
||||||
# include <ogc/lwp_watchdog.h>
|
|
||||||
|
|
||||||
#include "gctypes.h" // for bool
|
|
||||||
extern void L2Enhance();
|
|
||||||
extern void CON_EnableGecko(int channel,int safe);
|
|
||||||
extern bool fatInit(uint32_t cacheSize, bool setAsDefaultDevice);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int32_t wm_ynbox(const char *name, const char *fmt, ...)
|
int32_t wm_ynbox(const char *name, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
char buf[2048];
|
char buf[2048];
|
||||||
|
|
Loading…
Reference in a new issue