mirror of
https://github.com/zeldaret/tmc
synced 2026-08-29 01:02:05 -04:00
cleaned asset_processor to build without warnings
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
#include "util.h"
|
||||
|
||||
std::filesystem::path PaletteAsset::generateAssetPath() {
|
||||
std::filesystem::path path = this->path;
|
||||
return path.replace_extension(".pal");
|
||||
std::filesystem::path asset_path = path;
|
||||
return asset_path.replace_extension(".pal");
|
||||
}
|
||||
|
||||
void PaletteAsset::convertToHumanReadable(const std::vector<char>& baserom) {
|
||||
@@ -11,17 +11,17 @@ void PaletteAsset::convertToHumanReadable(const std::vector<char>& baserom) {
|
||||
|
||||
std::filesystem::path toolsPath = "tools";
|
||||
std::vector<std::string> cmd;
|
||||
cmd.push_back(toolsPath / "gbagfx" / "gbagfx");
|
||||
cmd.push_back(this->path);
|
||||
cmd.push_back(this->assetPath);
|
||||
cmd.push_back(toolsPath / "bin" / "gbagfx");
|
||||
cmd.push_back(path);
|
||||
cmd.push_back(assetPath);
|
||||
check_call(cmd);
|
||||
}
|
||||
|
||||
void PaletteAsset::buildToBinary() {
|
||||
std::filesystem::path toolsPath = "tools";
|
||||
std::vector<std::string> cmd;
|
||||
cmd.push_back(toolsPath / "gbagfx" / "gbagfx");
|
||||
cmd.push_back(this->assetPath);
|
||||
cmd.push_back(this->path);
|
||||
cmd.push_back(toolsPath / "bin" / "gbagfx");
|
||||
cmd.push_back(assetPath);
|
||||
cmd.push_back(path);
|
||||
check_call(cmd);
|
||||
}
|
||||
Reference in New Issue
Block a user