Documented unknown_080420 as screen_asset

This commit is contained in:
David Benepe
2021-07-01 13:14:58 -05:00
parent b7856ae7c9
commit 92a5fa8606
14 changed files with 173 additions and 211 deletions
+8 -4
View File
@@ -118,6 +118,10 @@ void ExtractConfig::extract(ROM& rom, json::JSON& assetsJson) {
json::JSON section = codeSections[i];
json::JSON files = section["files"];
std::string folder = this->outDirectory + "/" + section["folder"].ToString();
if(!fs::is_directory(folder)) {
fs::create_directories(folder);
}
std::string type = section["type"].ToString();
int numFiles = files.length();
@@ -166,6 +170,10 @@ void ExtractConfig::extract(ROM& rom, json::JSON& assetsJson) {
std::string folder = this->outDirectory + "/" + section["folder"].ToString();
std::string type = section["type"].ToString();
if(!fs::is_directory(folder)) {
fs::create_directories(folder);
}
json::JSON outputAsset = json::Object();
outputAsset["type"] = type;
@@ -230,10 +238,6 @@ void ExtractConfig::extract(ROM& rom, json::JSON& assetsJson) {
std::string filename = extractions[i].filename;
std::vector<uint8_t> data = extractions[i].data;
pool.enqueue([&rom, type, folder, filename, data] {
if(!fs::is_directory(folder)) {
fs::create_directories(folder);
}
std::string outFilepath = folder + "/" + filename;
if(is_binary_type(type)) {