Skip to content

Commit

Permalink
Confがない場合の処理を最適化
Browse files Browse the repository at this point in the history
  • Loading branch information
TORISOUP committed Apr 14, 2018
1 parent 2838e31 commit edd8090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Inferno/InfernoScripts/Parupunte/ParupunteConfigElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ParupunteConfigElement(string startMessage, string finishMessage)
FinishMessage = finishMessage;
}

public static ParupunteConfigElement NoUse = new ParupunteConfigElement("", "");
public static ParupunteConfigElement Default = new ParupunteConfigElement("", "");
}

internal class ParupunteConfigDto
Expand Down
2 changes: 1 addition & 1 deletion Inferno/InfernoScripts/Parupunte/ParupunteCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private void ParupunteStart(Type script)

var conf = _parupunteConfigs.ContainsKey(script.Name)
? _parupunteConfigs[script.Name]
: new ParupunteConfigElement("", "");
: ParupunteConfigElement.Default;

//ThreadPool上で初期化(プチフリ回避)
Observable.Start(() => Activator.CreateInstance(script, this, conf) as ParupunteScript, Scheduler.ThreadPool)
Expand Down

0 comments on commit edd8090

Please sign in to comment.