diff options
| author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-02 15:57:59 +0200 | 
|---|---|---|
| committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-02 15:57:59 +0200 | 
| commit | de2c2593f9f272c5151d74af4ff846fdd70a9bc7 (patch) | |
| tree | 4001a60809734a60b75e39da5c994d9381b6efe2 /src/crepe/api/Resource.cpp | |
| parent | 41bd601ef62d967c80cc0591eaf6b4290baae425 (diff) | |
 working resource manager and textures and sprite to new standard
Diffstat (limited to 'src/crepe/api/Resource.cpp')
| -rw-r--r-- | src/crepe/api/Resource.cpp | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/src/crepe/api/Resource.cpp b/src/crepe/api/Resource.cpp index 1a647ce..f7f2516 100644 --- a/src/crepe/api/Resource.cpp +++ b/src/crepe/api/Resource.cpp @@ -1,11 +1,15 @@  #include <filesystem> +#include <iostream> +#include <iterator>  #include "Resource.h" +#include "util/log.h"  using namespace crepe::api;  Resource::Resource(const std::string & src) { -	this->src = std::filesystem::canonical(src); +	dbg_trace(); +	this->src = std::filesystem::path(src);  	this->file = std::ifstream(this->src, std::ios::in | std::ios::binary);  } |