ComplexPlane / SMB2PracticeMod

Super Monkey Ball 2 Practice Mod
GNU General Public License v3.0
10 stars 5 forks source link

Enable freecam in replays #26

Closed ComplexPlane closed 11 months ago

ComplexPlane commented 11 months ago

@rehtropsmb is this fixed now?

rehtropsmb commented 11 months ago

I don't think you're able to toggle it in replays currently. Nambo's been able to use freecam in replays before, but I think that was when he was on a beta version leading up to the 1.0.0 release.

Would it be as simple as adding replay submodes to these enabled checks?

bool enabled() {
    bool correct_main_mode = mkb::main_mode == mkb::MD_GAME || mkb::main_mode == mkb::MD_ADV ||
                             mkb::main_mode == mkb::MD_MINI || mkb::main_mode == mkb::MD_AUTHOR;
    bool correct_sub_mode = mkb::sub_mode != mkb::SMD_GAME_SCENARIO_INIT &&
                            mkb::sub_mode != mkb::SMD_GAME_SCENARIO_MAIN &&
                            mkb::sub_mode != mkb::SMD_GAME_SCENARIO_RETURN &&
                            mkb::sub_mode != mkb::SMD_ADV_TITLE_INIT &&
                            mkb::sub_mode != mkb::SMD_ADV_TITLE_MAIN &&
                            mkb::sub_mode != mkb::SMD_ADV_TITLE_REINIT;
    return pref::get(pref::BoolPref::Freecam) && correct_main_mode && correct_sub_mode;
}
ComplexPlane commented 11 months ago

Yep