Release v1.4.0
golxzn::resman
is a fully static library which requires C++20. To link it to your project, follow those steps:
1. Clone this repository:
git clone https://github.com/golxzn/resman.git
2. Add subdirectory:
add_subdirectory(resman)
target_link_libraries(YourProjectName PUBLIC golxzn::resman)
3. Include header & initialize:
#include <golxzn/resman.hpp>
class ColorTheme {
public:
explicit YourClass(std::string &&data) ...
};
int main() {
golxzn::resman::initialize("your_app_name");
ThemeManager thememan;
for (auto &&entry : golxzn::resman::entries("res://themes")) {
thememan.emplace(entry, golxzn::resman::load_shared_text<ColorTheme>(entry));
}
}