mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2025-02-16 20:39:15 +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;
|
this->peer = NULL;
|
||||||
|
|
||||||
if (fixme_tmp_network_server) {
|
if (fixme_tmp_network_server) {
|
||||||
|
printf("Connecting to %s\n", fixme_tmp_network_server);
|
||||||
strcpy(this->server_hostname, fixme_tmp_network_server);
|
strcpy(this->server_hostname, fixme_tmp_network_server);
|
||||||
this->peer = new Network(this->server_hostname, this->server_port);
|
this->peer = new Network(this->server_hostname, this->server_port);
|
||||||
this->network_connection_type = MASTER;
|
this->network_connection_type = CONNECT;
|
||||||
printf("Waiting for connection\n");
|
|
||||||
if (this->peer->Connect() == false)
|
|
||||||
{
|
|
||||||
printf("No client connected. Bye\n");
|
|
||||||
delete this->peer;
|
|
||||||
this->peer = NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,10 +107,9 @@ char *fixme_tmp_network_server = 0;
|
|||||||
|
|
||||||
void Frodo::ArgvReceived(int argc, char **argv)
|
void Frodo::ArgvReceived(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
printf("Argc: %d\n", argc);
|
||||||
if (argc == 2)
|
if (argc == 2)
|
||||||
{
|
|
||||||
fixme_tmp_network_server = argv[1];
|
fixme_tmp_network_server = argv[1];
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user