mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-05 05:10:55 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@546 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
62d44f9722
commit
35afa5ff53
9 changed files with 24 additions and 65 deletions
|
@ -21,7 +21,7 @@ int dynamicgtk_init(void)
|
||||||
if (handle) return 1;
|
if (handle) return 1;
|
||||||
|
|
||||||
handle = dlopen("libgtk-x11-2.0.so", RTLD_NOW|RTLD_GLOBAL);
|
handle = dlopen("libgtk-x11-2.0.so", RTLD_NOW|RTLD_GLOBAL);
|
||||||
if (!handle) return 0;
|
if (!handle) return -1;
|
||||||
|
|
||||||
memset(&dynamicgtksyms, 0, sizeof(dynamicgtksyms));
|
memset(&dynamicgtksyms, 0, sizeof(dynamicgtksyms));
|
||||||
|
|
||||||
|
|
|
@ -594,7 +594,7 @@ int loadglulibrary(const char *driver)
|
||||||
if (!hGLUDLL) return -1;
|
if (!hGLUDLL) return -1;
|
||||||
#else
|
#else
|
||||||
gluhandle = dlopen(driver, RTLD_NOW|RTLD_GLOBAL);
|
gluhandle = dlopen(driver, RTLD_NOW|RTLD_GLOBAL);
|
||||||
if (!gluhandle) return 0;
|
if (!gluhandle) return -1;
|
||||||
#endif
|
#endif
|
||||||
glulibrary = strdup(driver);
|
glulibrary = strdup(driver);
|
||||||
|
|
||||||
|
|
|
@ -189,13 +189,13 @@ all: eduke32$(EXESUFFIX) mapster32$(EXESUFFIX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
eduke32$(EXESUFFIX): $(GAMEOBJS) $(EOBJ)/$(ENGINELIB)
|
eduke32$(EXESUFFIX): $(GAMEOBJS) $(EOBJ)/$(ENGINELIB)
|
||||||
$(CC) -o $@ $^ $(JFAUDLIBS) $(LIBS) $(STDCPPLIB) -Wl,-Map=$@.map
|
$(CC) -o $@ $^ $(JFAUDLIBS) $(LIBS) $(STDCPPLIB) # -Wl,-Map=$@.map
|
||||||
-rm -f eduke32.sym$(EXESUFFIX)
|
-rm -f eduke32.sym$(EXESUFFIX)
|
||||||
cp eduke32$(EXESUFFIX) eduke32.sym$(EXESUFFIX)
|
cp eduke32$(EXESUFFIX) eduke32.sym$(EXESUFFIX)
|
||||||
strip eduke32$(EXESUFFIX)
|
strip eduke32$(EXESUFFIX)
|
||||||
|
|
||||||
mapster32$(EXESUFFIX): $(EDITOROBJS) $(EOBJ)/$(EDITORLIB) $(EOBJ)/$(ENGINELIB)
|
mapster32$(EXESUFFIX): $(EDITOROBJS) $(EOBJ)/$(EDITORLIB) $(EOBJ)/$(ENGINELIB)
|
||||||
$(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ $(LIBS) -Wl,-Map=$@.map
|
$(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ $(LIBS) # -Wl,-Map=$@.map
|
||||||
-rm -f mapster32.sym$(EXESUFFIX)
|
-rm -f mapster32.sym$(EXESUFFIX)
|
||||||
cp mapster32$(EXESUFFIX) mapster32.sym$(EXESUFFIX)
|
cp mapster32$(EXESUFFIX) mapster32.sym$(EXESUFFIX)
|
||||||
strip mapster32$(EXESUFFIX)
|
strip mapster32$(EXESUFFIX)
|
||||||
|
|
|
@ -1,18 +1,7 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||||
# Visual Studio 2005
|
# Visual C++ Express 2005
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "eduke32", "eduke32.vcproj", "{8E7A6179-0B72-4073-8A4C-E8682D481DAE}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "eduke32", "eduke32.vcproj", "{8E7A6179-0B72-4073-8A4C-E8682D481DAE}"
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286} = {CD149A75-4507-404D-856C-E9DBC2E0B286}
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858} = {862365FE-811C-46B8-BB1E-B7189DA8D858}
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "jfaud", "..\jfaud\jfaud.vcproj", "{CD149A75-4507-404D-856C-E9DBC2E0B286}"
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mpadec", "..\jfaud\mpadec\mpadec.vcproj", "{862365FE-811C-46B8-BB1E-B7189DA8D858}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286} = {CD149A75-4507-404D-856C-E9DBC2E0B286}
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
@ -42,36 +31,6 @@ Global
|
||||||
{8E7A6179-0B72-4073-8A4C-E8682D481DAE}.HRP SD Release|Win32.Build.0 = HRP SD Release|Win32
|
{8E7A6179-0B72-4073-8A4C-E8682D481DAE}.HRP SD Release|Win32.Build.0 = HRP SD Release|Win32
|
||||||
{8E7A6179-0B72-4073-8A4C-E8682D481DAE}.HRP SD|Win32.ActiveCfg = HRP SD|Win32
|
{8E7A6179-0B72-4073-8A4C-E8682D481DAE}.HRP SD|Win32.ActiveCfg = HRP SD|Win32
|
||||||
{8E7A6179-0B72-4073-8A4C-E8682D481DAE}.HRP SD|Win32.Build.0 = HRP SD|Win32
|
{8E7A6179-0B72-4073-8A4C-E8682D481DAE}.HRP SD|Win32.Build.0 = HRP SD|Win32
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.Classic JFAud|Win32.ActiveCfg = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.Classic JFAud|Win32.Build.0 = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.Classic Release JFAud|Win32.ActiveCfg = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.Classic Release JFAud|Win32.Build.0 = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.Classic Release|Win32.ActiveCfg = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.Classic Release|Win32.Build.0 = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.Classic|Win32.ActiveCfg = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.Classic|Win32.Build.0 = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.HRP SD JFAud|Win32.ActiveCfg = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.HRP SD JFAud|Win32.Build.0 = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.HRP SD Release JFAud|Win32.ActiveCfg = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.HRP SD Release JFAud|Win32.Build.0 = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.HRP SD Release|Win32.ActiveCfg = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.HRP SD Release|Win32.Build.0 = Release|Win32
|
|
||||||
{CD149A75-4507-404D-856C-E9DBC2E0B286}.HRP SD|Win32.ActiveCfg = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.Classic JFAud|Win32.ActiveCfg = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.Classic JFAud|Win32.Build.0 = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.Classic Release JFAud|Win32.ActiveCfg = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.Classic Release JFAud|Win32.Build.0 = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.Classic Release|Win32.ActiveCfg = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.Classic Release|Win32.Build.0 = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.Classic|Win32.ActiveCfg = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.Classic|Win32.Build.0 = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.HRP SD JFAud|Win32.ActiveCfg = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.HRP SD JFAud|Win32.Build.0 = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.HRP SD Release JFAud|Win32.ActiveCfg = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.HRP SD Release JFAud|Win32.Build.0 = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.HRP SD Release|Win32.ActiveCfg = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.HRP SD Release|Win32.Build.0 = Release|Win32
|
|
||||||
{862365FE-811C-46B8-BB1E-B7189DA8D858}.HRP SD|Win32.ActiveCfg = Release|Win32
|
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|
|
@ -5641,14 +5641,14 @@ int parsetilegroups(scriptfile *script)
|
||||||
|
|
||||||
while (script->textptr < end)
|
while (script->textptr < end)
|
||||||
{
|
{
|
||||||
tokenlist tgtokens2[] =
|
tokenlist tgtokens2[] =
|
||||||
{
|
{
|
||||||
{ "tilegroup", T_TILEGROUP },
|
{ "tilegroup", T_TILEGROUP },
|
||||||
{ "tile", T_TILE },
|
{ "tile", T_TILE },
|
||||||
{ "tilerange", T_TILERANGE },
|
{ "tilerange", T_TILERANGE },
|
||||||
{ "hotkey", T_HOTKEY },
|
{ "hotkey", T_HOTKEY },
|
||||||
{ "tiles", T_TILES },
|
{ "tiles", T_TILES },
|
||||||
};
|
};
|
||||||
|
|
||||||
int token = getatoken(script,tgtokens2,sizeof(tgtokens2)/sizeof(tokenlist));
|
int token = getatoken(script,tgtokens2,sizeof(tgtokens2)/sizeof(tokenlist));
|
||||||
switch (token)
|
switch (token)
|
||||||
|
@ -5692,7 +5692,7 @@ int parsetilegroups(scriptfile *script)
|
||||||
{
|
{
|
||||||
if (i >= 0 && i < MAXTILES && s_TileGroups[tile_groups].nIds < MAX_TILE_GROUP_ENTRIES)
|
if (i >= 0 && i < MAXTILES && s_TileGroups[tile_groups].nIds < MAX_TILE_GROUP_ENTRIES)
|
||||||
s_TileGroups[tile_groups].pIds[s_TileGroups[tile_groups].nIds++] = i;
|
s_TileGroups[tile_groups].pIds[s_TileGroups[tile_groups].nIds++] = i;
|
||||||
// OSD_Printf("added tile %d to group %d\n",i,g);
|
// OSD_Printf("added tile %d to group %d\n",i,g);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -52,8 +52,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
extern int getversionfromwebsite(char *buffer);
|
extern int getversionfromwebsite(char *buffer);
|
||||||
#define BUILDDATE 20070413
|
#define BUILDDATE 20070501
|
||||||
#define UPDATEINTERVAL 86400 // 24h
|
#define UPDATEINTERVAL 604800 // 1w
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define IDFSIZE 479985668
|
#define IDFSIZE 479985668
|
||||||
|
|
|
@ -1005,7 +1005,7 @@ static void DefineProjectile(long lVar1, long lLabelID, long lVar2)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
char CheckEventSync(int iEventID)
|
static int CheckEventSync(int iEventID)
|
||||||
{
|
{
|
||||||
if (parsing_event || parsing_actor)
|
if (parsing_event || parsing_actor)
|
||||||
{
|
{
|
||||||
|
@ -1737,7 +1737,7 @@ static int parsecommand(void)
|
||||||
|
|
||||||
for (i=0;i<labelcnt;i++)
|
for (i=0;i<labelcnt;i++)
|
||||||
{
|
{
|
||||||
if (Bstrcmp(label+(labelcnt<<6),label+(i<<6)) == 0 && (labeltype[i] & LABEL_DEFINE))
|
if (Bstrcmp(label+(labelcnt<<6),label+(i<<6)) == 0 /* && (labeltype[i] & LABEL_DEFINE) */)
|
||||||
{
|
{
|
||||||
if (i >= defaultlabelcnt)
|
if (i >= defaultlabelcnt)
|
||||||
{
|
{
|
||||||
|
@ -1817,7 +1817,7 @@ static int parsecommand(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0;i<labelcnt;i++)
|
for (i=0;i<labelcnt;i++)
|
||||||
if (Bstrcmp(label+(labelcnt<<6),label+(i<<6)) == 0 && (labeltype[i] & LABEL_MOVE))
|
if (Bstrcmp(label+(labelcnt<<6),label+(i<<6)) == 0 /* && (labeltype[i] & LABEL_MOVE) */)
|
||||||
{
|
{
|
||||||
warning++;
|
warning++;
|
||||||
initprintf("%s:%ld: warning: duplicate move `%s' ignored.\n",compilefile,line_number,label+(labelcnt<<6));
|
initprintf("%s:%ld: warning: duplicate move `%s' ignored.\n",compilefile,line_number,label+(labelcnt<<6));
|
||||||
|
@ -2009,7 +2009,7 @@ static int parsecommand(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0;i<labelcnt;i++)
|
for (i=0;i<labelcnt;i++)
|
||||||
if (Bstrcmp(label+(labelcnt<<6),label+(i<<6)) == 0 && (labeltype[i] & LABEL_AI))
|
if (Bstrcmp(label+(labelcnt<<6),label+(i<<6)) == 0 /* && (labeltype[i] & LABEL_AI) */)
|
||||||
{
|
{
|
||||||
warning++;
|
warning++;
|
||||||
initprintf("%s:%ld: warning: duplicate ai `%s' ignored.\n",compilefile,line_number,label+(labelcnt<<6));
|
initprintf("%s:%ld: warning: duplicate ai `%s' ignored.\n",compilefile,line_number,label+(labelcnt<<6));
|
||||||
|
@ -2076,7 +2076,7 @@ static int parsecommand(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
for (i=0;i<labelcnt;i++)
|
for (i=0;i<labelcnt;i++)
|
||||||
if (Bstrcmp(label+(labelcnt<<6),label+(i<<6)) == 0 && (labeltype[i] & LABEL_ACTION))
|
if (Bstrcmp(label+(labelcnt<<6),label+(i<<6)) == 0 /* && (labeltype[i] & LABEL_ACTION) */)
|
||||||
{
|
{
|
||||||
warning++;
|
warning++;
|
||||||
initprintf("%s:%ld: warning: duplicate action `%s' ignored.\n",compilefile,line_number,label+(labelcnt<<6));
|
initprintf("%s:%ld: warning: duplicate action `%s' ignored.\n",compilefile,line_number,label+(labelcnt<<6));
|
||||||
|
|
|
@ -1274,8 +1274,8 @@ static void ResetPointerVars(void)
|
||||||
aGameVars[GetGameID("COOP")].lValue = (long)&ud.coop;
|
aGameVars[GetGameID("COOP")].lValue = (long)&ud.coop;
|
||||||
aGameVars[GetGameID("MULTIMODE")].lValue = (long)&ud.multimode;
|
aGameVars[GetGameID("MULTIMODE")].lValue = (long)&ud.multimode;
|
||||||
|
|
||||||
aGameVars[GetGameID("myconnectindex")].lValue = (long)&myconnectindex;
|
aGameVars[GetGameID("myconnectindex")].lValue = (long)&myconnectindex;
|
||||||
aGameVars[GetGameID("screenpeek")].lValue = (long)&screenpeek;
|
aGameVars[GetGameID("screenpeek")].lValue = (long)&screenpeek;
|
||||||
aGameVars[GetGameID("currentweapon")].lValue = (long)&g_currentweapon;
|
aGameVars[GetGameID("currentweapon")].lValue = (long)&g_currentweapon;
|
||||||
aGameVars[GetGameID("gs")].lValue = (long)&g_gs;
|
aGameVars[GetGameID("gs")].lValue = (long)&g_gs;
|
||||||
aGameVars[GetGameID("looking_arc")].lValue = (long)&g_looking_arc;
|
aGameVars[GetGameID("looking_arc")].lValue = (long)&g_looking_arc;
|
||||||
|
|
|
@ -3388,7 +3388,7 @@ void processinput(int snum)
|
||||||
if (p->buttonpalette && ud.from_bonus == 0)
|
if (p->buttonpalette && ud.from_bonus == 0)
|
||||||
{
|
{
|
||||||
ud.from_bonus = ud.level_number+1;
|
ud.from_bonus = ud.level_number+1;
|
||||||
if (ud.secretlevel > 0 && ud.secretlevel < 12) ud.level_number = ud.secretlevel-1;
|
if (ud.secretlevel > 0 && ud.secretlevel < MAXLEVELS) ud.level_number = ud.secretlevel-1;
|
||||||
ud.m_level_number = ud.level_number;
|
ud.m_level_number = ud.level_number;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue