forked from jaildesigner-jailgames/jaildoctors_dilemma
Corregida la funcion para verificar si existen los ficheros de recursos
This commit is contained in:
@@ -114,7 +114,7 @@ bool Asset::checkFile(std::string path)
|
||||
|
||||
// Comprueba si existe el fichero
|
||||
const std::string filename = path.substr(path.find_last_of("\\/") + 1);
|
||||
SDL_RWops *file = SDL_RWFromFile(path.c_str(), "r+b");
|
||||
SDL_RWops *file = SDL_RWFromFile(path.c_str(), "rb");
|
||||
|
||||
if (file != nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user