Sdk/Application: Fix compilation in server mode
Former-commit-id: 67093963bcad8d36febd467c1aba51d497d8e5c5 [formerly 4bf223f6b8388f973e3be44178dc4762bd8bec24] [formerly f5ec0e444d9ad87dc39bf3d85f2679046bdc8385 [formerly 3c50590603c468b2e97417785db9f571b40bc790]] Former-commit-id: 0bcbfdb95712215eb44014102b7dc95272620d90 [formerly 0708473fe71ae8f8f477a1a3e9984fd06e0b3b1f] Former-commit-id: 9f9478b6dff900d10dfdaaedddfb206087d0c49b
This commit is contained in:
parent
b91eac9935
commit
1dec4ca86a
|
|
@ -127,12 +127,14 @@ namespace Ndk
|
||||||
template<typename T> void SetupWindow(WindowInfo& info, T* renderTarget, std::true_type /*isRenderTarget*/);
|
template<typename T> void SetupWindow(WindowInfo& info, T* renderTarget, std::true_type /*isRenderTarget*/);
|
||||||
template<typename T> void SetupWindow(WindowInfo& /*info*/, T* /*renderTarget*/, std::false_type /*isNotRenderTarget*/);
|
template<typename T> void SetupWindow(WindowInfo& /*info*/, T* /*renderTarget*/, std::false_type /*isNotRenderTarget*/);
|
||||||
|
|
||||||
std::map<Nz::String, Nz::String> m_parameters;
|
|
||||||
std::set<Nz::String> m_options;
|
|
||||||
std::vector<WindowInfo> m_windows;
|
std::vector<WindowInfo> m_windows;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
std::map<Nz::String, Nz::String> m_parameters;
|
||||||
|
std::set<Nz::String> m_options;
|
||||||
std::list<World> m_worlds;
|
std::list<World> m_worlds;
|
||||||
Nz::Clock m_updateClock;
|
Nz::Clock m_updateClock;
|
||||||
|
|
||||||
#ifndef NDK_SERVER
|
#ifndef NDK_SERVER
|
||||||
Nz::UInt32 m_overlayFlags;
|
Nz::UInt32 m_overlayFlags;
|
||||||
bool m_exitOnClosedWindows;
|
bool m_exitOnClosedWindows;
|
||||||
|
|
|
||||||
|
|
@ -350,6 +350,7 @@ namespace Ndk
|
||||||
return s_application;
|
return s_application;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDK_SERVER
|
||||||
template<typename T>
|
template<typename T>
|
||||||
inline void Application::SetupWindow(WindowInfo& info, T* renderTarget, std::true_type)
|
inline void Application::SetupWindow(WindowInfo& info, T* renderTarget, std::true_type)
|
||||||
{
|
{
|
||||||
|
|
@ -372,7 +373,6 @@ namespace Ndk
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NDK_SERVER
|
|
||||||
inline Application::WindowInfo::WindowInfo(std::unique_ptr<Nz::Window>&& window) :
|
inline Application::WindowInfo::WindowInfo(std::unique_ptr<Nz::Window>&& window) :
|
||||||
window(std::move(window)),
|
window(std::move(window)),
|
||||||
renderTarget(nullptr)
|
renderTarget(nullptr)
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
|
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
|
||||||
|
|
||||||
#include <NDK/Application.hpp>
|
#include <NDK/Application.hpp>
|
||||||
|
#include <Nazara/Core/Log.hpp>
|
||||||
#include <regex>
|
#include <regex>
|
||||||
|
|
||||||
#ifndef NDK_SERVER
|
#ifndef NDK_SERVER
|
||||||
|
|
@ -63,11 +64,13 @@ namespace Ndk
|
||||||
NazaraWarning("Ignored command-line argument #" + Nz::String::Number(i) + " \"" + argument + '"');
|
NazaraWarning("Ignored command-line argument #" + Nz::String::Number(i) + " \"" + argument + '"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDK_SERVER
|
||||||
if (HasOption("console"))
|
if (HasOption("console"))
|
||||||
EnableConsole(true);
|
EnableConsole(true);
|
||||||
|
|
||||||
if (HasOption("fpscounter"))
|
if (HasOption("fpscounter"))
|
||||||
EnableFPSCounter(true);
|
EnableFPSCounter(true);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue