fix output appearing in stdout without DEBUG defined
This commit is contained in:
parent
a85526bfac
commit
06f8f88374
@ -431,7 +431,9 @@ std::vector<std::string> Client::DirectorySearch(std::string directory, std::str
|
||||
findFileHandle = _findfirst(fileMatch.c_str(), ¤tFile);
|
||||
if (findFileHandle == -1L)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
printf("Unable to open directory\n");
|
||||
#endif
|
||||
return std::vector<std::string>();
|
||||
}
|
||||
do
|
||||
|
@ -1097,7 +1097,9 @@ void GameSave::readPSv(char * data, int dataLength)
|
||||
}
|
||||
dataLength = i;
|
||||
|
||||
#ifdef DEBUG
|
||||
std::cout << "Parsing " << dataLength << " bytes of data, version " << ver << std::endl;
|
||||
#endif
|
||||
|
||||
if (dataLength < bw*bh)
|
||||
throw ParseException(ParseException::Corrupt, "Save data corrupt (missing data)");
|
||||
|
Reference in New Issue
Block a user