26 lines
779 B
C++
26 lines
779 B
C++
// Copyright 2023 xensik. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a GNU GPLv3 license
|
|
// that can be found in the LICENSE file.
|
|
|
|
#pragma once
|
|
|
|
namespace xsk::arc::t6
|
|
{
|
|
|
|
class resolver
|
|
{
|
|
public:
|
|
static void init(read_cb_type callback);
|
|
static void cleanup();
|
|
static auto opcode_id(const std::string& name) -> std::uint8_t;
|
|
static auto opcode_name(std::uint8_t id) -> std::string;
|
|
static auto dvar_name(std::uint32_t id) -> std::string;
|
|
|
|
static auto make_token(std::string_view str) -> std::string;
|
|
static auto file_data(const std::string& name) -> std::tuple<const std::string*, const char*, size_t>;
|
|
static auto fs_to_game_path(const std::filesystem::path& file) -> std::filesystem::path;
|
|
};
|
|
|
|
} // namespace xsk::arc::t6
|