summaryrefslogtreecommitdiff
path: root/lib/resource.h
blob: 9af36320d550934aa03957160ba6f8260c614278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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