Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
stenzek
GitHub Repository: stenzek/duckstation
Path: blob/master/src/util-tests/stub_host.cpp
10595 views
1
// SPDX-FileCopyrightText: 2019-2026 Connor McLaughlin <[email protected]>
2
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
3
4
#include "core/core.h"
5
#include "util/translation.h"
6
7
bool Core::GetBaseBoolSettingValue(const char* section, const char* key, bool default_value /* = false */)
8
{
9
return default_value;
10
}
11
12
s32 Host::Internal::GetTranslatedStringImpl(std::string_view context, std::string_view msg,
13
std::string_view disambiguation, char* tbuf, size_t tbuf_space)
14
{
15
if (msg.size() > tbuf_space)
16
return -1;
17
else if (msg.empty())
18
return 0;
19
20
std::memcpy(tbuf, msg.data(), msg.size());
21
return static_cast<s32>(msg.size());
22
}
23
24