mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 19:39:24 +01:00
Fix network connection from the command-line
This commit is contained in:
parent
958eddfd37
commit
9d19e9c876
@ -63,16 +63,10 @@ void C64::c64_ctor1(void)
|
||||
this->peer = NULL;
|
||||
|
||||
if (fixme_tmp_network_server) {
|
||||
printf("Connecting to %s\n", fixme_tmp_network_server);
|
||||
strcpy(this->server_hostname, fixme_tmp_network_server);
|
||||
this->peer = new Network(this->server_hostname, this->server_port);
|
||||
this->network_connection_type = MASTER;
|
||||
printf("Waiting for connection\n");
|
||||
if (this->peer->Connect() == false)
|
||||
{
|
||||
printf("No client connected. Bye\n");
|
||||
delete this->peer;
|
||||
this->peer = NULL;
|
||||
}
|
||||
this->network_connection_type = CONNECT;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -107,10 +107,9 @@ char *fixme_tmp_network_server = 0;
|
||||
|
||||
void Frodo::ArgvReceived(int argc, char **argv)
|
||||
{
|
||||
printf("Argc: %d\n", argc);
|
||||
if (argc == 2)
|
||||
{
|
||||
fixme_tmp_network_server = argv[1];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user