Update dynos_bin_read.cpp (#198)

Added an extra ".inc" to the room.inc.c check so things like "mushroom" don't get flagged as rooms
This commit is contained in:
Agent X 2022-09-19 22:36:10 -04:00 committed by GitHub
parent e308571a4f
commit 567e702e98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ void DynOS_Read_Source(GfxData *aGfxData, const SysPath &aFilename) {
} else if (_Buffer == "Ambient_t") {
_DataType = DATA_TYPE_AMBIENT_T;
} else if (_Buffer == "u8") {
_DataType = strstr(aFilename.c_str(), "room")
_DataType = strstr(aFilename.c_str(), "room.inc")
? DATA_TYPE_ROOMS
: DATA_TYPE_TEXTURE;
} else if (_Buffer == "Texture") {