TU19: merge Minecraft.World/IO

This commit is contained in:
MatthewBeshay
2026-03-22 10:05:26 +11:00
parent 11a0440998
commit 993617025b
8 changed files with 76 additions and 47 deletions

View File

@@ -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;
}