mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Fixed empty files and otr generation
This commit is contained in:
+6
-2
@@ -48,10 +48,14 @@ void Companion::ProcessAssets() {
|
||||
{ "path", path },
|
||||
{ "offsets", data }
|
||||
};
|
||||
gFactories.at(extension)->process(&write, entry, this->gRomData);
|
||||
if(!gFactories.at(extension)->process(&write, entry, this->gRomData)){
|
||||
std::cout << "Failed to process " << asset << '\n';
|
||||
continue;
|
||||
}
|
||||
|
||||
auto buffer = write.ToVector();
|
||||
wrapper.CreateFile(path, buffer);
|
||||
// TODO: Change this that we all know its going to crash with other assets
|
||||
wrapper.CreateFile(path.substr(0, path.find_last_of('.')), buffer);
|
||||
write.Close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user