corregit compile_spirv.cmake y la system_folder per a shaders
This commit is contained in:
@@ -57,6 +57,20 @@ Director::Director(std::vector<std::string> const& args) {
|
||||
createSystemFolder("jailgames");
|
||||
createSystemFolder("jailgames/jaildoctors_dilemma");
|
||||
|
||||
// Crea el subdirectorio shaders/ dentro de system_folder_ sin modificar system_folder_
|
||||
{
|
||||
std::string shaders_dir = system_folder_ + "/shaders";
|
||||
struct stat st = {.st_dev = 0};
|
||||
if (stat(shaders_dir.c_str(), &st) == -1) {
|
||||
errno = 0;
|
||||
#ifdef _WIN32
|
||||
mkdir(shaders_dir.c_str());
|
||||
#else
|
||||
mkdir(shaders_dir.c_str(), S_IRWXU);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
// Determinar el prefijo de ruta según la plataforma
|
||||
#ifdef MACOS_BUNDLE
|
||||
const std::string PREFIX = "/../Resources";
|
||||
|
||||
Reference in New Issue
Block a user