mirror of
https://github.com/Llennpie/Saturn.git
synced 2025-01-22 15:43:05 -05:00
Create local res/gfx if not present
This commit is contained in:
parent
708d1eceea
commit
b1dcf5ef14
1 changed files with 5 additions and 0 deletions
|
@ -62,6 +62,11 @@ Loads metadata from a model folder's "model.json".
|
|||
Model LoadModelData(std::string folderPath) {
|
||||
Model model;
|
||||
|
||||
// Create "res/gfx" if it doesn't exist already
|
||||
// This is required for expression loading
|
||||
fs::create_directory("res");
|
||||
fs::create_directory("res/gfx");
|
||||
|
||||
if (fs::is_directory(folderPath)) {
|
||||
// Model folder exists
|
||||
model.FolderName = fs::path(folderPath).filename().u8string();
|
||||
|
|
Loading…
Reference in a new issue