Support launch ctrl on dev shard

ryzomclassic-develop
kaetemi 3 years ago
parent 4fb55a86d3
commit 23b188cadc
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -81,6 +81,27 @@ cfg.flush()
cfg.close() cfg.close()
printLog(log, "") printLog(log, "")
if not os.path.exists(ShardDevDirectory + "/aes_state.txt"):
printLog(log, ">>> Generate shard dev aes_state.txt <<<")
f = open(ShardDevDirectory + "/aes_state.txt", "w")
f.write("ShardOrders unifier so_autostart_off\n")
f.write("ShardOrders mainland so_autostart_off\n")
f.write("ShardOrders ring so_autostart_off\n")
f.flush()
f.close()
printLog(log, "")
mkPath(log, ShardDevDirectory + "/ras")
if not os.path.exists(ShardDevDirectory + "/ras/as_state.txt"):
printLog(log, ">>> Generate shard dev as_state.txt <<<")
f = open(ShardDevDirectory + "/ras/as_state.txt", "w")
f.write("ShardOrders unifier so_autostart_off\n")
f.write("ShardOrders mainland so_autostart_off\n")
f.write("ShardOrders ring so_autostart_off\n")
f.flush()
f.close()
printLog(log, "")
for execDir in InstallShardDataExecutables: for execDir in InstallShardDataExecutables:
dstDir = execDir[0] dstDir = execDir[0]
mkPath(log, PatchmanCfgDefaultDirectory) mkPath(log, PatchmanCfgDefaultDirectory)

@ -902,7 +902,7 @@ NLMISC_CLASS_COMMAND_IMPL(CServerPatchTerminal, depDevCfg)
} }
else else
{ {
if (p == "--nobreak" || p == "--writepid") if (p == "--nobreak") // || p == "--writepid")
p = ""; p = "";
} }
} }
@ -942,7 +942,7 @@ NLMISC_CLASS_COMMAND_IMPL(CServerPatchTerminal, depDevCfg)
ini << "WorkingDirectory=.\\" << appDesc.AppName << "\n"; ini << "WorkingDirectory=.\\" << appDesc.AppName << "\n";
ini << "LaunchCmd=" << launchCmd << "\n"; ini << "LaunchCmd=" << launchCmd << "\n";
ini << "LaunchArgs=" << cmdLine << "\n"; ini << "LaunchArgs=" << cmdLine << "\n";
ini << "LaunchCtrl=.\\" << appDesc.AppName << ".launch_ctrl,LAUNCH,RUNNING,STOP,STOPPED\n"; ini << "LaunchCtrl=.\\" << appDesc.AppName << ".launch_ctrl,.\\" << appDesc.AppName << ".state,LAUNCH,RUNNING,STOP,STOPPED\n";
if (priorityIt != priorityMap.end()) if (priorityIt != priorityMap.end())
ini << "Priority=" << priorityIt->second << "\n"; ini << "Priority=" << priorityIt->second << "\n";
ini << "\n"; ini << "\n";

Loading…
Cancel
Save