WITHOUT_NETWORKING

This commit is contained in:
Glenn Maynard
2004-06-15 02:21:16 +00:00
parent 387e7c74e1
commit 178fb7dbd6
3 changed files with 28 additions and 6 deletions
+6 -1
View File
@@ -251,7 +251,12 @@ InputMapper.cpp InputMapper.h InputQueue.cpp InputQueue.h LightsManager.cpp Ligh
MemoryCardManager.cpp MemoryCardManager.h NetworkSyncManager.cpp NetworkSyncManager.h \
NoteSkinManager.cpp NoteSkinManager.h PrefsManager.cpp PrefsManager.h ProfileManager.cpp ProfileManager.h \
ScreenManager.cpp ScreenManager.h SongManager.cpp SongManager.h ThemeManager.cpp ThemeManager.h \
UnlockSystem.cpp UnlockSystem.h ezsockets.cpp ezsockets.h
UnlockSystem.cpp UnlockSystem.h
if !WITHOUT_NETWORKING
# Compile NetworkSyncManager even if networking is disabled; it'll stub itself.
GlobalSingletons += ezsockets.cpp ezsockets.h
endif
crypto = \
crypto/CryptBn.cpp crypto/CryptBn.h crypto/CryptMD5.cpp crypto/CryptMD5.h crypto/CryptNoise.cpp \
+20 -3
View File
@@ -1,6 +1,24 @@
#include "global.h"
#include "ezsockets.h"
#include "NetworkSyncManager.h"
NetworkSyncManager *NSMAN;
#if !defined(WITH_NETWORKING)
NetworkSyncManager::NetworkSyncManager() { }
NetworkSyncManager::~NetworkSyncManager () { }
void NetworkSyncManager::CloseConnection() { }
void NetworkSyncManager::PostStartUp( CString ServerIP ) { }
bool NetworkSyncManager::Connect(const CString& addy, unsigned short port) { return false; }
void NetworkSyncManager::ReportScore(int playerID, int step, int score, int combo) { }
void NetworkSyncManager::ReportSongOver() { }
void NetworkSyncManager::StartRequest() { }
void NetworkSyncManager::SendSongs() { }
void NetworkSyncManager::DisplayStartupStatus() { }
void NetworkSyncManager::Update( float fDeltaTime ) { }
#else
#include "ezsockets.h"
#include "ProfileManager.h"
#include "RageLog.h"
#include "StepMania.h"
@@ -18,8 +36,6 @@
#include "StageStats.h"
#include "Steps.h"
NetworkSyncManager *NSMAN;
NetworkSyncManager::NetworkSyncManager()
{
NetPlayerClient = new EzSockets;
@@ -336,6 +352,7 @@ void NetworkSyncManager::DisplayStartupStatus()
void NetworkSyncManager::Update(float fDeltaTime)
{
}
#endif
/*
* (c) 2003-2004 Charles Lohr, Joshua Allen
+2 -2
View File
@@ -32,7 +32,7 @@ public:
void Update(float fDeltaTime);
private:
#if defined(WITH_NETWORKING)
void StartUp();
int m_playerID; //these are currently unused, but need to stay
@@ -74,7 +74,7 @@ private:
{
char data[73];
};
#endif
};
extern NetworkSyncManager *NSMAN;