mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
refactor: use new line character instead of std::endl
This commit is contained in:
@ -49,7 +49,7 @@ void AssetDumperRawFile::DumpAsset(AssetDumpingContext& context, XAssetInfo<RawF
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
std::cerr << "Inflate failed when attempting to dump rawfile " << rawFile->name << std::endl;
|
||||
std::cerr << "Inflate failed when attempting to dump rawfile " << rawFile->name << "\n";
|
||||
inflateEnd(&zs);
|
||||
return;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ void AssetDumperRawFile::DumpGsc(AssetDumpingContext& context, XAssetInfo<RawFil
|
||||
|
||||
if (rawFile->len <= 8)
|
||||
{
|
||||
std::cout << "Invalid len of gsc file \"" << rawFile->name << "\"" << std::endl;
|
||||
std::cout << "Invalid len of gsc file \"" << rawFile->name << "\"\n";
|
||||
return;
|
||||
}
|
||||
|
||||
@ -25,13 +25,13 @@ void AssetDumperRawFile::DumpGsc(AssetDumpingContext& context, XAssetInfo<RawFil
|
||||
|
||||
if (inLen > static_cast<unsigned>(rawFile->len - 8) + 1)
|
||||
{
|
||||
std::cout << "Invalid compression of gsc file \"" << rawFile->name << "\": " << inLen << std::endl;
|
||||
std::cout << "Invalid compression of gsc file \"" << rawFile->name << "\": " << inLen << "\n";
|
||||
return;
|
||||
}
|
||||
|
||||
if (outLen > GSC_MAX_SIZE)
|
||||
{
|
||||
std::cout << "Invalid size of gsc file \"" << rawFile->name << "\": " << outLen << std::endl;
|
||||
std::cout << "Invalid size of gsc file \"" << rawFile->name << "\": " << outLen << "\n";
|
||||
return;
|
||||
}
|
||||
|
||||
@ -64,7 +64,7 @@ void AssetDumperRawFile::DumpGsc(AssetDumpingContext& context, XAssetInfo<RawFil
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
std::cout << "Inflate failed for dumping gsc file \"" << rawFile->name << "\"" << std::endl;
|
||||
std::cout << "Inflate failed for dumping gsc file \"" << rawFile->name << "\"\n";
|
||||
inflateEnd(&zs);
|
||||
return;
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ void AssetDumperRawFile::DumpAnimtree(AssetDumpingContext& context, XAssetInfo<R
|
||||
|
||||
if (rawFile->len <= 4)
|
||||
{
|
||||
std::cerr << "Invalid len of animtree file \"" << rawFile->name << "\"" << std::endl;
|
||||
std::cerr << "Invalid len of animtree file \"" << rawFile->name << "\"\n";
|
||||
return;
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ void AssetDumperRawFile::DumpAnimtree(AssetDumpingContext& context, XAssetInfo<R
|
||||
|
||||
if (outLen > ANIMTREE_MAX_SIZE)
|
||||
{
|
||||
std::cerr << "Invalid size of animtree file \"" << rawFile->name << "\": " << outLen << std::endl;
|
||||
std::cerr << "Invalid size of animtree file \"" << rawFile->name << "\": " << outLen << "\n";
|
||||
return;
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ void AssetDumperRawFile::DumpAnimtree(AssetDumpingContext& context, XAssetInfo<R
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
std::cerr << "Inflate failed for dumping animtree file \"" << rawFile->name << "\"" << std::endl;
|
||||
std::cerr << "Inflate failed for dumping animtree file \"" << rawFile->name << "\"\n";
|
||||
inflateEnd(&zs);
|
||||
return;
|
||||
}
|
||||
|
@ -638,7 +638,7 @@ class AssetDumperSndBank::Internal
|
||||
}
|
||||
|
||||
duckObj["values"] = values;
|
||||
*duckFile << duckObj.dump(4) << std::endl;
|
||||
*duckFile << duckObj.dump(4) << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ class AssetDumperSndDriverGlobals::Internal
|
||||
auto outputFile = this->m_context.OpenAssetFile(filename);
|
||||
if (outputFile == nullptr)
|
||||
{
|
||||
std::cout << "Failed to open sound driver globals output file for: \"" << filename << "\"" << std::endl;
|
||||
std::cout << "Failed to open sound driver globals output file for: \"" << filename << "\"\n";
|
||||
}
|
||||
|
||||
return outputFile;
|
||||
|
Reference in New Issue
Block a user