XProger / OpenLara

Classic Tomb Raider open-source engine
http://xproger.info/projects/OpenLara/
BSD 2-Clause "Simplified" License
4.71k stars 364 forks source link

Fixed Linux error where files could not be loaded #484

Closed rafaegont1 closed 8 months ago

rafaegont1 commented 10 months ago

The changes made in d2e363d broke the line 2131 of utils.h file: return (name != NULL). It was comparing the literal address of const char* gEmpty = "" with NULL, causing the function static bool exists(const char *name) to always return true.

This problem where files could not be open is referred in issue #470.