Storage()->GetBinaryPath(PLAT_SERVER_EXEC, aBuf, sizeof(aBuf));
m_ServerProcess.Process = shell_execute(aBuf);
like this is the code already implemented to start a server.
i want to add a command like sv_name testmap that the server will start with a map WITHOUT USING configfile
Is there a way to append the command inline or to execute a command from client to started server?
I think only first idea will work because i can add information by startup but not after it because its get runned external, or? (edited)str_append()
on aBuf (edited)char *mapArg = "--map"; // Whatever
char *aBuf2 = static_cast<char *>(malloc(sizeof(aBuf) + sizeof(mapArg)));
str_format(aBuf2, "\"%s\" %s", aBuf, mapArg); // i can't remember if this takes a size argument
(edited)static
would be not so good, better would be using a member variablem_KillmsgCurrent
?CTeeRenderInfo
, sorrym_aKillmsgs
to be rendered (edited) Storage()->GetBinaryPath(PLAT_SERVER_EXEC, aBuf, sizeof(aBuf));
m_ServerProcess.Process = shell_execute(aBuf);
like this is the code already implemented to start a server.
i want to add a command like sv_name testmap that the server will start with a map WITHOUT USING configfile
Is there a way to append the command inline or to execute a command from client to started server?
I think only first idea will work because i can add information by startup but not after it because its get runned external, or? (edited)std::
/system()
so you just have to pass it one stringstd::
/system()
so you just have to pass it one string fork
/execvp
directly; on Windows not really, there are several layers of functionality in ShellExecute
that probably nobody fully understands outside of Microsoft/a//bb/\/ccc////dddd//\//
.
f012716
add sorting by name and time modified to filedialog - Marmare314
9540d27
fix formatting issues and clean up indicator selection - Marmare314
e2449ac
use str_timestamp_ex and fix codestyle - Marmare314
c338eca
ignore time for links and root folder - Marmare314
fb5cb3e
fix formatting - Marmare314
223813e
reset timemodified sort - Marmare314
5f7f30d
Merge #6419 - bors[bot]ss -lt
it bound ::1 and 127.0.0.1 instead of :: and 0.0.0.0 and i rememberd that was a ssh config in /etc/ssh/sshd_config its GatewayPorts yes
:)// unused
prs then havent gotten to documenting the snap stuff in the messages section yetUI()->MouseInside(&View)
check does work when the mouse is all the way at the right or bottom side. Changing the MouseInside
functions introduces other problems due to UI element and mouse positions being floating point numbers and not corresponding to exact pixels.
As a workaround to enable unlimited editor panning in all direction when the GUI is hidden the check is omitted, as the map editor encompasses the entire view and so the check is not necessary in this case.
Closes #4...1
, 2
, 3
, 3
, 2
, 1
adds 5 entries to the history, i.e. only one entry for the command 3
.