2020-11-17 00:57:45 +00:00
|
|
|
#pragma once
|
2023-07-14 22:17:54 +00:00
|
|
|
#include <string>
|
|
|
|
#include <unordered_set>
|
2020-11-17 00:57:45 +00:00
|
|
|
|
2021-12-04 17:33:18 +00:00
|
|
|
#include "decompiler/data/TextureDB.h"
|
|
|
|
|
2021-01-07 01:04:15 +00:00
|
|
|
namespace decompiler {
|
2020-12-03 00:51:42 +00:00
|
|
|
struct ObjectFileData;
|
2020-11-17 00:57:45 +00:00
|
|
|
|
|
|
|
struct TPageResultStats {
|
|
|
|
int total_textures = 0;
|
|
|
|
int successful_textures = 0;
|
2021-11-14 01:44:17 +00:00
|
|
|
int num_px = 0;
|
2020-11-17 00:57:45 +00:00
|
|
|
};
|
|
|
|
|
2022-06-30 03:32:46 +00:00
|
|
|
TPageResultStats process_tpage(ObjectFileData& data,
|
|
|
|
TextureDB& texture_db,
|
2023-07-14 22:17:54 +00:00
|
|
|
const fs::path& output_path,
|
2023-08-13 20:06:59 +00:00
|
|
|
const std::unordered_set<std::string>& animated_textures,
|
|
|
|
bool save_pngs);
|
2022-07-06 00:38:13 +00:00
|
|
|
} // namespace decompiler
|