summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-18 21:47:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-18 22:27:06 +0300
commite73c5ecc896c14fa43b19e42e5b24c79766cdb44 (patch)
tree9ee72afa6d4b8e150534f64a6c15085d1ce168b9 /src/main.cpp
parent25907c03212110f10c910b0ef90a416dff450ca7 (diff)
downloadplus-e73c5ecc896c14fa43b19e42e5b24c79766cdb44.tar.gz
plus-e73c5ecc896c14fa43b19e42e5b24c79766cdb44.tar.bz2
plus-e73c5ecc896c14fa43b19e42e5b24c79766cdb44.tar.xz
plus-e73c5ecc896c14fa43b19e42e5b24c79766cdb44.zip
Change process priority depend on game state.
implimented only for windows version.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0266dde21..a7817d31a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -33,6 +33,7 @@
#include "utils/mkdir.h"
#endif
#include "utils/paths.h"
+#include "utils/process.h"
#include "utils/physfstools.h"
#include "utils/xml.h"
@@ -264,6 +265,7 @@ int main(int argc, char *argv[])
#ifdef WIN32
SetCurrentDirectory(PhysFs::getBaseDir());
#endif
+ setPriority(true);
Client client(options);
if (!options.testMode)
{