Skip to content

Commit

Permalink
Removed console window on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Marukyu authored and Marukyu committed May 6, 2016
1 parent 72f1d25 commit da807ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Client/System/NEApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
#include <SFML/Graphics/Image.hpp>
#include <Shared/Utils/FileChooser.hpp>
#include <Shared/Utils/MessageBox.hpp>
#include <Shared/Utils/OSDetect.hpp>
#include <Shared/Utils/Utilities.hpp>
#include <cstdbool>
#include <exception>
#include <iostream>

#ifdef WOS_WINDOWS
# include <Windows.h>
# undef MessageBox
#endif

std::string NEApplication::getGameDirectory() const
{
return gameDirectory;
Expand Down Expand Up @@ -85,6 +91,10 @@ bool NEApplication::chooseGameDirectory()

int NEApplication::init(const std::vector<std::string>& args)
{
#ifdef WOS_WINDOWS
FreeConsole();
#endif

resourceDirectory = ".";
gameDirectory = ".";

Expand Down

0 comments on commit da807ce

Please sign in to comment.