mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-31 19:54:58 +00:00
TU19: merge Minecraft.World/IO
This commit is contained in:
@@ -4,5 +4,6 @@
|
||||
#include "InputStream.h"
|
||||
|
||||
InputStream* InputStream::getResourceAsStream(const std::wstring& fileName) {
|
||||
return new FileInputStream(File(fileName));
|
||||
File file(fileName);
|
||||
return file.exists() ? new FileInputStream(file) : NULL;
|
||||
}
|
||||
Reference in New Issue
Block a user