blob: 8a2a11cfa17c92cd90717c57e4734360c9024687 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <filesystem>
#include "Asset.h"
using namespace crepe;
Asset::Asset(const std::string & src) {
// FIXME: restore this
// this->src = std::filesystem::canonical(src);
this->src = src;
this->file = std::ifstream(this->src, std::ios::in | std::ios::binary);
}
const std::istream & Asset::read() { return this->file; }
const char * Asset::canonical() { return this->src.c_str(); }
|