diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-09-28 20:32:40 +0200 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-09-30 23:46:08 +0200 |
commit | 085f8c25846119a3b33786d2f4b8989e07a8c26f (patch) | |
tree | 71d843f886b0498e7b53a978d06b1c777cd4988f /backend/cpu/minethd.cpp | |
parent | 0e4cbe2643e5069ab60c53cb2fa81e3afa8456ce (diff) | |
download | xmr-stak-085f8c25846119a3b33786d2f4b8989e07a8c26f.zip xmr-stak-085f8c25846119a3b33786d2f4b8989e07a8c26f.tar.gz |
command line parameter
- store most importend parameter in a singleton
- use config file parameter
Diffstat (limited to 'backend/cpu/minethd.cpp')
-rw-r--r-- | backend/cpu/minethd.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/cpu/minethd.cpp b/backend/cpu/minethd.cpp index 7991d86..3ffdf99 100644 --- a/backend/cpu/minethd.cpp +++ b/backend/cpu/minethd.cpp @@ -31,6 +31,7 @@ #include "../IBackend.hpp" #include "../GlobalStates.hpp" #include "../../ConfigEditor.hpp" +#include "../../Params.hpp" #include "../../jconf.h" #include "../../executor.h" @@ -247,14 +248,14 @@ std::vector<IBackend*> minethd::thread_starter(uint32_t threadOffset, miner_work { std::vector<IBackend*> pvThreads; - if(!ConfigEditor::file_exist("cpu.txt")) + if(!ConfigEditor::file_exist(Params::inst().configFileCPU)) { autoAdjust adjust; if(!adjust.printConfig()) return pvThreads; } - if(!xmrstak::cpu::jconf::inst()->parse_config("cpu.txt")) + if(!jconf::inst()->parse_config()) { win_exit(); } |