diff options
author | Alexander Tkachev | 2016-07-20 16:36:44 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 85f4c69fc981ae1d3807ffb0280b59d627a92ebc (patch) | |
tree | 647eb21ff260d8e3de54b95de505c5fe56397ada /backends/networking/sdl_net/localwebserver.h | |
parent | 39865e6e6cf67e3b5a3867540dde76969b244246 (diff) | |
download | scummvm-rg350-85f4c69fc981ae1d3807ffb0280b59d627a92ebc.tar.gz scummvm-rg350-85f4c69fc981ae1d3807ffb0280b59d627a92ebc.tar.bz2 scummvm-rg350-85f4c69fc981ae1d3807ffb0280b59d627a92ebc.zip |
CLOUD: Update StorageWizardDialog
It now hides code fields not just when built with SDL_Net, but also when
LocalWebserver's using default port.
So that's why NETWORKING_LOCALWEBSERVER_ENABLE_PORT_OVERRIDE is defined
in localwebserver.h now.
Diffstat (limited to 'backends/networking/sdl_net/localwebserver.h')
-rw-r--r-- | backends/networking/sdl_net/localwebserver.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/networking/sdl_net/localwebserver.h b/backends/networking/sdl_net/localwebserver.h index 3512583605..107c21e341 100644 --- a/backends/networking/sdl_net/localwebserver.h +++ b/backends/networking/sdl_net/localwebserver.h @@ -47,10 +47,11 @@ typedef struct _TCPsocket *TCPsocket; namespace Networking { +#define NETWORKING_LOCALWEBSERVER_ENABLE_PORT_OVERRIDE + class LocalWebserver : public Common::Singleton<LocalWebserver> { static const uint32 FRAMES_PER_SECOND = 20; static const uint32 TIMER_INTERVAL = 1000000 / FRAMES_PER_SECOND; - static const uint32 DEFAULT_SERVER_PORT = 12345; static const uint32 MAX_CONNECTIONS = 10; friend void localWebserverTimer(void *); //calls handle() @@ -84,6 +85,8 @@ class LocalWebserver : public Common::Singleton<LocalWebserver> { void resolveAddress(void *ipAddress); public: + static const uint32 DEFAULT_SERVER_PORT = 12345; + LocalWebserver(); virtual ~LocalWebserver(); |