summaryrefslogtreecommitdiffstats
path: root/xmrstak/jconf.cpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-26 20:58:27 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-27 20:13:19 +0200
commit12802f12e30f57c2a9eefca2c1a5955275c95127 (patch)
treea10bced239ecd012ceeed593571a3fb8bccee9cb /xmrstak/jconf.cpp
parent41451d91e8e50f2b6c4b07630987dbc5a58aecb9 (diff)
downloadxmr-stak-12802f12e30f57c2a9eefca2c1a5955275c95127.zip
xmr-stak-12802f12e30f57c2a9eefca2c1a5955275c95127.tar.gz
rename `xmr` to `monero`
- rename all `xmr` to `monero` - be insensitive while check for set currency - add function to compate two strings insensitive
Diffstat (limited to 'xmrstak/jconf.cpp')
-rw-r--r--xmrstak/jconf.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/xmrstak/jconf.cpp b/xmrstak/jconf.cpp
index fce1751..5ada0d6 100644
--- a/xmrstak/jconf.cpp
+++ b/xmrstak/jconf.cpp
@@ -27,6 +27,7 @@
#include "xmrstak/misc/console.hpp"
#include "xmrstak/misc/jext.hpp"
#include "xmrstak/misc/console.hpp"
+#include "xmrstak/misc/utility.hpp"
#include <stdio.h>
#include <stdlib.h>
@@ -157,14 +158,14 @@ const std::string jconf::GetCurrency()
if(currency.empty())
currency = prv->configValues[sCurrency]->GetString();
if(
-#ifndef CONF_NO_XMR
- currency.compare("xmr") != 0
+#ifndef CONF_NO_MONERO
+ xmrstak::strcmp_i(currency, "monero")
#else
true
#endif
&&
#ifndef CONF_NO_AEON
- currency.compare("aeon") != 0
+ xmrstak::strcmp_i(currency, "aeon")
#else
true
#endif
@@ -176,9 +177,9 @@ const std::string jconf::GetCurrency()
return currency;
}
-bool jconf::IsCurrencyXMR()
+bool jconf::IsCurrencyMonero()
{
- if(::jconf::inst()->GetCurrency().compare("xmr") == 0)
+ if(xmrstak::strcmp_i(::jconf::inst()->GetCurrency(), "monero"))
{
return true;
}
OpenPOWER on IntegriCloud