Skip to content

Commit

Permalink
Make Appearance and Hide modifiers save and load properly
Browse files Browse the repository at this point in the history
for the hidden + dark boys
  • Loading branch information
poco0317 committed Feb 15, 2019
1 parent e18ab13 commit 7f0054f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/PlayerOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,16 @@ PlayerOptions::GetSavedPrefsString() const
SAVE(m_bMuteOnError);
SAVE(m_bPractice);
SAVE(m_sNoteSkin);
SAVE(m_fAppearances[APPEARANCE_HIDDEN]);
SAVE(m_fAppearances[APPEARANCE_HIDDEN_OFFSET]);
SAVE(m_fAppearances[APPEARANCE_SUDDEN]);
SAVE(m_fAppearances[APPEARANCE_SUDDEN_OFFSET]);
SAVE(m_fAppearances[APPEARANCE_STEALTH]);
SAVE(m_fAppearances[APPEARANCE_BLINK]);
SAVE(m_fAppearances[APPEARANCE_RANDOMVANISH]);
SAVE(m_fDark);
SAVE(m_fBlind);
SAVE(m_fCover);
#undef SAVE
return po_prefs.GetString();
}
Expand Down Expand Up @@ -1251,6 +1261,17 @@ PlayerOptions::ResetPrefs(ResetPrefsType type)
CPY(m_bTransforms[TRANSFORM_NOSTRETCH]);
CPY(m_bTransforms[TRANSFORM_NOLIFTS]);
CPY(m_bTransforms[TRANSFORM_NOFAKES]);

CPY(m_fAppearances[APPEARANCE_HIDDEN]);
CPY(m_fAppearances[APPEARANCE_HIDDEN_OFFSET]);
CPY(m_fAppearances[APPEARANCE_SUDDEN]);
CPY(m_fAppearances[APPEARANCE_SUDDEN_OFFSET]);
CPY(m_fAppearances[APPEARANCE_STEALTH]);
CPY(m_fAppearances[APPEARANCE_BLINK]);
CPY(m_fAppearances[APPEARANCE_RANDOMVANISH]);
CPY(m_fDark);
CPY(m_fBlind);
CPY(m_fCover);
// Don't clear this.
// CPY( m_sNoteSkin );
#undef CPY
Expand Down

0 comments on commit 7f0054f

Please sign in to comment.