Files
xmr-stak/xmrstak/params.hpp
T
psychocrypt b0d5f15f9b general aeon support
- cli-miner.hpp:
  - add option `--currency`
  - add guided start section
- config.tpl: add value `currency`
- params.hpp: add value to store the selected currency
- executor.hpp: add dev pool address
2017-10-27 20:12:01 +02:00

53 lines
844 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;
std::string poolURL;
std::string poolPasswd;
std::string poolUsername;
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