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