t8-mod/source/proxy-dll/component/hashes.hpp

18 lines
462 B
C++
Raw Permalink Normal View History

#pragma once
namespace hashes
{
enum hashes_file_format
{
HFF_COMMON = 0,
HFF_STRING,
HFF_SERIOUS_COMPILER,
HFF_COUNT
};
const char* lookup(uint64_t hash);
const char* lookup_tmp(const char* type, uint64_t hash);
void add_hash(uint64_t hash, const char* value);
const char* get_format_name(hashes_file_format format);
hashes_file_format get_format_idx(const char* name);
bool load_file(std::filesystem::path& file, hashes_file_format format);
}