2023-09-06 08:08:38 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace fnv1a
|
|
|
|
{
|
2024-01-09 09:26:31 -05:00
|
|
|
uint64_t generate_hash(const char* string, uint64_t start = 0xCBF29CE484222325);
|
2023-12-15 04:01:22 -05:00
|
|
|
|
|
|
|
uint64_t generate_hash_pattern(const char* string);
|
2023-09-06 08:08:38 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace variables
|
|
|
|
{
|
|
|
|
struct varInfo
|
|
|
|
{
|
|
|
|
std::string name;
|
|
|
|
const char* desc;
|
|
|
|
uint64_t fnv1a;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct varEntry : varInfo
|
|
|
|
{
|
|
|
|
uintptr_t pointer = 0;
|
|
|
|
};
|
|
|
|
|
2024-05-31 18:35:20 -04:00
|
|
|
extern std::vector<varEntry> dvars_table;
|
|
|
|
extern std::vector<varEntry> commands_table;
|
2023-09-06 08:08:38 -04:00
|
|
|
|
|
|
|
std::vector<const char*> get_dvars_list();
|
|
|
|
std::vector<const char*> get_commands_list();
|
2024-05-31 18:35:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace runtime_errors
|
|
|
|
{
|
|
|
|
constexpr uint64_t custom_error_id = 0x42693201;
|
|
|
|
const char* get_error_message(uint64_t code);
|
2023-09-06 08:08:38 -04:00
|
|
|
}
|