mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Merge branch 'let-release-build' into 'master'
Various fixes to let release builds compile See merge request KartKrew/Kart!1448
This commit is contained in:
commit
1d3a7c717e
8 changed files with 43 additions and 38 deletions
|
|
@ -38,6 +38,14 @@
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"SRB2_CONFIG_HOSTTESTERS": "ON"
|
"SRB2_CONFIG_HOSTTESTERS": "ON"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "release",
|
||||||
|
"description": "Build for game's release",
|
||||||
|
"inherits": "default",
|
||||||
|
"cacheVariables": {
|
||||||
|
"SRB2_CONFIG_DEV_BUILD": "OFF"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"buildPresets": [
|
"buildPresets": [
|
||||||
|
|
|
||||||
|
|
@ -26,20 +26,4 @@
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Manually defined asset hashes for non-CMake builds
|
|
||||||
* Last updated 2019 / 01 / 18 - Kart v1.0.2 - Main assets
|
|
||||||
* Last updated 2020 / 08 / 30 - Kart v1.3 - patch.kart
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ASSET_HASH_BIOS_PK3 "00000000000000000000000000000000"
|
|
||||||
#define ASSET_HASH_GFX_PK3 "00000000000000000000000000000000"
|
|
||||||
#define ASSET_HASH_TEXTURES_GENERAL_PK3 "00000000000000000000000000000000"
|
|
||||||
#define ASSET_HASH_TEXTURES_SEGA_PK3 "00000000000000000000000000000000"
|
|
||||||
#define ASSET_HASH_TEXTURES_ORIGINAL_PK3 "00000000000000000000000000000000"
|
|
||||||
#define ASSET_HASH_CHARS_PK3 "00000000000000000000000000000000"
|
|
||||||
#define ASSET_HASH_MAPS_PK3 "00000000000000000000000000000000"
|
|
||||||
#ifdef USE_PATCH_FILE
|
|
||||||
#define ASSET_HASH_PATCH_PK3 "00000000000000000000000000000000"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -533,8 +533,7 @@ consvar_t cv_playbackspeed = Server("playbackspeed", "1").min_max(1, 10).dont_sa
|
||||||
|
|
||||||
consvar_t cv_reducevfx = Server("reducevfx", "No").yes_no();
|
consvar_t cv_reducevfx = Server("reducevfx", "No").yes_no();
|
||||||
|
|
||||||
void RendezvousServer_OnChange(void);
|
consvar_t cv_rendezvousserver = Server("holepunchserver", "relay.kartkrew.org");
|
||||||
consvar_t cv_rendezvousserver = Server("holepunchserver", "relay.kartkrew.org").onchange(RendezvousServer_OnChange);
|
|
||||||
|
|
||||||
void Update_parameters (void);
|
void Update_parameters (void);
|
||||||
consvar_t cv_server_contact = Server("server_contact", "").onchange_noinit(Update_parameters);
|
consvar_t cv_server_contact = Server("server_contact", "").onchange_noinit(Update_parameters);
|
||||||
|
|
|
||||||
|
|
@ -4186,9 +4186,11 @@ void CL_RemoveSplitscreenPlayer(UINT8 p)
|
||||||
#ifndef TESTERS
|
#ifndef TESTERS
|
||||||
static void GotOurIP(UINT32 address)
|
static void GotOurIP(UINT32 address)
|
||||||
{
|
{
|
||||||
const unsigned char * p = (const unsigned char *)&address;
|
|
||||||
#ifdef DEVELOP
|
#ifdef DEVELOP
|
||||||
|
{
|
||||||
|
const unsigned char * p = (const unsigned char *)&address;
|
||||||
CONS_Printf("Got IP of %u.%u.%u.%u\n", p[0], p[1], p[2], p[3]);
|
CONS_Printf("Got IP of %u.%u.%u.%u\n", p[0], p[1], p[2], p[3]);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
ourIP = address;
|
ourIP = address;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
25
src/d_main.c
25
src/d_main.c
|
|
@ -96,6 +96,23 @@
|
||||||
|
|
||||||
#include "lua_script.h"
|
#include "lua_script.h"
|
||||||
|
|
||||||
|
/* Manually defined asset hashes
|
||||||
|
* Last updated 2019 / 01 / 18 - Kart v1.0.2 - Main assets
|
||||||
|
* Last updated 2020 / 08 / 30 - Kart v1.3 - patch.kart
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define ASSET_HASH_BIOS_PK3 "00000000000000000000000000000000"
|
||||||
|
#define ASSET_HASH_GFX_PK3 "00000000000000000000000000000000"
|
||||||
|
#define ASSET_HASH_TEXTURES_GENERAL_PK3 "00000000000000000000000000000000"
|
||||||
|
#define ASSET_HASH_TEXTURES_SEGA_PK3 "00000000000000000000000000000000"
|
||||||
|
#define ASSET_HASH_TEXTURES_ORIGINAL_PK3 "00000000000000000000000000000000"
|
||||||
|
#define ASSET_HASH_CHARS_PK3 "00000000000000000000000000000000"
|
||||||
|
#define ASSET_HASH_FOLLOWERS_PK3 "00000000000000000000000000000000"
|
||||||
|
#define ASSET_HASH_MAPS_PK3 "00000000000000000000000000000000"
|
||||||
|
#ifdef USE_PATCH_FILE
|
||||||
|
#define ASSET_HASH_PATCH_PK3 "00000000000000000000000000000000"
|
||||||
|
#endif
|
||||||
|
|
||||||
// Version numbers for netplay :upside_down_face:
|
// Version numbers for netplay :upside_down_face:
|
||||||
int VERSION;
|
int VERSION;
|
||||||
int SUBVERSION;
|
int SUBVERSION;
|
||||||
|
|
@ -1479,18 +1496,18 @@ void D_SRB2Main(void)
|
||||||
mainwads = 0;
|
mainwads = 0;
|
||||||
|
|
||||||
#ifndef DEVELOP
|
#ifndef DEVELOP
|
||||||
#ifdef USE_PATCH_FILE
|
|
||||||
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_PATCH_PK3); // patch.pk3
|
|
||||||
#endif
|
|
||||||
// Check MD5s of autoloaded files
|
// Check MD5s of autoloaded files
|
||||||
// Note: Do not add any files that ignore MD5!
|
// Note: Do not add any files that ignore MD5!
|
||||||
W_VerifyFileMD5(mainwads, ASSET_HASH_BIOS_PK3); // bios.pk3
|
W_VerifyFileMD5(mainwads, ASSET_HASH_BIOS_PK3); // bios.pk3
|
||||||
|
#ifdef USE_PATCH_FILE
|
||||||
|
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_PATCH_PK3); // patch.pk3
|
||||||
|
#endif
|
||||||
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_GFX_PK3); // gfx.pk3
|
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_GFX_PK3); // gfx.pk3
|
||||||
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_TEXTURES_GENERAL_PK3); // textures_general.pk3
|
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_TEXTURES_GENERAL_PK3); // textures_general.pk3
|
||||||
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_TEXTURES_SEGA_PK3); // textures_segazones.pk3
|
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_TEXTURES_SEGA_PK3); // textures_segazones.pk3
|
||||||
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_TEXTURES_ORIGINAL_PK3); // textures_originalzones.pk3
|
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_TEXTURES_ORIGINAL_PK3); // textures_originalzones.pk3
|
||||||
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_CHARS_PK3); // chars.pk3
|
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_CHARS_PK3); // chars.pk3
|
||||||
mainwads++; W_VerifyFileMd5(mainwads, ASSET_HASH_FOLLOWERS_PK3); // followers.pk3
|
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_FOLLOWERS_PK3); // followers.pk3
|
||||||
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_MAPS_PK3); // maps.pk3
|
mainwads++; W_VerifyFileMD5(mainwads, ASSET_HASH_MAPS_PK3); // maps.pk3
|
||||||
#else
|
#else
|
||||||
#ifdef USE_PATCH_FILE
|
#ifdef USE_PATCH_FILE
|
||||||
|
|
|
||||||
13
src/mserv.c
13
src/mserv.c
|
|
@ -616,16 +616,3 @@ void Advertise_OnChange(void)
|
||||||
|
|
||||||
M_PopupMasterServerRules();
|
M_PopupMasterServerRules();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEVELOP
|
|
||||||
void RendezvousServer_OnChange (void);
|
|
||||||
void RendezvousServer_OnChange (void)
|
|
||||||
{
|
|
||||||
consvar_t *cvar = &cv_rendezvousserver;
|
|
||||||
|
|
||||||
if (!strcmp(cvar->string, "jart-dev.jameds.org"))
|
|
||||||
CV_StealthSet(cvar, cvar->defaultvalue);
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
#error "This was an indev thing, remove at release."
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -8345,7 +8345,11 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
|
||||||
|
|
||||||
if (mapheaderinfo[gamemap-1])
|
if (mapheaderinfo[gamemap-1])
|
||||||
{
|
{
|
||||||
if (encoremode && cv_kartencoremap.value)
|
if (encoremode
|
||||||
|
#ifdef DEVELOP
|
||||||
|
&& cv_kartencoremap.value
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
encoreLump = vres_Find(curmapvirt, "ENCORE");
|
encoreLump = vres_Find(curmapvirt, "ENCORE");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6636,7 +6636,11 @@ void P_InitSpecials(void)
|
||||||
{
|
{
|
||||||
mapheader_lighting_t *lighting = &mapheaderinfo[gamemap-1]->lighting;
|
mapheader_lighting_t *lighting = &mapheaderinfo[gamemap-1]->lighting;
|
||||||
|
|
||||||
if (encoremode && cv_kartencoremap.value && mapheaderinfo[gamemap-1]->use_encore_lighting)
|
if (encoremode
|
||||||
|
#ifdef DEVELOP
|
||||||
|
&& cv_kartencoremap.value
|
||||||
|
#endif
|
||||||
|
&& mapheaderinfo[gamemap-1]->use_encore_lighting)
|
||||||
{
|
{
|
||||||
lighting = &mapheaderinfo[gamemap-1]->lighting_encore;
|
lighting = &mapheaderinfo[gamemap-1]->lighting_encore;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue