jak-project/test/offline/framework/file_management.h
Tyler Wilding dd0a8a17b2
docs - first chunk of work documenting the files I glossed over (#2130)
- started documenting the files I glossed over, some are totally done,
others are just partially done
- I changed the decompiler to automatically initialize the
art-group-info from the json file. This makes updating gsrc, even a
single file at a time, have consistent naming
- Though I disabled this functionality for jak 1, as I have no idea if
using the ntsc art groups will cause a regression for different versions
- fix indentation for docstrings -- it still doesn't look great, but
this is now a formatting concern, rather than the docstring having a
bunch of happen-stance leading whitespace.
2023-01-15 11:33:39 -05:00

36 lines
1.1 KiB
C++

#pragma once
#include <string>
#include <unordered_map>
#include "common/util/FileUtil.h"
struct OfflineTestSourceFile {
OfflineTestSourceFile(fs::path _path,
std::string _containing_dgo,
std::string _name_in_dgo,
std::string _unique_name)
: path(_path),
containing_dgo(_containing_dgo),
name_in_dgo(_name_in_dgo),
unique_name(_unique_name){};
fs::path path;
std::string containing_dgo;
std::string name_in_dgo;
std::string unique_name;
};
struct OfflineTestArtFile {
OfflineTestArtFile(std::string _containing_dgo,
std::string _name_in_dgo,
std::string _unique_name)
: containing_dgo(_containing_dgo), name_in_dgo(_name_in_dgo), unique_name(_unique_name){};
std::string containing_dgo;
std::string name_in_dgo;
std::string unique_name;
};
std::vector<OfflineTestSourceFile> find_source_files(const std::string& game_name,
const std::vector<std::string>& dgos,
const std::string& single_file);