mirror of
https://github.com/zeldaret/tmc
synced 2026-06-30 20:01:58 -04:00
Rewrite asset processor in C++
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include "aif.h"
|
||||
#include "util.h"
|
||||
|
||||
void AifAsset::convertToHumanReadable(const std::vector<char>& baserom) {
|
||||
(void)baserom;
|
||||
|
||||
std::filesystem::path toolsPath = "tools";
|
||||
std::vector<std::string> cmd;
|
||||
cmd.push_back(toolsPath / "aif2pcm" / "aif2pcm");
|
||||
cmd.push_back(this->path);
|
||||
std::filesystem::path aifPath = this->path;
|
||||
aifPath.replace_extension(".aif");
|
||||
cmd.push_back(aifPath);
|
||||
check_call(cmd);
|
||||
}
|
||||
Reference in New Issue
Block a user