mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 21:45:32 +00:00
Make sure that we specify the -l flag before trying to write to a log file.
This commit is contained in:
parent
63a235958d
commit
f3c37defcc
|
@ -230,7 +230,11 @@ int main(int argc, char **argv) {
|
||||||
settings.iQuality = quality;
|
settings.iQuality = quality;
|
||||||
settings.iNumCompressions = numCompressions;
|
settings.iNumCompressions = numCompressions;
|
||||||
settings.iJobSize = numJobs;
|
settings.iJobSize = numJobs;
|
||||||
settings.logStream = &logStream;
|
if(bSaveLog) {
|
||||||
|
settings.logStream = &logStream;
|
||||||
|
} else {
|
||||||
|
settings.logStream = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
CompressedImage *ci = CompressImage(&img, settings);
|
CompressedImage *ci = CompressImage(&img, settings);
|
||||||
if(NULL == ci) {
|
if(NULL == ci) {
|
||||||
|
|
Loading…
Reference in a new issue