unix netplay should actually work now

fceu-server is required; maybe we should start packaging this with fceu?
This commit is contained in:
punkrockguy318 2009-12-31 06:37:57 +00:00
parent 76fc614d31
commit d66488ad26
2 changed files with 6 additions and 6 deletions

View File

@ -166,14 +166,14 @@ InitConfig()
config->addOption("SDL.SpecialFX", 0);
// network play options - netplay is broken
/*
config->addOption('n', "net", "SDL.NetworkServer", "");
config->addOption("server", "SDL.NetworkIsServer", 0);
config->addOption('n', "net", "SDL.NetworkIP", "");
config->addOption('u', "user", "SDL.NetworkUsername", "");
config->addOption('w', "pass", "SDL.NetworkPassword", "");
config->addOption('k', "netkey", "SDL.NetworkGameKey", "");
config->addOption( 0, "port", "SDL.NetworkPort", 4046);
config->addOption('l', "players", "SDL.NetworkNumPlayers", 1);
*/
config->addOption("port", "SDL.NetworkPort", 4046);
config->addOption("players", "SDL.NetworkPlayers", 1);
// input configuration options
config->addOption("input1", "SDL.Input.0", "GamePad.0");
config->addOption("input2", "SDL.Input.1", "GamePad.1");

View File

@ -94,7 +94,7 @@ FCEUD_NetworkConnect(void)
// get any required configuration variables
int port, localPlayers;
std::string server, username, password, key;
g_config->getOption("SDL.NetworkServer", &server);
g_config->getOption("SDL.NetworkIP", &server);
g_config->getOption("SDL.NetworkUsername", &username);
g_config->getOption("SDL.NetworkPassword", &password);
g_config->getOption("SDL.NetworkGameKey", &key);