mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
refactor
This commit is contained in:
parent
61b73bfabd
commit
3e01a399f9
8 changed files with 43 additions and 52 deletions
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
ContentPack ContentPack::createCore(const EnginePaths* paths) {
|
||||
ContentPack ContentPack::createCore(const EnginePaths& paths) {
|
||||
return ContentPack {
|
||||
"core", "Core", ENGINE_VERSION_STRING, "", "", paths->getResourcesFolder(), {}
|
||||
"core", "Core", ENGINE_VERSION_STRING, "", "", paths.getResourcesFolder(), {}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ struct ContentPack {
|
|||
const std::string& name
|
||||
);
|
||||
|
||||
static ContentPack createCore(const EnginePaths*);
|
||||
static ContentPack createCore(const EnginePaths&);
|
||||
|
||||
static inline fs::path getFolderFor(ContentType type) {
|
||||
switch (type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue