summaryrefslogtreecommitdiff
path: root/lib/resource.cpp
blob: b9aa4fa1b338422b2053eac37eb02118769821de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "resource.h"
#include <utility>

std::filesystem::path base {std::filesystem::current_path() / "res"};

void
Resource::setBasePath(std::filesystem::path newbase)
{
	base = std::move(newbase);
}

std::filesystem::path
Resource::mapPath(const std::filesystem::path & rel)
{
	return std::filesystem::canonical(base / rel);
}