Fixed NO_LINK build.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1241 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
027d8f76ed
commit
1ca9a52821
|
@ -14,8 +14,6 @@
|
|||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
#ifndef NO_LINK
|
||||
|
||||
static int vbaid = 0;
|
||||
const char *MakeInstanceFilename(const char *Input)
|
||||
{
|
||||
|
@ -32,6 +30,8 @@ const char *MakeInstanceFilename(const char *Input)
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifndef NO_LINK
|
||||
|
||||
// The usual min/max functions for built-in types.
|
||||
//
|
||||
// template<typename T> T min( T x, T y ) { return x < y ? x : y; }
|
||||
|
@ -2691,5 +2691,6 @@ void lclient::Send() {
|
|||
lanlink.tcpsocket.Send(outbuffer, 4);
|
||||
return;
|
||||
}
|
||||
|
||||
#else
|
||||
bool gba_joybus_active = false;
|
||||
#endif
|
|
@ -293,9 +293,6 @@ void LinkOptions::UpdateAvailability()
|
|||
GetDlgItem(IDC_LINK4P)->EnableWindow(isNetwork && m_server);
|
||||
}
|
||||
|
||||
#endif // NO_LINK
|
||||
|
||||
|
||||
void LinkOptions::OnBnClickedLinkServer()
|
||||
{
|
||||
UpdateData(TRUE);
|
||||
|
@ -308,3 +305,5 @@ void LinkOptions::OnBnClickedLinkClient()
|
|||
UpdateData(TRUE);
|
||||
UpdateAvailability();
|
||||
}
|
||||
|
||||
#endif // NO_LINK
|
||||
|
|
|
@ -349,9 +349,9 @@ VBA::~VBA()
|
|||
*p = 0;
|
||||
|
||||
regInit(winBuffer);
|
||||
|
||||
#ifndef NO_LINK
|
||||
CloseLink();
|
||||
|
||||
#endif
|
||||
saveSettings();
|
||||
|
||||
if(moviePlaying) {
|
||||
|
|
Loading…
Reference in New Issue