gsc-tool/src/t6/xsk/resolver.hpp

26 lines
773 B
C++
Raw Normal View History

2022-02-18 13:07:37 -05:00
// Copyright 2022 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:
2022-02-21 10:08:55 -05:00
static void init(read_cb_type callback);
static void cleanup();
2022-02-18 13:07:37 -05:00
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*, char*, size_t>;
2022-02-19 10:22:11 -05:00
static auto fs_to_game_path(const std::filesystem::path& file) -> std::filesystem::path;
2022-02-18 13:07:37 -05:00
};
} // namespace xsk::arc::t6