mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-21 16:55:32 +00:00
10 lines
311 B
C++
10 lines
311 B
C++
#include <string>
|
|
|
|
#include "java/File.h"
|
|
#include "java/InputOutputStream/InputStream.h"
|
|
#include "java/InputOutputStream/FileInputStream.h"
|
|
|
|
InputStream* InputStream::getResourceAsStream(const std::wstring& fileName) {
|
|
File file(fileName);
|
|
return file.exists() ? new FileInputStream(file) : nullptr;
|
|
} |