JKSV/Include/Strings.hpp
2024-12-05 20:04:47 -05:00

16 lines
476 B
C++

#pragma once
#include <string_view>
namespace Strings
{
// Attempts to load strings from file in RomFS.
bool Initialize(void);
// Returns string with name and index. Returns nullptr if string doesn't exist.
const char *GetByName(std::string_view Name, int Index);
// Names of strings to prevent typos.
namespace Names
{
static constexpr std::string_view TranslationInfo = "TranslationInfo";
} // namespace Names
} // namespace Strings