8#ifndef MALENA_LOADERFUNCTIONS_H
9#define MALENA_LOADERFUNCTIONS_H
18 template <
typename Resource>
19 bool fileLoader(Resource& r,
const std::string& path) {
return r.loadFromFile(path);}
21 template <
typename Resource>
22 bool fileOpener(Resource& r,
const std::string& path){
return r.openFromFile(path);}
24 template <
typename Resource>
25 bool returnTrue(Resource& r,
const std::string& path){
return true;}
bool fileLoader(Resource &r, const std::string &path)
bool returnTrue(Resource &r, const std::string &path)
bool fileOpener(Resource &r, const std::string &path)