mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-26 03:13:38 +00:00
9 lines
285 B
C++
9 lines
285 B
C++
#include "../../Header Files/stdafx.h"
|
|
#include "../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;
|
|
} |