mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
- hooked up the Shadow Warrior frontend.
It doesn't really work but this way it always gets compiled and linked so that it receives the changes to the backend code.
This commit is contained in:
parent
0f4abfa4f4
commit
eca099681a
3 changed files with 33 additions and 0 deletions
|
@ -366,6 +366,10 @@ namespace Blood
|
|||
{
|
||||
extern GameInterface Interface;
|
||||
}
|
||||
namespace ShadowWarrior
|
||||
{
|
||||
extern GameInterface Interface;
|
||||
}
|
||||
|
||||
GameInterface *CheckFrontend()
|
||||
{
|
||||
|
@ -384,7 +388,11 @@ GameInterface *CheckFrontend()
|
|||
return &Redneck::Interface;
|
||||
}
|
||||
else
|
||||
{
|
||||
f = fopen("sw.grp", "rb");
|
||||
if (f) return &ShadowWarrior::Interface;
|
||||
return &Duke::Interface;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5996,5 +5996,27 @@ saveable_module saveable_build =
|
|||
NUM_SAVEABLE_ITEMS(saveable_build_data)
|
||||
};
|
||||
|
||||
extern void faketimerhandler();
|
||||
extern int app_main(int argc, char const* const* argv);
|
||||
extern void app_crashhandler(void);
|
||||
extern int32_t startwin_open(void);
|
||||
extern int32_t startwin_close(void);
|
||||
extern int32_t startwin_puts(const char*);
|
||||
extern int32_t startwin_settitle(const char*);
|
||||
extern int32_t startwin_idle(void*);
|
||||
extern int32_t startwin_run(void);
|
||||
|
||||
GameInterface Interface = {
|
||||
faketimerhandler,
|
||||
app_main,
|
||||
app_crashhandler,
|
||||
startwin_open,
|
||||
startwin_close,
|
||||
startwin_puts,
|
||||
startwin_settitle,
|
||||
startwin_idle,
|
||||
startwin_run
|
||||
};
|
||||
|
||||
// vim:ts=4:sw=4:expandtab:
|
||||
END_SW_NS
|
||||
|
|
|
@ -51,6 +51,9 @@ static int done = -1, mode = TAB_CONFIG;
|
|||
#define POPULATE_VIDEO 1
|
||||
#define POPULATE_CONFIG 2
|
||||
#define POPULATE_GAME 4
|
||||
// Thanks, Microsoft for not providing alternatives for the dialog control macros. :(
|
||||
#undef SNDMSG
|
||||
#define SNDMSG ::SendMessageA
|
||||
|
||||
static int addSoundQualityItem(struct soundQuality_t *q, HWND hwnd)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue