Ya crea la carpeta de sistema en Linux

This commit is contained in:
2022-11-18 09:48:46 +01:00
parent 896dd9daef
commit 85d6c48f42
5 changed files with 108 additions and 18 deletions

View File

@@ -10,10 +10,10 @@ Asset::Asset(std::string executablePath)
}
// Añade un elemento a la lista
void Asset::add(std::string file, enum assetType type, bool required)
void Asset::add(std::string file, enum assetType type, bool required, bool absolute)
{
item_t temp;
temp.file = executablePath + file;
temp.file = absolute ? file : executablePath + file;
temp.type = type;
temp.required = required;
fileList.push_back(temp);