1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

10 lines
375 B
C++
Raw Permalink Normal View History

2024-06-03 21:55:09 -03:00
#include "xna/content/manager.hpp"
2024-06-02 20:36:41 -03:00
namespace xna {
2024-12-13 17:28:46 -03:00
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);
2024-06-02 20:36:41 -03:00
2024-12-13 17:28:46 -03:00
return reinterpret_pointer_cast<csharp::Stream>(stream);
2024-06-02 20:36:41 -03:00
}
}