fix config and upkg name
This commit is contained in:
parent
a7d8cca6d2
commit
6777cefdcb
@ -11,11 +11,7 @@ public function PreBeginPlay()
|
|||||||
{
|
{
|
||||||
Super.PreBeginPlay();
|
Super.PreBeginPlay();
|
||||||
|
|
||||||
LogLevel = SML.default.LogLevel;
|
LogLevel = SML.static.GetLogLevel();
|
||||||
if (LogLevel == LL_WrongLevel)
|
|
||||||
{
|
|
||||||
LogLevel = LL_Info;
|
|
||||||
}
|
|
||||||
|
|
||||||
`Log_Trace();
|
`Log_Trace();
|
||||||
|
|
||||||
@ -85,12 +81,12 @@ private function ModifyLoad()
|
|||||||
++Index;
|
++Index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
SML.static.StaticSaveConfig();
|
||||||
|
|
||||||
JoinArray(Mutators, MutatorsRaw);
|
JoinArray(Mutators, MutatorsRaw);
|
||||||
LoadURL $= (Subst(OptMut) $ MutatorsRaw);
|
LoadURL $= (Subst(OptMut) $ MutatorsRaw);
|
||||||
if (SML.static.WantsToSpawn())
|
if (SML.static.WantsToSpawn())
|
||||||
{
|
{
|
||||||
SML.static.StaticSaveConfig();
|
|
||||||
LoadURL $= (Subst(OptAC) $ SML.static.GetName());
|
LoadURL $= (Subst(OptAC) $ SML.static.GetName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,18 +2,14 @@ class SafeMutLoader extends KFAccessControl
|
|||||||
config(SML);
|
config(SML);
|
||||||
|
|
||||||
var private Array<Actor> ServerActors;
|
var private Array<Actor> ServerActors;
|
||||||
var public config E_LogLevel LogLevel;
|
var private config E_LogLevel LogLevel;
|
||||||
var private config Array<String> Mutators;
|
var private config Array<String> Mutators;
|
||||||
|
|
||||||
public function PreBeginPlay()
|
public function PreBeginPlay()
|
||||||
{
|
{
|
||||||
`Log_Trace();
|
`Log_Trace();
|
||||||
|
|
||||||
if (LogLevel == LL_WrongLevel)
|
LogLevel = GetLogLevel();
|
||||||
{
|
|
||||||
LogLevel = LL_Info;
|
|
||||||
StaticSaveConfig();
|
|
||||||
}
|
|
||||||
|
|
||||||
LoadActors();
|
LoadActors();
|
||||||
|
|
||||||
@ -129,6 +125,17 @@ public function OnClientConnectionClose(Player ClientConnection)
|
|||||||
Super.OnClientConnectionClose(ClientConnection);
|
Super.OnClientConnectionClose(ClientConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function E_LogLevel GetLogLevel()
|
||||||
|
{
|
||||||
|
if (default.LogLevel == LL_WrongLevel)
|
||||||
|
{
|
||||||
|
default.LogLevel = LL_Info;
|
||||||
|
StaticSaveConfig();
|
||||||
|
}
|
||||||
|
|
||||||
|
return default.LogLevel;
|
||||||
|
}
|
||||||
|
|
||||||
private static function class<Actor> GetMutReplacement(class<Mutator> MutClass)
|
private static function class<Actor> GetMutReplacement(class<Mutator> MutClass)
|
||||||
{
|
{
|
||||||
if (MutClass == None || MutClass.static.GetLocalString() == "") return None;
|
if (MutClass == None || MutClass.static.GetLocalString() == "") return None;
|
||||||
|
Loading…
Reference in New Issue
Block a user