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

26 lines
779 B
C++
Raw Normal View History

2023-01-23 17:31:08 -05:00
// Copyright 2023 xensik. All rights reserved.
2022-02-18 13:07:37 -05:00
//
// 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;
2022-09-16 12:05:58 -04:00
static auto file_data(const std::string& name) -> std::tuple<const std::string*, const 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