Changed: Tga2dds tool no longer complains on every file that doesn't have _usercolor.
This commit is contained in:
parent
0427edb31e
commit
be1afc9e73
1 changed files with 5 additions and 3 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "nel/misc/file.h"
|
||||
#include "nel/misc/bitmap.h"
|
||||
#include "nel/misc/file.h"
|
||||
#include "nel/misc/path.h"
|
||||
#include "nel/misc/debug.h"
|
||||
#include <math.h>
|
||||
|
||||
|
@ -352,6 +352,8 @@ void dividSize (CBitmap &bitmap)
|
|||
// ***************************************************************************
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
CApplicationContext applicationContext;
|
||||
|
||||
uint8 algo;
|
||||
|
||||
// Parse Command Line.
|
||||
|
@ -495,9 +497,9 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
|
||||
// Reading second Tga for user color
|
||||
// Reading second Tga for user color, don't complain if _usercolor is missing
|
||||
NLMISC::CIFile input2;
|
||||
if (input2.open(userColorFileName))
|
||||
if (CPath::exists(userColorFileName) && input2.open(userColorFileName))
|
||||
{
|
||||
picTga2.load(input2);
|
||||
uint32 height2 = picTga2.getHeight();
|
||||
|
|
Loading…
Reference in a new issue