mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 15:33:38 +00:00
9 lines
284 B
C++
9 lines
284 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) : NULL;
|
|
} |