mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-30 17:54:14 +01:00
Don't crash when you can't open a file that doesn't exist
This commit is contained in:
parent
0c25135555
commit
6f82ab8941
@ -71,7 +71,6 @@ int main(int argc, char **argv) {
|
||||
|
||||
ImageFile imgf (argv[1]);
|
||||
if(!imgf.Load()) {
|
||||
fprintf(stderr, "Error loading file: %s\n", argv[1]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,9 @@ public:
|
||||
}
|
||||
|
||||
~FileStreamImpl() {
|
||||
fclose(m_FilePtr);
|
||||
if (0 != m_FilePtr) {
|
||||
fclose(m_FilePtr);
|
||||
}
|
||||
}
|
||||
|
||||
void IncreaseReferenceCount() { m_ReferenceCount++; }
|
||||
|
Loading…
Reference in New Issue
Block a user