network setting tweak, zapper uses A & B now

This commit is contained in:
dborth 2008-09-07 23:50:05 +00:00
parent 3da8ff5517
commit b19d403991
3 changed files with 18 additions and 5 deletions

View File

@ -37,11 +37,16 @@ DefaultSettings ()
GCSettings.AutoLoad = 1; // Auto Load RAM
GCSettings.AutoSave = 1; // Auto Save RAM
// default SMB settings
strncpy (GCSettings.smbip, "192.168.0.1", 15); // IP Address of share server
strncpy (GCSettings.smbuser, "Wiiuser", 19); // Your share user
strncpy (GCSettings.smbpwd, "password", 19); // Your share user password
strncpy (GCSettings.smbshare, "NES", 19); // Share name on server
// custom SMB settings
strncpy (GCSettings.smbip, "", 15); // IP Address of share server
strncpy (GCSettings.smbuser, "", 19); // Your share user
strncpy (GCSettings.smbpwd, "", 19); // Your share user password
strncpy (GCSettings.smbshare, "", 19); // Share name on server
GCSettings.smbip[15] = 0;
GCSettings.smbuser[19] = 0;
GCSettings.smbpwd[19] = 0;
GCSettings.smbshare[19] = 0;
GCSettings.gcip[0] = 0;
GCSettings.gwip[0] = 0;

View File

@ -383,6 +383,7 @@ unsigned char DecodeJoy( unsigned short pad )
if ( (jp & PAD_BUTTON_A) // gamecube controller
#ifdef HW_RVL
|| (wp & WPAD_BUTTON_A) // wiimote
|| (wp & WPAD_BUTTON_B)
#endif
)
{

View File

@ -87,6 +87,13 @@ ConnectShare (bool silent)
return false;
#endif
// check that all parameter have been set
if(strlen(GCSettings.smbuser) == 0 ||
strlen(GCSettings.smbpwd) == 0 ||
strlen(GCSettings.smbshare) == 0 ||
strlen(GCSettings.smbip) == 0)
return false;
if(!networkInit)
networkInit = InitializeNetwork(silent);