Skip to content

Commit 02281e5

Browse files
committed
Remove access to some dead preferences
THIS FIXES THE GAME START BUG (i hope)
1 parent 4e6f2fc commit 02281e5

File tree

7 files changed

+7
-17
lines changed

7 files changed

+7
-17
lines changed

Themes/Til Death/Scripts/02 Branches.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ Branch = {
6565
end
6666
end,
6767
AfterTitleMenu = function()
68-
if PREFSMAN:GetPreference("ShowCaution") then
69-
return "ScreenCaution"
70-
else
71-
return Branch.StartGame()
72-
end
68+
return Branch.StartGame()
7369
end,
7470
StartGame = function()
7571
multiplayer = false

Themes/Til Death/metrics.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ LineInputOptions="gamecommand;screen,ScreenOptionsInputSub;name,InputOptions"
619619
Fallback="ScreenOptionsServiceChild"
620620
NextScreen="ScreenOptionsService"
621621
PrevScreen="ScreenOptionsService"
622-
LineNames="SongBGEnabled,EvalBGType,SongBGMouseEnabled,Particles,RateSort,HelpMenu,NPSWindow,MeasureLines,Visualizer"
622+
LineNames="SongBGEnabled,RateSort,HelpMenu,NPSWindow,MeasureLines,Visualizer"
623623
#LineDefaultScore="lua,DefaultScoreType()"
624624
LineTipType="lua,TipType()"
625625
LineSongBGEnabled="lua,SongBGEnabled()"

Themes/_fallback/Scripts/02 Branches.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ Branch = {
6363
end
6464
end,
6565
AfterTitleMenu = function()
66-
if PREFSMAN:GetPreference("ShowCaution") then
67-
return "ScreenCaution"
68-
else
69-
return Branch.StartGame()
70-
end
66+
return Branch.StartGame()
7167
end,
7268
StartGame = function()
7369
if SONGMAN:GetNumSongs() == 0 and SONGMAN:GetNumAdditionalSongs() == 0 then

Themes/_fallback/metrics.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,7 +2376,7 @@ LineOsuLifts="conf,LiftsOnOsuHolds"
23762376
Fallback="ScreenOptionsServiceChild"
23772377
NextScreen="ScreenOptionsDisplaySub"
23782378
PrevScreen="ScreenOptionsDisplaySub"
2379-
LineNames="1,2,3,4,NSA,NG,14,15,SB,17,19"
2379+
LineNames="1,2,3,4,NSA,NG,14,15,SB,19"
23802380
Line1="conf,Language"
23812381
Line2="conf,Announcer"
23822382
Line3="conf,Theme"
@@ -2395,10 +2395,11 @@ LineNG="conf,NoGlow"
23952395
Fallback="ScreenOptionsServiceChild"
23962396
NextScreen="ScreenOptionsDisplaySub"
23972397
PrevScreen="ScreenOptionsDisplaySub"
2398-
LineNames="1,6,8,9,10,11,12,14"
2398+
LineNames="1,6,11,12"
2399+
# many options were removed from this line because they dont function
2400+
# we can make them function properly if necessary later.
23992401
Line1="conf,Center1Player"
24002402
Line6="conf,MusicWheelUsesSections"
2401-
Line8="conf,ShowCaution"
24022403
Line9="conf,ShowDanger"
24032404
Line10="conf,ShowInstructions"
24042405
Line11="conf,ShowLyrics"

src/Etterna/Screen/Options/ScreenOptionsMasterPrefs.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,6 @@ InitializeConfOptions()
747747
ADD(ConfOption("EnablePitchRates", MovePref<bool>, "Off", "On"));
748748
ADD(ConfOption("LiftsOnOsuHolds", MovePref<bool>, "Off", "On"));
749749
ADD(ConfOption("ShowInstructions", MovePref<bool>, "Skip", "Show"));
750-
ADD(ConfOption("ShowCaution", MovePref<bool>, "Skip", "Show"));
751750
ADD(ConfOption("MusicWheelUsesSections",
752751
MovePref<MusicWheelUsesSections>,
753752
"Never",

src/Etterna/Singletons/PrefsManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ PrefsManager::PrefsManager()
173173
m_bDelayedBack("DelayedBack", false)
174174
, m_AllowHoldForOptions("AllowHoldForOptions", true)
175175
, m_bShowInstructions("ShowInstructions", false)
176-
, m_bShowCaution("ShowCaution", false)
177176
, m_bFullTapExplosions("FullTapExplosions", true)
178177
, m_bNoGlow("NoGlow", false)
179178
, m_bShowNativeLanguage("ShowNativeLanguage", true)

src/Etterna/Singletons/PrefsManager.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ class PrefsManager
177177
Preference<bool> m_bDelayedBack;
178178
Preference<bool> m_AllowHoldForOptions;
179179
Preference<bool> m_bShowInstructions; // how to play a mode
180-
Preference<bool> m_bShowCaution;
181180
Preference<bool> m_bShowNativeLanguage;
182181
Preference<bool> m_bFullTapExplosions;
183182
Preference<bool> m_bNoGlow;

0 commit comments

Comments
 (0)