1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-30 01:02:51 +00:00

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

View file

@ -159,16 +159,16 @@ impl SharedGameState {
let mut base_path = "/"; let mut base_path = "/";
let settings = Settings::load(ctx)?; let settings = Settings::load(ctx)?;
if filesystem::exists(ctx, "/base/Nicalis.bmp") { if filesystem::exists(ctx, "/base/lighting.tbl") {
info!("Cave Story+ (PC) data files detected.");
constants.apply_csplus_patches(&sound_manager);
base_path = "/base/";
} else if filesystem::exists(ctx, "/base/lighting.tbl") {
info!("Cave Story+ (Switch) data files detected."); info!("Cave Story+ (Switch) data files detected.");
ctx.size_hint = (854, 480); ctx.size_hint = (854, 480);
constants.apply_csplus_patches(&sound_manager); constants.apply_csplus_patches(&sound_manager);
constants.apply_csplus_nx_patches(); constants.apply_csplus_nx_patches();
base_path = "/base/"; 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") { } else if filesystem::exists(ctx, "/mrmap.bin") {
info!("CSE2E data files detected."); info!("CSE2E data files detected.");
} else if filesystem::exists(ctx, "/stage.dat") { } else if filesystem::exists(ctx, "/stage.dat") {