mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 00:28:08 -04:00
[Client] Use __WINDOWS define
This commit is contained in:
parent
8fa8b8d310
commit
4eb02af8fb
@ -375,7 +375,7 @@ void Networking::preInit(std::vector<std::string> &content, Files::Collections &
|
|||||||
|
|
||||||
if (!checksumsResponse.empty()) // something wrong
|
if (!checksumsResponse.empty()) // something wrong
|
||||||
{
|
{
|
||||||
#if defined(_MSC_VER)
|
#if defined(__WINDOWS)
|
||||||
errmsg = comparePlugins(checksums, checksumsResponse);
|
errmsg = comparePlugins(checksums, checksumsResponse);
|
||||||
#else
|
#else
|
||||||
errmsg = comparePluginsMonospaced(checksums, checksumsResponse);
|
errmsg = comparePluginsMonospaced(checksums, checksumsResponse);
|
||||||
@ -386,7 +386,7 @@ void Networking::preInit(std::vector<std::string> &content, Files::Collections &
|
|||||||
{
|
{
|
||||||
LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, comparePluginsMonospaced(checksums, checksumsResponse, true).c_str());
|
LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, comparePluginsMonospaced(checksums, checksumsResponse, true).c_str());
|
||||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "tes3mp", errmsg.c_str(), 0);
|
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "tes3mp", errmsg.c_str(), 0);
|
||||||
#if defined(_MSC_VER)
|
#if defined(__WINDOWS)
|
||||||
throw std::runtime_error("Shutting down.");
|
throw std::runtime_error("Shutting down.");
|
||||||
#endif
|
#endif
|
||||||
MWBase::Environment::get().getStateManager()->requestQuit();
|
MWBase::Environment::get().getStateManager()->requestQuit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user