mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-24 05:29:01 +02:00
leave pending param package stuff
This commit is contained in:
parent
f76bb75c51
commit
34d4e33599
1 changed files with 6 additions and 0 deletions
|
|
@ -75,7 +75,9 @@ std::string ParamPackage::Serialize() const {
|
||||||
std::string ParamPackage::Get(const std::string& key, const std::string& default_value) const {
|
std::string ParamPackage::Get(const std::string& key, const std::string& default_value) const {
|
||||||
auto pair = data.find(key);
|
auto pair = data.find(key);
|
||||||
if (pair == data.end()) {
|
if (pair == data.end()) {
|
||||||
|
#ifndef __OPENORBIS__
|
||||||
LOG_TRACE(Common, "key '{}' not found", key);
|
LOG_TRACE(Common, "key '{}' not found", key);
|
||||||
|
#endif
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -85,7 +87,9 @@ std::string ParamPackage::Get(const std::string& key, const std::string& default
|
||||||
int ParamPackage::Get(const std::string& key, int default_value) const {
|
int ParamPackage::Get(const std::string& key, int default_value) const {
|
||||||
auto pair = data.find(key);
|
auto pair = data.find(key);
|
||||||
if (pair == data.end()) {
|
if (pair == data.end()) {
|
||||||
|
#ifndef __OPENORBIS__
|
||||||
LOG_TRACE(Common, "key '{}' not found", key);
|
LOG_TRACE(Common, "key '{}' not found", key);
|
||||||
|
#endif
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -100,7 +104,9 @@ int ParamPackage::Get(const std::string& key, int default_value) const {
|
||||||
float ParamPackage::Get(const std::string& key, float default_value) const {
|
float ParamPackage::Get(const std::string& key, float default_value) const {
|
||||||
auto pair = data.find(key);
|
auto pair = data.find(key);
|
||||||
if (pair == data.end()) {
|
if (pair == data.end()) {
|
||||||
|
#ifndef __OPENORBIS__
|
||||||
LOG_TRACE(Common, "key {} not found", key);
|
LOG_TRACE(Common, "key {} not found", key);
|
||||||
|
#endif
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue