diff options
Diffstat (limited to 'xmrstak/params.hpp')
-rw-r--r-- | xmrstak/params.hpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/xmrstak/params.hpp b/xmrstak/params.hpp new file mode 100644 index 0000000..dddf82e --- /dev/null +++ b/xmrstak/params.hpp @@ -0,0 +1,50 @@ +#pragma once + +#include "xmrstak/misc/environment.hpp" + +#include <string> + +namespace xmrstak +{ + +struct params +{ + + static inline params& inst() + { + auto& env = environment::inst(); + if(env.pParams == nullptr) + env.pParams = new params; + return *env.pParams; + } + + std::string executablePrefix; + std::string binaryName; + bool useAMD; + bool useNVIDIA; + bool useCPU; + + std::string poolURL; + std::string poolPasswd; + std::string poolUsername; + + std::string configFile; + std::string configFileAMD; + std::string configFileNVIDIA; + std::string configFileCPU; + + params() : + binaryName("xmr-stak"), + executablePrefix("./"), + useAMD(true), + useNVIDIA(true), + useCPU(true), + configFile("config.txt"), + configFileAMD("amd.txt"), + configFileCPU("cpu.txt"), + configFileNVIDIA("nvidia.txt") + {} + +}; + +} // namepsace xmrstak |