mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-22 11:21:09 +00:00
- Made automatic level compatibility optional.
As Enjay requested and Rachael suggested. I don't think i'm opening Pandora's box, what could go wrong?
This commit is contained in:
parent
9d8b4f6c05
commit
ca9967d13b
1 changed files with 9 additions and 0 deletions
|
@ -112,6 +112,8 @@ extern bool ForceNodeBuild;
|
||||||
|
|
||||||
TMap<FMD5Holder, FCompatValues, FMD5HashTraits> BCompatMap;
|
TMap<FMD5Holder, FCompatValues, FMD5HashTraits> BCompatMap;
|
||||||
|
|
||||||
|
CVAR (Bool, sv_njnoautolevelcompat, false, CVAR_SERVERINFO | CVAR_LATCH)
|
||||||
|
|
||||||
// PRIVATE DATA DEFINITIONS ------------------------------------------------
|
// PRIVATE DATA DEFINITIONS ------------------------------------------------
|
||||||
|
|
||||||
static FCompatOption Options[] =
|
static FCompatOption Options[] =
|
||||||
|
@ -352,6 +354,13 @@ IMPLEMENT_CLASS(DLevelCompatibility, true, false);
|
||||||
void SetCompatibilityParams(FName checksum)
|
void SetCompatibilityParams(FName checksum)
|
||||||
{
|
{
|
||||||
auto lc = Create<DLevelCompatibility>();
|
auto lc = Create<DLevelCompatibility>();
|
||||||
|
|
||||||
|
if (sv_njnoautolevelcompat)
|
||||||
|
{
|
||||||
|
Printf("Warning: auto level compatibility disabled. Severe problems could arise.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (auto cls : PClass::AllClasses)
|
for (auto cls : PClass::AllClasses)
|
||||||
{
|
{
|
||||||
if (cls->IsDescendantOf(RUNTIME_CLASS(DLevelCompatibility)))
|
if (cls->IsDescendantOf(RUNTIME_CLASS(DLevelCompatibility)))
|
||||||
|
|
Loading…
Reference in a new issue