diff options
Diffstat (limited to 'Minecraft.World/InputStream.cpp')
| -rw-r--r-- | Minecraft.World/InputStream.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Minecraft.World/InputStream.cpp b/Minecraft.World/InputStream.cpp index dbec82cc..e325db8a 100644 --- a/Minecraft.World/InputStream.cpp +++ b/Minecraft.World/InputStream.cpp @@ -5,5 +5,7 @@ InputStream *InputStream::getResourceAsStream(const wstring &fileName) { - return new FileInputStream( File( fileName ) ); + File file( fileName ); + + return file.exists() ? new FileInputStream( file ) : NULL; }
\ No newline at end of file |
