mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
10 lines
375 B
C++
10 lines
375 B
C++
#include "xna/content/manager.hpp"
|
|
|
|
namespace xna {
|
|
std::shared_ptr<csharp::Stream> ContentManager::OpenStream(std::string const& assetName) const {
|
|
const auto filePath = rootDirectory + "\\" + assetName + contentExtension;
|
|
const auto stream = snew<csharp::FileStream>(filePath, csharp::FileMode::Open);
|
|
|
|
return reinterpret_pointer_cast<csharp::Stream>(stream);
|
|
}
|
|
} |