From 11c88cd9b8a3c08d4f2000c4cfa54f8e39fe7ab8 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 18 Nov 2024 21:15:07 +0100 Subject: [PATCH] changed detecting native BD level info by file type (not game engine) --- src/screens.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screens.c b/src/screens.c index 9f0b3659..ed511a59 100644 --- a/src/screens.c +++ b/src/screens.c @@ -1119,7 +1119,7 @@ static char *getLevelSetInfoBuffer(boolean from_info_menu) { static char *buffer = NULL; - if (level.game_engine_type != GAME_ENGINE_TYPE_BD || + if (level.file_info.type != LEVEL_FILE_TYPE_BD || level.native_bd_level->caveset == NULL) return NULL; @@ -1164,7 +1164,7 @@ static char *getLevelInfoBuffer(boolean from_info_menu) { static char *buffer = NULL; - if (level.game_engine_type != GAME_ENGINE_TYPE_BD || + if (level.file_info.type != LEVEL_FILE_TYPE_BD || level.native_bd_level->cave == NULL) return NULL; @@ -1210,7 +1210,7 @@ static char *getLevelInfoBuffer(boolean from_info_menu) static char *getLevelStoryBuffer(void) { - if (level.game_engine_type != GAME_ENGINE_TYPE_BD || + if (level.file_info.type != LEVEL_FILE_TYPE_BD || level.native_bd_level->cave == NULL) return NULL; -- 2.34.1