mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-25 05:58:46 +01:00
56 lines
921 B
C++
56 lines
921 B
C++
#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;
|
|
|
|
bool poolUseTls = false;
|
|
std::string poolURL;
|
|
bool userSetPwd = false;
|
|
std::string poolPasswd;
|
|
std::string poolUsername;
|
|
bool nicehashMode = false;
|
|
|
|
std::string currency;
|
|
|
|
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
|