mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-24 06:48:40 +02:00
46 lines
728 B
C++
46 lines
728 B
C++
#pragma once
|
|
#include <string>
|
|
#include "Environment.hpp"
|
|
|
|
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;
|
|
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() :
|
|
useAMD(true),
|
|
useNVIDIA(true),
|
|
useCPU(true),
|
|
configFile("config.txt"),
|
|
configFileAMD("amd.txt"),
|
|
configFileCPU("cpu.txt"),
|
|
configFileNVIDIA("nvidia.txt")
|
|
{}
|
|
|
|
};
|
|
|
|
} // namepsace xmrstak
|