23 baris
467 B
C++
23 baris
467 B
C++
#include <unordered_map>
|
|
#include <string_view>
|
|
#include "embedded.h"
|
|
|
|
std::unordered_map<std::string_view, std::string_view> text_resources;
|
|
|
|
#include "embedded_declarations.inc"
|
|
|
|
void utils::embedded_init_text_resources()
|
|
{
|
|
#include "init_text_resources.inc"
|
|
}
|
|
|
|
std::string_view utils::embedded_get_text_resource(std::string_view name)
|
|
{
|
|
auto it = text_resources.find(name);
|
|
if(it != text_resources.end())
|
|
{
|
|
return it->second;
|
|
}
|
|
return std::string_view{};
|
|
}
|