mirror of
https://github.com/open-goal/jak-project
synced 2026-05-24 15:21:12 -04:00
1e33dcda4b
* Remove assets folder, use more std::filesystem * windows fix * another one for windows * another one * better system for different folders * rm debugging stuff * let extractor override everything * dont revert jak1 change
25 lines
555 B
C++
25 lines
555 B
C++
#pragma once
|
|
|
|
/*!
|
|
* @file StrFileReader.h
|
|
* Utility class to read a .STR file and extract the full file name.
|
|
*/
|
|
|
|
#include <filesystem>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "common/common_types.h"
|
|
|
|
namespace decompiler {
|
|
class StrFileReader {
|
|
public:
|
|
explicit StrFileReader(const std::filesystem::path& file_path);
|
|
int chunk_count() const;
|
|
const std::vector<u8>& get_chunk(int idx) const;
|
|
std::string get_full_name(const std::string& short_name) const;
|
|
|
|
private:
|
|
std::vector<std::vector<u8>> m_chunks;
|
|
};
|
|
} // namespace decompiler
|