mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
SW: Take a crack at the editor's ExtPostStartupWindow
git-svn-id: https://svn.eduke32.com/eduke32@7539 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
73e66e164a
commit
b600d3ff56
1 changed files with 19 additions and 14 deletions
|
@ -39,6 +39,8 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "common_game.h"
|
#include "common_game.h"
|
||||||
|
|
||||||
|
#include "colormap.h"
|
||||||
|
|
||||||
|
|
||||||
const char* AppProperName = "Wangulator";
|
const char* AppProperName = "Wangulator";
|
||||||
const char* AppTechnicalName = "wangulator";
|
const char* AppTechnicalName = "wangulator";
|
||||||
|
@ -623,7 +625,6 @@ ResetKeyRange(uint8_t* kb, uint8_t* ke)
|
||||||
void
|
void
|
||||||
ExtInit(void)
|
ExtInit(void)
|
||||||
{
|
{
|
||||||
void InitPalette(void);
|
|
||||||
int i, fil;
|
int i, fil;
|
||||||
|
|
||||||
initgroupfile(G_GrpFile());
|
initgroupfile(G_GrpFile());
|
||||||
|
@ -724,7 +725,6 @@ ExtInit(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void InitPalette(void);
|
|
||||||
int i, fil;
|
int i, fil;
|
||||||
|
|
||||||
// Store user log in time
|
// Store user log in time
|
||||||
|
@ -779,7 +779,6 @@ ExtInit(void)
|
||||||
initprintf("Using \"%s\" as main GRP file\n", g_grpNamePtr);
|
initprintf("Using \"%s\" as main GRP file\n", g_grpNamePtr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
initgroupfile(G_GrpFile());
|
|
||||||
/*
|
/*
|
||||||
if ((fil = open("setup.dat", O_BINARY | O_RDWR, S_IREAD)) != -1)
|
if ((fil = open("setup.dat", O_BINARY | O_RDWR, S_IREAD)) != -1)
|
||||||
{
|
{
|
||||||
|
@ -795,17 +794,6 @@ ExtInit(void)
|
||||||
Bmemcpy((void *)buildkeys,(void *)default_buildkeys,NUMBUILDKEYS); //Trick to make build use setup.dat keys
|
Bmemcpy((void *)buildkeys,(void *)default_buildkeys,NUMBUILDKEYS); //Trick to make build use setup.dat keys
|
||||||
if (option[4] > 0)
|
if (option[4] > 0)
|
||||||
option[4] = 0;
|
option[4] = 0;
|
||||||
if (engineInit())
|
|
||||||
{
|
|
||||||
wm_msgbox("Build Engine Initialisation Error",
|
|
||||||
"There was a problem initialising the Build engine: %s", engineerrstr);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
initinput();
|
|
||||||
mouseInit();
|
|
||||||
|
|
||||||
InitPalette();
|
|
||||||
SW_InitMultiPsky();
|
|
||||||
|
|
||||||
kensplayerheight = 58;
|
kensplayerheight = 58;
|
||||||
zmode = 0;
|
zmode = 0;
|
||||||
|
@ -821,6 +809,23 @@ else
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t ExtPostStartupWindow(void)
|
||||||
|
{
|
||||||
|
initgroupfile(G_GrpFile());
|
||||||
|
|
||||||
|
if (engineInit())
|
||||||
|
{
|
||||||
|
wm_msgbox("Build Engine Initialisation Error",
|
||||||
|
"There was a problem initialising the Build engine: %s", engineerrstr);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
InitPalette();
|
||||||
|
SW_InitMultiPsky();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
void ExtPostInit(void)
|
void ExtPostInit(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue