removed some unnecessary vectors

This commit is contained in:
Henny022p
2021-11-30 04:28:49 +01:00
parent c498ec163e
commit 029ce60b3d
6 changed files with 51 additions and 62 deletions
+4 -2
View File
@@ -189,7 +189,8 @@ int main(int argc, char** argv) {
case CONVERT: {
std::unique_ptr<BaseAsset> assetHandler = getAssetHandlerByType(path, asset, currentOffset);
if (!std::filesystem::exists(assetHandler->getBuildPath())) {
std::cerr << "Error: Extracted binary file " << assetHandler->getBuildPath() << " does not exist. Run `make` first." << std::endl;
std::cerr << "Error: Extracted binary file " << assetHandler->getBuildPath()
<< " does not exist. Run `make` first." << std::endl;
std::exit(1);
}
if (shouldConvertAsset(assetHandler)) {
@@ -203,7 +204,8 @@ int main(int argc, char** argv) {
case BUILD: {
std::unique_ptr<BaseAsset> assetHandler = getAssetHandlerByType(path, asset, currentOffset);
if (!std::filesystem::exists(assetHandler->getAssetPath())) {
std::cerr << "Error: Extracted asset file " << assetHandler->getAssetPath() << " does not exist. Run `make extractassets` first." << std::endl;
std::cerr << "Error: Extracted asset file " << assetHandler->getAssetPath()
<< " does not exist. Run `make extractassets` first." << std::endl;
std::exit(1);
}
if (shouldBuildAsset(assetHandler)) {