diff --git a/_ark/ps4/dx/overshell/dx_states.dta b/_ark/ps4/dx/overshell/dx_states.dta index 2a1ad83..8ac81a5 100644 --- a/_ark/ps4/dx/overshell/dx_states.dta +++ b/_ark/ps4/dx/overshell/dx_states.dta @@ -94,7 +94,6 @@ {if_else $syncspeeds "Sync Difficulty Speeds: ON" "Sync Difficulty Speeds: OFF"} {if_else $calibrationmode "Calibration Mode: ON" "Calibration Mode: OFF"} {if_else $precisionmode "Precision Mode: ON" "Precision Mode: OFF"} - ;{if_else $autoplayexists {if_else $drunkmode "Drunk Mode: ON" "Drunk Mode: OFF"} "Drunk Mode: DISABLED"} ) } {$this setup_confirm_actions a @@ -105,7 +104,7 @@ {if_else $syncspeeds "Sync Difficulty Speeds: ON" "Sync Difficulty Speeds: OFF"} {if_else $calibrationmode "Calibration Mode: ON" "Calibration Mode: OFF"} {if_else $precisionmode "Precision Mode: ON" "Precision Mode: OFF"} - ;{if_else $autoplayexists {if_else $drunkmode "Drunk Mode: ON" "Drunk Mode: OFF"} "Drunk Mode: DISABLED"} + {if_else $autoplayexists {if_else $drunkmode "Drunk Mode: ON" "Drunk Mode: OFF"} "Drunk Mode: DISABLED"} ) } } @@ -208,24 +207,26 @@ } {$this trigger_select_effects } ) - ; ("Drunk Mode: DISABLED" - ; {$this show_state kState_RB4DXDrunkModeHowTo} - ; {$this trigger_select_effects } - ; ) - ; (("Drunk Mode: ON" "Drunk Mode: OFF") - ; {set $drunkmode {! $drunkmode}} - ; {if_else $drunkmode - ; {do - ; {set_elem {find $syscfg beatmatcher watcher slop} 1 750} - ; RB4DXGP_DATA - ; } - ; {do - ; {set_elem {find $syscfg beatmatcher watcher slop} 1 100} - ; {$this show_state kState_RB4DXAutoplayOff} - ; } - ; } - ; {$this trigger_select_effects } - ; ) + ("Drunk Mode: DISABLED" + {$this show_state kState_RB4DXDrunkModeHowTo} + {$this trigger_select_effects } + ) + (("Drunk Mode: ON" "Drunk Mode: OFF") + {set $drunkmode {! $drunkmode}} + {if_else $drunkmode + {do + {set_elem {find $syscfg beatmatcher watcher slop} 1 750} + {write_file "data:/GoldHEN/RB4DX/drunkmode.ini" $dx_write_nul} + RB4DXGP_DATA + } + {do + {set_elem {find $syscfg beatmatcher watcher slop} 1 100} + {file_delete "data:/GoldHEN/RB4DX/drunkmode.ini"} + {$this show_state kState_RB4DXAutoplayOff} + } + } + {$this trigger_select_effects } + ) } ) (on_cancel diff --git a/_ark/ps4/dx/ui/dx_init.dta b/_ark/ps4/dx/ui/dx_init.dta index 9a3bad9..b560e5a 100644 --- a/_ark/ps4/dx/ui/dx_init.dta +++ b/_ark/ps4/dx/ui/dx_init.dta @@ -16,6 +16,9 @@ {if {file_exists "autoplay.ini"} {file_delete "data:/GoldHEN/RB4DX/autoplay.ini"} } +{if {file_exists "drunkmode.ini"} + {file_delete "data:/GoldHEN/RB4DX/drunkmode.ini"} +} {set $autoplayexists {file_exists "data:/GoldHEN/plugins/RB4DX-Autoplay.prx"}} {set $nood {file_exists "nood.dta"}} {set $practiceod {file_exists "practiceod.dta"}} diff --git a/_build/GoldHEN/plugins/RB4DX-Plugin.prx b/_build/GoldHEN/plugins/RB4DX-Plugin.prx index 3f70df3..bfe1f43 100644 Binary files a/_build/GoldHEN/plugins/RB4DX-Plugin.prx and b/_build/GoldHEN/plugins/RB4DX-Plugin.prx differ