mirror of
https://github.com/stenzek/duckstation.git
synced 2026-04-25 15:32:31 +00:00
23 lines
683 B
C++
23 lines
683 B
C++
|
|
// SPDX-FileCopyrightText: 2019-2026 Connor McLaughlin <stenzek@gmail.com>
|
||
|
|
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
|
||
|
|
|
||
|
|
#include "core/core.h"
|
||
|
|
#include "util/translation.h"
|
||
|
|
|
||
|
|
bool Core::GetBaseBoolSettingValue(const char* section, const char* key, bool default_value /* = false */)
|
||
|
|
{
|
||
|
|
return default_value;
|
||
|
|
}
|
||
|
|
|
||
|
|
s32 Host::Internal::GetTranslatedStringImpl(std::string_view context, std::string_view msg,
|
||
|
|
std::string_view disambiguation, char* tbuf, size_t tbuf_space)
|
||
|
|
{
|
||
|
|
if (msg.size() > tbuf_space)
|
||
|
|
return -1;
|
||
|
|
else if (msg.empty())
|
||
|
|
return 0;
|
||
|
|
|
||
|
|
std::memcpy(tbuf, msg.data(), msg.size());
|
||
|
|
return static_cast<s32>(msg.size());
|
||
|
|
}
|