mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-26 23:33:01 +00:00
Add support for GOG version
This commit is contained in:
parent
d6df4640ab
commit
4325dcad86
|
@ -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") {
|
||||||
|
|
Loading…
Reference in a new issue