Skip to content

Commit

Permalink
Version 1.5.2 - Fixed xml parsing for config file
Browse files Browse the repository at this point in the history
*Fixed Xml parsing for config file. Some options where skipped.
*Fixed config.txt exaple file that was commenting the "v" option , due to typo.
  • Loading branch information
polyminer1 committed May 16, 2019
1 parent 6bbc409 commit cbd0290
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion BuildInfo.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#define RH_PROJECT_NAME "rhminer"
#define RH_PROJECT_VERSION "1.5.1"
#define RH_PROJECT_VERSION "1.5.2"


4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# rhminer update and bugfix history

Version 1.5.2 - 16 May 2019
* Fixed Xml parsing of config file. Some options where skipped.


Version 1.5.1 - 14 May 2019
* Support for CUDA 10.1 with drivers 419.x(Windows) and 418.x(Linux)
* Added suppot for Nvidia Turing architecture (GTX 20xx) Untested.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Support stratum and solo mining<br>
Works on Windows 7,10 and Ubuntu 18

## Download prebuilt binaries
**Current version is 1.5.1** <br>
**Current version is 1.5.2** <br>

There is one prebuilt binariy per OS and CUDA architectures. <br>
https://github.com/polyminer1/rhminer/releases/<br>
Expand All @@ -26,7 +26,7 @@ To get the number of logical cores, on you system, simply run rhminer with the -
```
C:\rhminer>rhminer -completelist
rhminer v1.5.1 beta for CPU by polyminer1 (https://github.com/polyminer1/rhminer)
rhminer v1.5.2 beta for CPU by polyminer1 (https://github.com/polyminer1/rhminer)
Buid CPU Nov 19 2018 20:04:01
Donations : Pascal account 529692-23
Expand Down
2 changes: 1 addition & 1 deletion Release/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ WARNING: Changing this value will affect GPU mining.
Log verbosity. From 0 to 3.
0 no log, 1 normal log, 2 include warnings. 3 network (only in log file).
Default is 1
/*
*/
"v":3,


Expand Down
13 changes: 7 additions & 6 deletions rhminer/CommandLineManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,17 +264,19 @@ bool CmdLineManager::Parse(int argc, char** argv, bool exitOnError)
m_argslist += " ";
}

//DebugOut("Command line args : %s\n", m_argslist.c_str());
int res = ParseInternal(NULL, exitOnError);
if (res && exitOnError)
{
printf("Invalid command line option '%s'\n", res < argc ? argv[res]:"");
RHMINER_EXIT_APP("");
}

PrintOutSilent("Options: %s\n", m_argslist.c_str());

return res == 0;
}

//return ith symbole that cause error. else return 0
//return ith symbol that cause error. else return 0
int CmdLineManager::ParseInternal(const char* specificSymbol, bool exitOnError)
{
if (!m_xmlCommandLineConfig.empty())
Expand All @@ -300,13 +302,12 @@ int CmdLineManager::ParseInternalXML(const char* specificSymbol, bool exitOnErro
if (o)
{
if (o->parsed && !o->allowMultiples)
return 0;
continue;

string symbVal = m_xmlCommandLineConfig.get(symb, "").asString();
//PrintOut("XML option %s '%s'\n", symb.c_str(), symbVal.c_str());
if (symbVal.length())
{
//printf("XML option %s %s\n", symb.c_str(), symbVal.c_str());

if (o->flagSetter)
{
if (stristr(symbVal.c_str(), "enable") || stristr(symbVal.c_str(), "true"))
Expand Down Expand Up @@ -357,7 +358,7 @@ int CmdLineManager::ParseInternalXML(const char* specificSymbol, bool exitOnErro
return 0;
}

if (m_argslist.length())
if (m_argslist.length() && !specificSymbol)
OverrideArgs(m_argslist);

return 0;
Expand Down

0 comments on commit cbd0290

Please sign in to comment.