diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-18 21:47:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-18 22:27:06 +0300 |
commit | e73c5ecc896c14fa43b19e42e5b24c79766cdb44 (patch) | |
tree | 9ee72afa6d4b8e150534f64a6c15085d1ce168b9 /src/main.cpp | |
parent | 25907c03212110f10c910b0ef90a416dff450ca7 (diff) | |
download | manaverse-e73c5ecc896c14fa43b19e42e5b24c79766cdb44.tar.gz manaverse-e73c5ecc896c14fa43b19e42e5b24c79766cdb44.tar.bz2 manaverse-e73c5ecc896c14fa43b19e42e5b24c79766cdb44.tar.xz manaverse-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.cpp | 2 |
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) { |