mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 06:13:07 +01:00
Improved reader/writer error handling.
This commit is contained in:
@@ -380,7 +380,7 @@ int main(int _argc, const char* _argv[])
|
||||
BX_UNUSED(sdf, edge);
|
||||
|
||||
bx::CrtFileReader reader;
|
||||
if (0 != bx::open(&reader, inputFileName) )
|
||||
if (!bx::open(&reader, inputFileName) )
|
||||
{
|
||||
help("Failed to open input file.");
|
||||
return EXIT_FAILURE;
|
||||
@@ -546,7 +546,7 @@ int main(int _argc, const char* _argv[])
|
||||
if (NULL != output)
|
||||
{
|
||||
bx::CrtFileWriter writer;
|
||||
if (0 == bx::open(&writer, outputFileName) )
|
||||
if (!bx::open(&writer, outputFileName) )
|
||||
{
|
||||
if (NULL != bx::stristr(outputFileName, ".ktx") )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user