corregit compile_spirv.cmake y la system_folder per a shaders

This commit is contained in:
2026-03-29 13:45:29 +02:00
parent 1bb2142d19
commit ad467847b9
8 changed files with 10479 additions and 897 deletions

View File

@@ -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";