Ember
Loading...
Searching...
No Matches
ResourcePath.h
Go to the documentation of this file.
1
11
12#ifndef EMBERFORGE_UTILS_RESOURCEPATH_H
13#define EMBERFORGE_UTILS_RESOURCEPATH_H
14
15#include <wx/string.h>
16
17namespace EmberForge {
18
28 public:
34 static wxString Get(const wxString &relativePath);
35
41 static wxString GetDir(const wxString &relativeDir);
42
47 static wxString GetResourcesDir();
48
54 static bool Exists(const wxString &relativePath);
55
61 static void Refresh();
62
63 private:
64 ResourcePath() = default;
65
66 static wxString FindResourcesDir();
67 static wxString &GetCachedDir();
68 static bool s_initialized;
69};
70
71} // namespace EmberForge
72
73#endif // EMBERFORGE_UTILS_RESOURCEPATH_H
static wxString GetResourcesDir()
Get the base resources directory.
static wxString FindResourcesDir()
static wxString & GetCachedDir()
static wxString Get(const wxString &relativePath)
Get the full path to a resource file.
static wxString GetDir(const wxString &relativeDir)
Get the full path to a resource directory.
static void Refresh()
Force re-detection of resources directory.
static bool Exists(const wxString &relativePath)
Check if a resource exists.