4jcraft/Minecraft.World/IO/Streams/InputStream.cpp
MatthewBeshay dfb0e3b03e refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
2026-03-30 16:25:52 +11:00

9 lines
287 B
C++

#include "../../Platform/stdafx.h"
#include "../Files/File.h"
#include "InputOutputStream.h"
#include "InputStream.h"
InputStream* InputStream::getResourceAsStream(const std::wstring& fileName) {
File file(fileName);
return file.exists() ? new FileInputStream(file) : nullptr;
}