summaryrefslogtreecommitdiff
path: root/lib/resource.h
blob: 37dd6571c41f4e5afc5d1edc5202c698dc01c838 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <filesystem>

class Resource {
public:
	static void setBasePath(std::filesystem::path);
	static std::filesystem::path mapPath(const std::filesystem::path &);
};

#if defined(RESDIR) && defined(BOOST_TEST_MODULE)
class SetResourcePath {
public:
	SetResourcePath()
	{
		Resource::setBasePath(RESDIR);
	}
};
BOOST_GLOBAL_FIXTURE(SetResourcePath);
#endif