aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/sledjchisl/sledjchisl.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index fb2d9bc..cfa1246 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -4495,7 +4495,6 @@ T(c);
4495 E("tmux load iar command failed!"); 4495 E("tmux load iar command failed!");
4496 else 4496 else
4497 { 4497 {
4498// memset(toybuf, 0, sizeof(toybuf));
4499// snprintf(toybuf, sizeof(toybuf), "INITIALIZATION COMPLETE FOR %s", name); 4498// snprintf(toybuf, sizeof(toybuf), "INITIALIZATION COMPLETE FOR %s", name);
4500// waitTmuxText(name, toybuf); 4499// waitTmuxText(name, toybuf);
4501// I("%s is done starting up.", name); 4500// I("%s is done starting up.", name);
@@ -7672,7 +7671,6 @@ fcgiDone:
7672 { 7671 {
7673 // Join the session. 7672 // Join the session.
7674 doTmuxCmd("select-window -t '%s' \\; attach-session -t '%s'", Tconsole, Tconsole); 7673 doTmuxCmd("select-window -t '%s' \\; attach-session -t '%s'", Tconsole, Tconsole);
7675// memset(toybuf, 0, sizeof(toybuf));
7676// snprintf(toybuf, sizeof(toybuf), "%s %s/%s select-window -t '%s' \\; attach-session -t '%s'", Tcmd, scRun, Tsocket, Tconsole, Tconsole); 7674// snprintf(toybuf, sizeof(toybuf), "%s %s/%s select-window -t '%s' \\; attach-session -t '%s'", Tcmd, scRun, Tsocket, Tconsole, Tconsole);
7677// i = system(toybuf); 7675// i = system(toybuf);
7678// if (!WIFEXITED(i)) 7676// if (!WIFEXITED(i))
@@ -7692,7 +7690,6 @@ sims = -- Note these are .shini / tmux tab short names.
7692 {["type"] = "Heavies"; ["number"] = 18; "DP", "ARSE"}, 7690 {["type"] = "Heavies"; ["number"] = 18; "DP", "ARSE"},
7693} 7691}
7694*/ 7692*/
7695 memset(toybuf, 0, sizeof(toybuf));
7696 snprintf(toybuf, sizeof(toybuf), "%s/sims.lua", scEtc); 7693 snprintf(toybuf, sizeof(toybuf), "%s/sims.lua", scEtc);
7697 if (0 == lstat(toybuf, &st)) 7694 if (0 == lstat(toybuf, &st))
7698 { 7695 {
@@ -7768,7 +7765,6 @@ sims = -- Note these are .shini / tmux tab short names.
7768 { 7765 {
7769 int cont = TRUE; 7766 int cont = TRUE;
7770 7767
7771 memset(toybuf, 0, sizeof(toybuf));
7772 snprintf(toybuf, sizeof(toybuf), "%s.shini", nm); 7768 snprintf(toybuf, sizeof(toybuf), "%s.shini", nm);
7773 if 7769 if
7774 ( 7770 (
@@ -7779,11 +7775,9 @@ sims = -- Note these are .shini / tmux tab short names.
7779 (strcmp(target, toybuf) == 0) 7775 (strcmp(target, toybuf) == 0)
7780 ) 7776 )
7781 cont = FALSE; 7777 cont = FALSE;
7782 memset(toybuf, 0, sizeof(toybuf));
7783 snprintf(toybuf, sizeof(toybuf), "%s.ini", nm); 7778 snprintf(toybuf, sizeof(toybuf), "%s.ini", nm);
7784 if (strcmp(target, toybuf) == 0) 7779 if (strcmp(target, toybuf) == 0)
7785 cont = FALSE; 7780 cont = FALSE;
7786 memset(toybuf, 0, sizeof(toybuf));
7787 snprintf(toybuf, sizeof(toybuf), "sim%d.ini", count); 7781 snprintf(toybuf, sizeof(toybuf), "sim%d.ini", count);
7788 if (strcmp(target, toybuf) == 0) 7782 if (strcmp(target, toybuf) == 0)
7789 cont = FALSE; 7783 cont = FALSE;
@@ -7800,7 +7794,6 @@ sims = -- Note these are .shini / tmux tab short names.
7800 char *path = xmprintf("%s/%s.shini", scEtc, nm); 7794 char *path = xmprintf("%s/%s.shini", scEtc, nm);
7801 char *newPath = xmprintf("%s/sim%d/%s.ini", scTemp, count, nm); // Coz OpenSim. 7795 char *newPath = xmprintf("%s/sim%d/%s.ini", scTemp, count, nm); // Coz OpenSim.
7802 7796
7803 memset(toybuf, 0, sizeof(toybuf));
7804 if (0 == panes) 7797 if (0 == panes)
7805 doTmuxCmd("split-window -hp 50 -d -t '%s:0.1'", Tconsole); 7798 doTmuxCmd("split-window -hp 50 -d -t '%s:0.1'", Tconsole);
7806 else if (0 == pane) 7799 else if (0 == pane)
@@ -7881,12 +7874,10 @@ Is there a "switch to pane 1" command? Nope
7881 cmd = xmprintf("%d.%d", simd->window, simd->pane); 7874 cmd = xmprintf("%d.%d", simd->window, simd->pane);
7882 doTmuxCmd("select-pane -t %s:%s -T '%s'", Tconsole, cmd, nm); 7875 doTmuxCmd("select-pane -t %s:%s -T '%s'", Tconsole, cmd, nm);
7883 { 7876 {
7884 memset(toybuf, 0, sizeof(toybuf));
7885 snprintf(toybuf, sizeof(toybuf), "mono OpenSim.exe -inidirectory=%s/sim%d", scTemp, count); 7877 snprintf(toybuf, sizeof(toybuf), "mono OpenSim.exe -inidirectory=%s/sim%d", scTemp, count);
7886 sendTmuxCmd(cmd, toybuf); 7878 sendTmuxCmd(cmd, toybuf);
7887 if (0 == doWait) 7879 if (0 == doWait)
7888 { 7880 {
7889 memset(toybuf, 0, sizeof(toybuf));
7890 snprintf(toybuf, sizeof(toybuf), "INITIALIZATION COMPLETE FOR %s", name); 7881 snprintf(toybuf, sizeof(toybuf), "INITIALIZATION COMPLETE FOR %s", name);
7891 waitTmuxText(cmd, toybuf); 7882 waitTmuxText(cmd, toybuf);
7892 I("%s is done starting up.", name); 7883 I("%s is done starting up.", name);
@@ -7920,7 +7911,6 @@ Is there a "switch to pane 1" command? Nope
7920 curtime = tv.tv_sec; 7911 curtime = tv.tv_sec;
7921 strftime(date, DATE_TIME_LEN, "%F_%T", localtime(&curtime)); 7912 strftime(date, DATE_TIME_LEN, "%F_%T", localtime(&curtime));
7922 I("%s is being backed up to %s/backups/%s-%s.oar.", name, scRoot, nm, date); 7913 I("%s is being backed up to %s/backups/%s-%s.oar.", name, scRoot, nm, date);
7923 memset(toybuf, 0, sizeof(toybuf));
7924 snprintf(toybuf, sizeof(toybuf), "save oar --all %s/backups/%s-%s.oar", scRoot, nm, date); 7914 snprintf(toybuf, sizeof(toybuf), "save oar --all %s/backups/%s-%s.oar", scRoot, nm, date);
7925 sendTmuxCmd(cmd, toybuf); 7915 sendTmuxCmd(cmd, toybuf);
7926// if (0 == doWait) 7916// if (0 == doWait)