blob: 9c41ecb0015d51335b46b0472d23b2a844d7d12f (
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;
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; }
|