blob: 92d0da058f10d1b3cebf962eee0094d83540b064 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#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
|