Add support for GOG version

This commit is contained in:
Alula 2022-01-22 02:19:18 +01:00
parent d6df4640ab
commit 4325dcad86
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
1 changed files with 5 additions and 5 deletions

View File

@ -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") {