mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-27 19:24:22 +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,8 +95,10 @@ public:
|
||||
}
|
||||
|
||||
~FileStreamImpl() {
|
||||
if (0 != m_FilePtr) {
|
||||
fclose(m_FilePtr);
|
||||
}
|
||||
}
|
||||
|
||||
void IncreaseReferenceCount() { m_ReferenceCount++; }
|
||||
void DecreaseReferenceCount() { m_ReferenceCount--; }
|
||||
|
Loading…
Reference in New Issue
Block a user