mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-23 08:22:51 +00:00
Make windows console fully disable itself
This commit is contained in:
parent
8425fbf5fb
commit
cdafb80fbc
1 changed files with 2 additions and 1 deletions
|
|
@ -322,7 +322,6 @@ void* main_game_init(void* isThreaded) {
|
||||||
gGameInited = true;
|
gGameInited = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void djui_panel_do_host(bool reconnecting, bool playSound);
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
// Handle terminal arguments
|
// Handle terminal arguments
|
||||||
|
|
@ -332,6 +331,7 @@ int main(int argc, char *argv[]) {
|
||||||
// Handle Windows console
|
// Handle Windows console
|
||||||
if (!gCLIOpts.console) {
|
if (!gCLIOpts.console) {
|
||||||
FreeConsole();
|
FreeConsole();
|
||||||
|
freopen("NUL", "w", stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -386,6 +386,7 @@ int main(int argc, char *argv[]) {
|
||||||
configNetworkSystem = NS_SOCKET;
|
configNetworkSystem = NS_SOCKET;
|
||||||
configHostPort = gCLIOpts.networkPort;
|
configHostPort = gCLIOpts.networkPort;
|
||||||
|
|
||||||
|
extern void djui_panel_do_host(bool reconnecting, bool playSound);
|
||||||
djui_panel_do_host(NULL, false);
|
djui_panel_do_host(NULL, false);
|
||||||
} else {
|
} else {
|
||||||
network_init(NT_NONE, false);
|
network_init(NT_NONE, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue