1
0
Fork 0
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:
Alula 2020-08-30 15:37:54 +02:00
parent 649c1784c5
commit 1cb6b1bf07
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA
2 changed files with 13 additions and 3 deletions

View file

@ -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...");
}
}

View file

@ -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)?;