mirror of
https://github.com/dborth/fceugx.git
synced 2024-12-04 22:34:14 +01:00
network setting tweak, zapper uses A & B now
This commit is contained in:
parent
3da8ff5517
commit
b19d403991
@ -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;
|
||||
|
@ -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
|
||||
)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user