Skip to content

Commit

Permalink
autoplay fixed itself i guess
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed May 20, 2024
1 parent 4d98ddd commit 0d127c6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 33 deletions.
18 changes: 4 additions & 14 deletions _ark/ps4/dx/overshell/dx_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
}
{$this setup_confirm_actions a
(
{if_else $autoplayenabled {if_else $autoplay "Autoplay: ON" "Autoplay: OFF"} "Autoplay: DISABLED"}
{if_else $autoplayenabled "Autoplay: ON" "Autoplay: OFF"}
{if_else $nomiss "No Miss Sounds: ON" "No Miss Sounds: OFF"}
{if_else $nood "No OD: ON" "No OD: OFF"}
{if_else $practiceod "OD in Practice: ON" "OD in Practice: OFF"}
Expand All @@ -171,22 +171,12 @@
{
($objId UIListCom)get_data_in_column token }}
{switch $list_data
("Autoplay: DISABLED"
("Autoplay: OFF"
{$this show_state kState_RB4DXAutoplayHowTo}
{$this trigger_select_effects }
)
(("Autoplay: ON" "Autoplay: OFF")
{set $autoplay {! $autoplay}}
{if_else $autoplay
{do
{write_file "data:/GoldHEN/RB4DX/autoplay.ini" $dx_write_nul}
{$this show_state kState_RB4DXAutoplayOn}
}
{do
{file_delete "data:/GoldHEN/RB4DX/autoplay.ini"}
{$this show_state kState_RB4DXAutoplayOff}
}
}
("Autoplay: ON"
{$this show_state kState_RB4DXAutoplayOff}
{$this trigger_select_effects }
)
(("Track Muting: Partial" "Track Muting: Off" "Track Muting: On")
Expand Down
20 changes: 2 additions & 18 deletions _ark/ps4/dx/overshell/dx_warn_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -162,23 +162,7 @@
(kState_RB4DXAutoplayHowTo
(view confirm_action)
(enter
{$this setup_confirm_actions "You are missing the \qRB4DX-Autoplay.prx\q plugin file. Autoplay will not work until you download and enable this plugin.
(DISABLES SAVING)" (overshell_confirm_ok)}
)
(SELECT_MSG
{$this show_state kState_RB4DXGPSettings}
{$this trigger_select_effects }
)
(on_cancel
{$this show_state kState_RB4DXGPSettings}
{$this trigger_cancel_effects }
)
)
(kState_RB4DXAutoplayOn
(view confirm_action)
(enter
{$this setup_confirm_actions "If autoplay is not functioning, make sure you have the \qRB4DX-Autoplay.prx\q plugin enabled in \q/data/GoldHEN/plugins.ini\q.
(DISABLES SAVING)" (overshell_confirm_ok)}
{$this setup_confirm_actions "You are missing the \qRB4DX-Autoplay.prx\q plugin file. Autoplay will not work until you download and enable this plugin." (overshell_confirm_ok)}
)
(SELECT_MSG
{$this show_state kState_RB4DXGPSettings}
Expand All @@ -192,7 +176,7 @@
(kState_RB4DXAutoplayOff
(view confirm_action)
(enter
{$this setup_confirm_actions "You will need to disable or delete the \qRB4DX-Autoplay.prx\q plugin to re-enable saving." (overshell_confirm_ok)}
{$this setup_confirm_actions "You will need to disable and delete the \qRB4DX-Autoplay.prx\q plugin to disable autoplay." (overshell_confirm_ok)}
)
(SELECT_MSG
{$this show_state kState_RB4DXGPSettings}
Expand Down
8 changes: 7 additions & 1 deletion _ark/ps4/dx/ui/dx_init.dta
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
{if {file_exists "autoplay.ini"}
{file_delete "data:/GoldHEN/RB4DX/autoplay.ini"}
}
{set $autoplayenabled {file_exists "data:/GoldHEN/plugins/RB4DX-Autoplay.prx"}}
{if_else {file_exists "data:/GoldHEN/plugins/RB4DX-Autoplay.prx"}
{do
{set $autoplayenabled TRUE}
{write_file "data:/GoldHEN/RB4DX/autoplay.ini" $dx_write_nul}
}
{set $autoplayenabled FALSE}
}
{set $nood {file_exists "nood.dta"}}
{set $practiceod {file_exists "practiceod.dta"}}
{set $blackbg {file_exists "blackbg.dta"}}
Expand Down
Binary file modified _build/GoldHEN/plugins/RB4DX-Autoplay.prx
Binary file not shown.
Binary file modified _build/GoldHEN/plugins/RB4DX-Plugin.prx
Binary file not shown.

0 comments on commit 0d127c6

Please sign in to comment.