mirror of
https://github.com/open-goal/jak-project
synced 2026-08-17 13:40:39 -04:00
[decompiler] jak 2 cutscene file support (#2390)
fixes #2332 also fills out the japanese character set
This commit is contained in:
@@ -9,17 +9,37 @@
|
||||
#include <vector>
|
||||
|
||||
#include "common/common_types.h"
|
||||
#include "common/util/Assert.h"
|
||||
#include "common/util/FileUtil.h"
|
||||
#include "common/versions.h"
|
||||
|
||||
namespace decompiler {
|
||||
class StrFileReader {
|
||||
public:
|
||||
explicit StrFileReader(const fs::path& file_path);
|
||||
explicit StrFileReader(const fs::path& file_path, GameVersion version);
|
||||
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:
|
||||
void init_jak1(const fs::path& file_path);
|
||||
void init_jak2(const fs::path& file_path);
|
||||
|
||||
GameVersion m_version;
|
||||
const std::string get_file_info_string() const {
|
||||
switch (m_version) {
|
||||
case GameVersion::Jak1:
|
||||
return "/src/next/data/art-group6/";
|
||||
break;
|
||||
case GameVersion::Jak2:
|
||||
return "/src/jak2/final/art-group7/";
|
||||
break;
|
||||
default:
|
||||
ASSERT_MSG(false, "NYI get_file_info_string version");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::vector<u8>> m_chunks;
|
||||
};
|
||||
} // namespace decompiler
|
||||
|
||||
Reference in New Issue
Block a user