From 4325dcad869a3c663d7af0a006a20d82a38fb56e Mon Sep 17 00:00:00 2001 From: Alula <6276139+alula@users.noreply.github.com> Date: Sat, 22 Jan 2022 02:19:18 +0100 Subject: [PATCH] Add support for GOG version --- src/shared_game_state.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/shared_game_state.rs b/src/shared_game_state.rs index 78f0413..98b16aa 100644 --- a/src/shared_game_state.rs +++ b/src/shared_game_state.rs @@ -159,16 +159,16 @@ impl SharedGameState { let mut base_path = "/"; let settings = Settings::load(ctx)?; - if filesystem::exists(ctx, "/base/Nicalis.bmp") { - info!("Cave Story+ (PC) data files detected."); - constants.apply_csplus_patches(&sound_manager); - base_path = "/base/"; - } else if filesystem::exists(ctx, "/base/lighting.tbl") { + if filesystem::exists(ctx, "/base/lighting.tbl") { info!("Cave Story+ (Switch) data files detected."); ctx.size_hint = (854, 480); constants.apply_csplus_patches(&sound_manager); constants.apply_csplus_nx_patches(); base_path = "/base/"; + } else if filesystem::exists(ctx, "/base/Nicalis.bmp") || filesystem::exists(ctx, "/base/Nicalis.png") { + info!("Cave Story+ (PC) data files detected."); + constants.apply_csplus_patches(&sound_manager); + base_path = "/base/"; } else if filesystem::exists(ctx, "/mrmap.bin") { info!("CSE2E data files detected."); } else if filesystem::exists(ctx, "/stage.dat") {