mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-06-21 02:11:15 +00:00
switch barebones although not our focus rn
This commit is contained in:
parent
649c1784c5
commit
1cb6b1bf07
|
@ -396,4 +396,9 @@ impl EngineConstants {
|
|||
self.font_scale = 0.5;
|
||||
self.font_space_offset = 2.0;
|
||||
}
|
||||
|
||||
|
||||
pub fn apply_csplus_nx_patches(&mut self) {
|
||||
info!("Applying Switch-specific Cave Story+ constants patches...");
|
||||
}
|
||||
}
|
||||
|
|
11
src/main.rs
11
src/main.rs
|
@ -150,12 +150,17 @@ impl Game {
|
|||
let mut base_path = "/";
|
||||
|
||||
if filesystem::exists(ctx, "/base/Nicalis.bmp") {
|
||||
info!("Cave Story+ data files detected.");
|
||||
info!("Cave Story+ (PC) data files detected.");
|
||||
constants.apply_csplus_patches();
|
||||
base_path = "/base/";
|
||||
} else if filesystem::exists(ctx, "/mrmap.bin") || filesystem::exists(ctx, "/Font/font") {
|
||||
} else if filesystem::exists(ctx, "/base/lighting.tbl") {
|
||||
info!("Cave Story+ (Switch) data files detected.");
|
||||
constants.apply_csplus_patches();
|
||||
constants.apply_csplus_nx_patches();
|
||||
base_path = "/base/";
|
||||
} else if filesystem::exists(ctx, "/mrmap.bin") {
|
||||
info!("CSE2E data files detected.");
|
||||
} else if filesystem::exists(ctx, "/stage.dat") || filesystem::exists(ctx, "/sprites.sif") {
|
||||
} else if filesystem::exists(ctx, "/stage.dat") {
|
||||
info!("NXEngine-evo data files detected.");
|
||||
}
|
||||
let font = BMFontRenderer::load(base_path, &constants.font_path, ctx)?;
|
||||
|
|
Loading…
Reference in a new issue