remove this stupid feature
This commit is contained in:
parent
c9e6dd7181
commit
9fd04ed47a
|
@ -319,7 +319,6 @@ pub struct EngineConstants {
|
|||
pub is_cs_plus: bool,
|
||||
pub is_switch: bool,
|
||||
pub is_demo: bool,
|
||||
pub crime_mode: bool,
|
||||
pub supports_og_textures: bool,
|
||||
pub game: GameConsts,
|
||||
pub player: PlayerConsts,
|
||||
|
@ -353,7 +352,6 @@ impl Clone for EngineConstants {
|
|||
is_cs_plus: self.is_cs_plus,
|
||||
is_switch: self.is_switch,
|
||||
is_demo: self.is_demo,
|
||||
crime_mode: self.crime_mode,
|
||||
supports_og_textures: self.supports_og_textures,
|
||||
game: self.game,
|
||||
player: self.player,
|
||||
|
@ -389,7 +387,6 @@ impl EngineConstants {
|
|||
is_cs_plus: false,
|
||||
is_switch: false,
|
||||
is_demo: false,
|
||||
crime_mode: false,
|
||||
supports_og_textures: false,
|
||||
game: GameConsts {
|
||||
intro_stage: 72,
|
||||
|
|
|
@ -79,7 +79,7 @@ impl PlayerCountMenu {
|
|||
|
||||
self.skin_menu.selected = SkinMenuEntry::Skin;
|
||||
|
||||
if !self.on_title && !state.constants.crime_mode && state.constants.is_cs_plus {
|
||||
if !self.on_title && state.constants.is_cs_plus {
|
||||
self.current_menu = CurrentMenu::PlayerSkin;
|
||||
}
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@ impl SettingsMenu {
|
|||
);
|
||||
|
||||
// NS version uses two different maps, therefore we can't dynamically switch between graphics presets.
|
||||
if !state.constants.crime_mode && state.constants.supports_og_textures {
|
||||
if state.constants.supports_og_textures {
|
||||
if !state.constants.is_switch || self.on_title {
|
||||
self.graphics.push_entry(
|
||||
GraphicsMenuEntry::OriginalTextures,
|
||||
|
|
|
@ -487,19 +487,6 @@ impl Scene for TitleScene {
|
|||
}
|
||||
}
|
||||
|
||||
if state.constants.crime_mode {
|
||||
state.font.draw_colored_text_with_shadow_scaled(
|
||||
"* TAS MODE *".chars(),
|
||||
5.0,
|
||||
5.0,
|
||||
1.0,
|
||||
(0xff, 0, 0, 0xff),
|
||||
&state.constants,
|
||||
&mut state.texture_set,
|
||||
ctx,
|
||||
)?;
|
||||
}
|
||||
|
||||
self.nikumaru_rec.draw(state, ctx, &self.frame)?;
|
||||
|
||||
match self.current_menu {
|
||||
|
|
|
@ -365,29 +365,13 @@ impl SharedGameState {
|
|||
log::info!("NXEngine-evo data files detected.");
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
if let Ok(preload) = std::env::var("LIBTAS_LIBRARY_PATH") {
|
||||
if preload != "" {
|
||||
constants.crime_mode = true;
|
||||
}
|
||||
for soundtrack in constants.soundtracks.iter_mut() {
|
||||
if filesystem::exists(ctx, &soundtrack.path) {
|
||||
log::info!("Enabling soundtrack {} from {}.", soundtrack.name, soundtrack.path);
|
||||
soundtrack.available = true;
|
||||
}
|
||||
}
|
||||
|
||||
if !constants.crime_mode {
|
||||
for soundtrack in constants.soundtracks.iter_mut() {
|
||||
if filesystem::exists(ctx, &soundtrack.path) {
|
||||
log::info!("Enabling soundtrack {} from {}.", soundtrack.name, soundtrack.path);
|
||||
soundtrack.available = true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// easter egg
|
||||
settings.soundtrack = "Organya".to_owned();
|
||||
settings.original_textures = true;
|
||||
settings.seasonal_textures = false;
|
||||
}
|
||||
|
||||
let season = Season::current();
|
||||
constants.rebuild_path_list(None, season, &settings);
|
||||
|
||||
|
@ -429,10 +413,7 @@ impl SharedGameState {
|
|||
#[cfg(feature = "hooks")]
|
||||
init_hooks();
|
||||
|
||||
let seed = chrono::Local::now().timestamp() as i32
|
||||
+ ((SharedGameState::save_game as usize >> 7)
|
||||
^ (SharedGameState::save_game as usize >> 13)
|
||||
^ (SharedGameState::new as usize >> 23)) as i32;
|
||||
let seed = chrono::Local::now().timestamp() as i32;
|
||||
|
||||
Ok(SharedGameState {
|
||||
control_flags: ControlFlags(0),
|
||||
|
|
Loading…
Reference in New Issue