diff --git a/_ark/ps4/dx/funcs/dx_funcs.dta b/_ark/ps4/dx/funcs/dx_funcs.dta new file mode 100644 index 0000000..8ed0229 --- /dev/null +++ b/_ark/ps4/dx/funcs/dx_funcs.dta @@ -0,0 +1,16 @@ +; these are set in code, but i left the dta here to quickly see what these funcs do -LX +{func dx_file_mkdir ($dir) + {file_mkdir {sprint "data:/GoldHEN/RB4DX/" $dir}} +} +{func dx_file_delete ($file) + {file_delete {sprint "data:/GoldHEN/RB4DX/" $file}} +} +{func dx_file_exists ($file) + {file_exists {sprint "data:/GoldHEN/RB4DX/" $file}} +} +{func dx_file_rename ($from $to) + {file_rename {sprint "/data/GoldHEN/RB4DX/" $from} {sprint "/data/GoldHEN/RB4DX/" $to}} +} +{func dx_write_null_file ($file) + {write_file {sprint "data:/GoldHEN/RB4DX/" $file} {array ()}} +} \ No newline at end of file diff --git a/_ark/ps4/dx/macros/dx_controller_macros.dta b/_ark/ps4/dx/macros/dx_controller_macros.dta index c26cd26..424e9b7 100644 --- a/_ark/ps4/dx/macros/dx_controller_macros.dta +++ b/_ark/ps4/dx/macros/dx_controller_macros.dta @@ -1,6 +1,6 @@ #define WRITE_SLOT_DTA ( - {write_file {sprint "data:/GoldHEN/RB4DX/settings/controller/type/" $slot_changed "/" $slot_to ".dta"} $dx_write_nul} + {dx_write_null_file {sprint "settings/controller/type/" $slot_changed "/" $slot_to ".dta"}} ) #define SET_SLOT_VAR @@ -22,35 +22,35 @@ ( {switch $slot_changed (gtr - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/gtr/drum.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/gtr/vox.dta"} + {dx_file_delete "settings/controller/type/gtr/drum.dta"} + {dx_file_delete "settings/controller/type/gtr/vox.dta"} ) (drum - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/drum/gtr.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/drum/vox.dta"} + {dx_file_delete "settings/controller/type/drum/gtr.dta"} + {dx_file_delete "settings/controller/type/drum/vox.dta"} ) (vox - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/vox/gtr.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/vox/drum.dta"} + {dx_file_delete "settings/controller/type/vox/gtr.dta"} + {dx_file_delete "settings/controller/type/vox/drum.dta"} ) } ) #define CLEAR_INVALID_SLOT_DTAS ( - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/vox/vox.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/drum/drum.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/gtr/gtr.dta"} + {dx_file_delete "settings/controller/type/vox/vox.dta"} + {dx_file_delete "settings/controller/type/drum/drum.dta"} + {dx_file_delete "settings/controller/type/gtr/gtr.dta"} ) #define DELETE_PAD_BINDING_DTAS ( - {file_delete "data:/GoldHEN/RB4DX/settings/controller/binding/pad/rbgtr.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/binding/pad/rbdrum.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/binding/pad/rb4gtr.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/binding/pad/rb4drum.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/binding/pad/ghgtr.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/binding/pad/ghdrum.dta"} + {dx_file_delete "settings/controller/binding/pad/rbgtr.dta"} + {dx_file_delete "settings/controller/binding/pad/rbdrum.dta"} + {dx_file_delete "settings/controller/binding/pad/rb4gtr.dta"} + {dx_file_delete "settings/controller/binding/pad/rb4drum.dta"} + {dx_file_delete "settings/controller/binding/pad/ghgtr.dta"} + {dx_file_delete "settings/controller/binding/pad/ghdrum.dta"} ) #define SET_PAD_BINDING_VAR diff --git a/_ark/ps4/dx/macros/dx_overshell_macros.dta b/_ark/ps4/dx/macros/dx_overshell_macros.dta index 423c3cd..ce263a6 100644 --- a/_ark/ps4/dx/macros/dx_overshell_macros.dta +++ b/_ark/ps4/dx/macros/dx_overshell_macros.dta @@ -2,16 +2,16 @@ ( {set $songtitletype {cond - ({&& {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay.entity_ps4"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaya.entity_ps4"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaytl.entity_ps4"}} + ({&& {dx_file_exists "ps4/ui/game/song_artist_overlay.entity_ps4"} {dx_file_exists "ps4/ui/game/song_artist_overlaya.entity_ps4"} {dx_file_exists "ps4/ui/game/song_artist_overlaytl.entity_ps4"}} default ) - ({&& {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay.entity_ps4"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaya.entity_ps4"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay1.entity_ps4"}} + ({&& {dx_file_exists "ps4/ui/game/song_artist_overlay.entity_ps4"} {dx_file_exists "ps4/ui/game/song_artist_overlaya.entity_ps4"} {dx_file_exists "ps4/ui/game/song_artist_overlay1.entity_ps4"}} tl ) - ({&& {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay.entity_ps4"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay1.entity_ps4"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaytl.entity_ps4"}} + ({&& {dx_file_exists "ps4/ui/game/song_artist_overlay.entity_ps4"} {dx_file_exists "ps4/ui/game/song_artist_overlay1.entity_ps4"} {dx_file_exists "ps4/ui/game/song_artist_overlaytl.entity_ps4"}} a ) - ({&& {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaya.entity_ps4"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay1.entity_ps4"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaytl.entity_ps4"}} + ({&& {dx_file_exists "ps4/ui/game/song_artist_overlaya.entity_ps4"} {dx_file_exists "ps4/ui/game/song_artist_overlay1.entity_ps4"} {dx_file_exists "ps4/ui/game/song_artist_overlaytl.entity_ps4"}} none ) } @@ -19,41 +19,41 @@ ) #define MOVE_NOFLAMES_FILES_ON ( - {file_rename "/data/GoldHEN/RB4DX/ps4/track/smasher/gem_smasher_unlit1.entity_ps4" "/data/GoldHEN/RB4DX/ps4/track/smasher/gem_smasher_unlit.entity_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/smasher/fx_smasher_streaks1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/smasher/fx_smasher_streaks.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/smasher/gem_smashed_util1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/smasher/gem_smashed_util.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_beams1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_beams.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_flash1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_flash.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_shockwave1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_shockwave.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/spark01_color1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/spark01_color.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_orb1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_orb.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_orb_dense1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_orb_dense.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_shockwave1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_shockwave.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_shockwave_forced_persp1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_shockwave_forced_persp.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_smoke_plume1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_smoke_plume.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark_cluster1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark_cluster.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark_dense1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark_dense.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spiral_flare1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spiral_flare.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/fx/flash_pot/particle_smoke1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/fx/flash_pot/particle_smoke.bmp_ps4"} + {dx_file_rename "ps4/track/smasher/gem_smasher_unlit1.entity_ps4" "ps4/track/smasher/gem_smasher_unlit.entity_ps4"} + {dx_file_rename "ps4/track/smasher/fx_smasher_streaks1.bmp_ps4" "ps4/track/smasher/fx_smasher_streaks.bmp_ps4"} + {dx_file_rename "ps4/track/smasher/gem_smashed_util1.bmp_ps4" "ps4/track/smasher/gem_smashed_util.bmp_ps4"} + {dx_file_rename "ps4/track/shared/smasher_beams1.bmp_ps4" "ps4/track/shared/smasher_beams.bmp_ps4"} + {dx_file_rename "ps4/track/shared/smasher_flash1.bmp_ps4" "ps4/track/shared/smasher_flash.bmp_ps4"} + {dx_file_rename "ps4/track/shared/smasher_shockwave1.bmp_ps4" "ps4/track/shared/smasher_shockwave.bmp_ps4"} + {dx_file_rename "ps4/track/shared/spark01_color1.bmp_ps4" "ps4/track/shared/spark01_color.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_orb1.bmp_ps4" "ps4/track/shared/particles/textures/particle_orb.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_orb_dense1.bmp_ps4" "ps4/track/shared/particles/textures/particle_orb_dense.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_shockwave1.bmp_ps4" "ps4/track/shared/particles/textures/particle_shockwave.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_shockwave_forced_persp1.bmp_ps4" "ps4/track/shared/particles/textures/particle_shockwave_forced_persp.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_smoke_plume1.bmp_ps4" "ps4/track/shared/particles/textures/particle_smoke_plume.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_spark1.bmp_ps4" "ps4/track/shared/particles/textures/particle_spark.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_spark_cluster1.bmp_ps4" "ps4/track/shared/particles/textures/particle_spark_cluster.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_spark_dense1.bmp_ps4" "ps4/track/shared/particles/textures/particle_spark_dense.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_spiral_flare1.bmp_ps4" "ps4/track/shared/particles/textures/particle_spiral_flare.bmp_ps4"} + {dx_file_rename "ps4/track/shared/fx/flash_pot/particle_smoke1.bmp_ps4" "ps4/track/shared/fx/flash_pot/particle_smoke.bmp_ps4"} ) #define MOVE_NOFLAMES_FILES_OFF ( - {file_rename "/data/GoldHEN/RB4DX/ps4/track/smasher/gem_smasher_unlit.entity_ps4" "/data/GoldHEN/RB4DX/ps4/track/smasher/gem_smasher_unlit1.entity_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/smasher/fx_smasher_streaks.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/smasher/fx_smasher_streaks1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/smasher/gem_smashed_util.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/smasher/gem_smashed_util1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_beams.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_beams1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_flash.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_flash1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_shockwave.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/smasher_shockwave1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/spark01_color.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/spark01_color1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_orb.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_orb1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_orb_dense.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_orb_dense1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_shockwave.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_shockwave1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_shockwave_forced_persp.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_shockwave_forced_persp1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_smoke_plume.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_smoke_plume1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark_cluster.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark_cluster1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark_dense.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark_dense1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spiral_flare.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spiral_flare1.bmp_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/fx/flash_pot/particle_smoke.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/fx/flash_pot/particle_smoke1.bmp_ps4"} + {dx_file_rename "ps4/track/smasher/gem_smasher_unlit.entity_ps4" "ps4/track/smasher/gem_smasher_unlit1.entity_ps4"} + {dx_file_rename "ps4/track/smasher/fx_smasher_streaks.bmp_ps4" "ps4/track/smasher/fx_smasher_streaks1.bmp_ps4"} + {dx_file_rename "ps4/track/smasher/gem_smashed_util.bmp_ps4" "ps4/track/smasher/gem_smashed_util1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/smasher_beams.bmp_ps4" "ps4/track/shared/smasher_beams1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/smasher_flash.bmp_ps4" "ps4/track/shared/smasher_flash1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/smasher_shockwave.bmp_ps4" "ps4/track/shared/smasher_shockwave1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/spark01_color.bmp_ps4" "ps4/track/shared/spark01_color1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_orb.bmp_ps4" "ps4/track/shared/particles/textures/particle_orb1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_orb_dense.bmp_ps4" "ps4/track/shared/particles/textures/particle_orb_dense1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_shockwave.bmp_ps4" "ps4/track/shared/particles/textures/particle_shockwave1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_shockwave_forced_persp.bmp_ps4" "ps4/track/shared/particles/textures/particle_shockwave_forced_persp1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_smoke_plume.bmp_ps4" "ps4/track/shared/particles/textures/particle_smoke_plume1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_spark.bmp_ps4" "ps4/track/shared/particles/textures/particle_spark1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_spark_cluster.bmp_ps4" "ps4/track/shared/particles/textures/particle_spark_cluster1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_spark_dense.bmp_ps4" "ps4/track/shared/particles/textures/particle_spark_dense1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/particles/textures/particle_spiral_flare.bmp_ps4" "ps4/track/shared/particles/textures/particle_spiral_flare1.bmp_ps4"} + {dx_file_rename "ps4/track/shared/fx/flash_pot/particle_smoke.bmp_ps4" "ps4/track/shared/fx/flash_pot/particle_smoke1.bmp_ps4"} ) \ No newline at end of file diff --git a/_ark/ps4/dx/overshell/dx_controller_states.dta b/_ark/ps4/dx/overshell/dx_controller_states.dta index ef6a21b..b604b64 100644 --- a/_ark/ps4/dx/overshell/dx_controller_states.dta +++ b/_ark/ps4/dx/overshell/dx_controller_states.dta @@ -140,22 +140,22 @@ {switch $list_data ("[Reset]") ("Rock Band 1-3 Guitar" - {write_file "data:/GoldHEN/RB4DX/settings/controller/binding/pad/rbgtr.dta" $dx_write_nul} + {dx_write_null_file "settings/controller/binding/pad/rbgtr.dta"} ) ("Rock Band 1-3 Drums" - {write_file "data:/GoldHEN/RB4DX/settings/controller/binding/pad/rbdrum.dta" $dx_write_nul} + {dx_write_null_file "settings/controller/binding/pad/rbdrum.dta"} ) ("Rock Band 4 Guitar" - {write_file "data:/GoldHEN/RB4DX/settings/controller/binding/pad/rb4gtr.dta" $dx_write_nul} + {dx_write_null_file "settings/controller/binding/pad/rb4gtr.dta"} ) ("Rock Band 4 Drums" - {write_file "data:/GoldHEN/RB4DX/settings/controller/binding/pad/rb4drum.dta" $dx_write_nul} + {dx_write_null_file "settings/controller/binding/pad/rb4drum.dta"} ) ("Guitar Hero Guitar" - {write_file "data:/GoldHEN/RB4DX/settings/controller/binding/pad/ghgtr.dta" $dx_write_nul} + {dx_write_null_file "settings/controller/binding/pad/ghgtr.dta"} ) ("Guitar Hero Drums" - {write_file "data:/GoldHEN/RB4DX/settings/controller/binding/pad/ghdrum.dta" $dx_write_nul} + {dx_write_null_file "settings/controller/binding/pad/ghdrum.dta"} ) } SET_PAD_BINDING_VAR diff --git a/_ark/ps4/dx/overshell/dx_state_overrides.dta b/_ark/ps4/dx/overshell/dx_state_overrides.dta index 269c2c4..3341837 100644 --- a/_ark/ps4/dx/overshell/dx_state_overrides.dta +++ b/_ark/ps4/dx/overshell/dx_state_overrides.dta @@ -68,7 +68,7 @@ {$this select_difficulty kDifficultyEasy}) } {$this trigger_select_effects} - {write_file "data:/GoldHEN/RB4DX/insong.dta" $dx_write_nul} + {dx_write_null_file "insong.dta"} ) (list_focus ($obj_name $obj_id) @@ -108,11 +108,11 @@ {local $list_data {($objId UIListCom) get_data_in_column token}} {switch $list_data (overshell_confirm_yes - {file_delete "data:/GoldHEN/RB4DX/insong.dta"} + {dx_file_delete "insong.dta"} {$this quit_early} ) (overshell_confirm_no - {write_file "data:/GoldHEN/RB4DX/insong.dta" $dx_write_nul} + {dx_write_null_file "insong.dta"} {if_else {$this in_venue_meta_mode} {$this show_state kState_VenueMetaMenu} {$this show_in_song_menu} @@ -122,7 +122,7 @@ {$this trigger_select_effects} ) (on_cancel - {write_file "data:/GoldHEN/RB4DX/insong.dta" $dx_write_nul} + {dx_write_null_file "insong.dta"} {if_else {$this in_venue_meta_mode} {$this show_state kState_VenueMetaMenu} {$this show_in_song_menu} @@ -137,7 +137,7 @@ {cond ({$this is_quit_token {$component selected_sym}} {do - {file_delete "data:/GoldHEN/RB4DX/insong.dta"} + {dx_file_delete "insong.dta"} {$this attempt_quit} } ) @@ -169,7 +169,7 @@ ) ({$this get_current_overshell_quit_token} {do - {file_delete "data:/GoldHEN/RB4DX/insong.dta"} + {dx_file_delete "insong.dta"} {$this attempt_quit} } ) @@ -246,7 +246,7 @@ ) ({$this get_current_overshell_quit_token} {do - {file_delete "data:/GoldHEN/RB4DX/insong.dta"} + {dx_file_delete "insong.dta"} {$this attempt_quit} } ) diff --git a/_ark/ps4/dx/overshell/dx_states.dta b/_ark/ps4/dx/overshell/dx_states.dta index b898b3e..7db2d4d 100644 --- a/_ark/ps4/dx/overshell/dx_states.dta +++ b/_ark/ps4/dx/overshell/dx_states.dta @@ -132,11 +132,11 @@ {set $autoplayenabled {! $autoplayenabled}} {if_else $autoplayenabled {do - {write_file "data:/GoldHEN/RB4DX/autoplay.ini" $dx_write_nul} + {dx_write_null_file "autoplay.ini"} {$this show_state kState_RB4DXAutoplayOn} } {do - {file_delete "data:/GoldHEN/RB4DX/autoplay.ini"} + {dx_file_delete "autoplay.ini"} {$this show_state kState_RB4DXAutoplayOff} } } @@ -146,12 +146,12 @@ {set $nood {! $nood}} {if_else $nood {do - {write_file "data:/GoldHEN/RB4DX/settings/gameplay/nood.dta" $dx_write_nul} + {dx_write_null_file "settings/gameplay/nood.dta"} {set_elem {find $syscfg gamemodes defaults allow_overdrive_phrases} 1 FALSE} {set_elem {find $syscfg gamemodes defaults enable_overdrive} 1 FALSE} } {do - {file_delete "data:/GoldHEN/RB4DX/settings/gameplay/nood.dta"} + {dx_file_delete "settings/gameplay/nood.dta"} {set_elem {find $syscfg gamemodes defaults allow_overdrive_phrases} 1 TRUE} {set_elem {find $syscfg gamemodes defaults enable_overdrive} 1 TRUE} } @@ -166,12 +166,12 @@ {set $practiceod {! $practiceod}} {if_else $practiceod {do - {write_file "data:/GoldHEN/RB4DX/settings/gameplay/practiceod.dta" $dx_write_nul} + {dx_write_null_file "settings/gameplay/practiceod.dta"} {set_elem {find $syscfg gamemodes practice allow_overdrive_phrases} 1 TRUE} {set_elem {find $syscfg gamemodes practice enable_overdrive} 1 TRUE} } {do - {file_delete "data:/GoldHEN/RB4DX/settings/gameplay/practiceod.dta"} + {dx_file_delete "settings/gameplay/practiceod.dta"} {set_elem {find $syscfg gamemodes practice allow_overdrive_phrases} 1 FALSE} {set_elem {find $syscfg gamemodes practice enable_overdrive} 1 FALSE} } @@ -185,8 +185,8 @@ (("Sync Difficulty Speeds: ON" "Sync Difficulty Speeds: OFF") {set $syncspeeds {! $syncspeeds}} {if_else $syncspeeds - {write_file "data:/GoldHEN/RB4DX/settings/gameplay/syncspeeds.dta" $dx_write_nul} - {file_delete "data:/GoldHEN/RB4DX/settings/gameplay/syncspeeds.dta"} + {dx_write_null_file "settings/gameplay/syncspeeds.dta"} + {dx_file_delete "settings/gameplay/syncspeeds.dta"} } SET_TRACK_SPEEDS RB4DXGP_DATA @@ -225,12 +225,12 @@ {if_else $drunkmode {do {set_elem {find $syscfg beatmatcher watcher slop} 1 750} - {write_file "data:/GoldHEN/RB4DX/drunkmode.ini" $dx_write_nul} + {dx_write_null_file "drunkmode.ini"} RB4DXGP_DATA } {do {set_elem {find $syscfg beatmatcher watcher slop} 1 100} - {file_delete "data:/GoldHEN/RB4DX/drunkmode.ini"} + {dx_file_delete "drunkmode.ini"} {$this show_state kState_RB4DXAutoplayOff} } } @@ -281,18 +281,18 @@ {switch $trackmuting (vanilla {set_elem {find $syscfg beatmatcher audio mute_volume} 1 -16.0} - {file_delete "data:/GoldHEN/RB4DX/settings/sfx/trackmutingoff.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/sfx/trackmutingon.dta"} + {dx_file_delete "settings/sfx/trackmutingoff.dta"} + {dx_file_delete "settings/sfx/trackmutingon.dta"} ) (off {set_elem {find $syscfg beatmatcher audio mute_volume} 1 0.0} - {write_file "data:/GoldHEN/RB4DX/settings/sfx/trackmutingoff.dta" $dx_write_nul} - {file_delete "data:/GoldHEN/RB4DX/settings/sfx/trackmutingon.dta"} + {dx_write_null_file "settings/sfx/trackmutingoff.dta"} + {dx_file_delete "settings/sfx/trackmutingon.dta"} ) (on {set_elem {find $syscfg beatmatcher audio mute_volume} 1 -96.0} - {write_file "data:/GoldHEN/RB4DX/settings/sfx/trackmutingon.dta" $dx_write_nul} - {file_delete "data:/GoldHEN/RB4DX/settings/sfx/trackmutingoff.dta"} + {dx_write_null_file "settings/sfx/trackmutingon.dta"} + {dx_file_delete "settings/sfx/trackmutingoff.dta"} ) } {if_else {$this in_song} @@ -305,9 +305,9 @@ {set $nomiss {! $nomiss}} {if_else $nomiss {do - {write_file "data:/GoldHEN/RB4DX/settings/sfx/nomiss.dta" $dx_write_nul} + {dx_write_null_file "settings/sfx/nomiss.dta"} } - {file_delete "data:/GoldHEN/RB4DX/settings/sfx/nomiss.dta"} + {dx_file_delete "settings/sfx/nomiss.dta"} } {$this show_state kState_RB4DXDelayedEffectWarn} {$this trigger_select_effects} @@ -316,11 +316,11 @@ {set $nowhammyfx {! $nowhammyfx}} {if_else $nowhammyfx {do - {write_file "data:/GoldHEN/RB4DX/settings/sfx/nowhammyfx.dta" $dx_write_nul} + {dx_write_null_file "settings/sfx/nowhammyfx.dta"} {set_elem {find $syscfg beatmatcher watcher pitch_bend_range} 1 0} } {do - {file_delete "data:/GoldHEN/RB4DX/settings/sfx/nowhammyfx.dta"} + {dx_file_delete "settings/sfx/nowhammyfx.dta"} {set_elem {find $syscfg beatmatcher watcher pitch_bend_range} 1 1} } } @@ -357,9 +357,9 @@ (kState_RB4DXVisSettings (view {$this get_auto_list_view}) (enter - {set $crowdmeter {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/crowd_meter.entity_ps4"}} - {set $noui {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/hud.scene_ps4"}} - {set $noaa {file_exists "data:/GoldHEN/RB4DX/ps4/shared/scene/antialias.scene_ps4"}} + {set $crowdmeter {dx_file_exists "ps4/ui/game/crowd_meter.entity_ps4"}} + {set $noui {dx_file_exists "ps4/ui/game/hud.scene_ps4"}} + {set $noaa {dx_file_exists "ps4/shared/scene/antialias.scene_ps4"}} {set $dx_cur_state vis} RB4DXVIS_DATA ) @@ -369,8 +369,8 @@ (("Black Venue: ON" "Black Venue: OFF") {set $blackbg {! $blackbg}} {if_else $blackbg - {write_file "data:/GoldHEN/RB4DX/settings/visuals/blackbg.dta" $dx_write_nul} - {file_delete "data:/GoldHEN/RB4DX/settings/visuals/blackbg.dta"} + {dx_write_null_file "settings/visuals/blackbg.dta"} + {dx_file_delete "settings/visuals/blackbg.dta"} } {$this show_state kState_RB4DXDelayedEffectWarn} {$this trigger_select_effects} @@ -378,8 +378,8 @@ (("60 FPS Venues: ON" "60 FPS Venues: OFF") {set $60fpsbg {! $60fpsbg}} {if_else $60fpsbg - {write_file "data:/GoldHEN/RB4DX/settings/visuals/60fpsbg.dta" $dx_write_nul} - {file_delete "data:/GoldHEN/RB4DX/settings/visuals/60fpsbg.dta"} + {dx_write_null_file "settings/visuals/60fpsbg.dta"} + {dx_file_delete "settings/visuals/60fpsbg.dta"} } {$this show_state kState_RB4DXDelayedEffectWarn} {$this trigger_select_effects} @@ -388,12 +388,12 @@ {set $crowdmeter {! $crowdmeter}} {if_else $crowdmeter {do - {write_file "data:/GoldHEN/RB4DX/ps4/ui/game/crowd_meter.entity_ps4" $dx_write_nul} - {write_file "data:/GoldHEN/RB4DX/ps4/ui/game/join_band.entity_ps4" $dx_write_nul} + {dx_write_null_file "ps4/ui/game/crowd_meter.entity_ps4"} + {dx_write_null_file "ps4/ui/game/join_band.entity_ps4"} } {do - {file_delete "data:/GoldHEN/RB4DX/ps4/ui/game/crowd_meter.entity_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/ui/game/join_band.entity_ps4"} + {dx_file_delete "ps4/ui/game/crowd_meter.entity_ps4"} + {dx_file_delete "ps4/ui/game/join_band.entity_ps4"} } } {if_else {$this in_song} @@ -405,8 +405,8 @@ (("HUD: ON" "HUD: OFF") {set $noui {! $noui}} {if_else $noui - {write_file "data:/GoldHEN/RB4DX/ps4/ui/game/hud.scene_ps4" $dx_write_nul} - {file_delete "data:/GoldHEN/RB4DX/ps4/ui/game/hud.scene_ps4"} + {dx_write_null_file "ps4/ui/game/hud.scene_ps4"} + {dx_file_delete "ps4/ui/game/hud.scene_ps4"} } {if_else {$this in_song} {$this show_state kState_RB4DXInGameWarn} @@ -417,8 +417,8 @@ (("Track Antialiasing: OFF" "Track Antialiasing: ON") {set $noaa {! $noaa}} {if_else $noaa - {write_file "data:/GoldHEN/RB4DX/ps4/shared/scene/antialias.scene_ps4" $dx_write_nul} - {file_delete "data:/GoldHEN/RB4DX/ps4/shared/scene/antialias.scene_ps4"} + {dx_write_null_file "ps4/shared/scene/antialias.scene_ps4"} + {dx_file_delete "ps4/shared/scene/antialias.scene_ps4"} } {if_else {$this in_song} {$this show_state kState_RB4DXInGameWarn} @@ -460,13 +460,13 @@ (kState_RB4DXVisSettings1 (view {$this get_auto_list_view}) (enter - {set $nohud {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/game.layout_ps4"}} - {set $songtitle {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay.entity_ps4"}} + {set $nohud {dx_file_exists "ps4/ui/game/game.layout_ps4"}} + {set $songtitle {dx_file_exists "ps4/ui/game/song_artist_overlay.entity_ps4"}} SONGTITLE_CHECK - {set $noshine {file_exists "data:/GoldHEN/RB4DX/ps4/track/shared/fx_noise_b_util.bmp_ps4"}} - {set $noflames {file_exists "data:/GoldHEN/RB4DX/ps4/track/smasher/gem_smasher_unlit.entity_ps4"}} - {set $micwarn {! {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/hud1.scene_ps4"}}} - {set $menubg {file_exists "data:/GoldHEN/RB4DX/ps4/ui/background/meta_background.scene_ps4"}} + {set $noshine {dx_file_exists "ps4/track/shared/fx_noise_b_util.bmp_ps4"}} + {set $noflames {dx_file_exists "ps4/track/smasher/gem_smasher_unlit.entity_ps4"}} + {set $micwarn {! {dx_file_exists "ps4/ui/game/hud1.scene_ps4"}}} + {set $menubg {dx_file_exists "ps4/ui/background/meta_background.scene_ps4"}} {set $dx_cur_state vis1} RB4DXVIS1_DATA ) @@ -476,8 +476,8 @@ (("Performance Mode: ON" "Performance Mode: OFF") {set $nohud {! $nohud}} {if_else $nohud - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/game1.layout_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/game.layout_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/game.layout_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/game1.layout_ps4"} + {dx_file_rename "ps4/ui/game/game1.layout_ps4" "ps4/ui/game/game.layout_ps4"} + {dx_file_rename "ps4/ui/game/game.layout_ps4" "ps4/ui/game/game1.layout_ps4"} } {if_else {$this in_song} {$this show_state kState_RB4DXInGameWarn} @@ -489,22 +489,22 @@ {set $songtitle FALSE} {switch $songtitletype (default - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay.entity_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay1.entity_ps4"} - {file_delete "data:/GoldHEN/RB4DX/settings/visuals/songtitletype1.dta"} + {dx_file_rename "ps4/ui/game/song_artist_overlay.entity_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay1.entity_ps4"} + {dx_file_delete "settings/visuals/songtitletype1.dta"} ) (tl - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay.entity_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaytl.entity_ps4"} - {file_delete "data:/GoldHEN/RB4DX/settings/visuals/songtitletypetl.dta"} + {dx_file_rename "ps4/ui/game/song_artist_overlay.entity_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaytl.entity_ps4"} + {dx_file_delete "settings/visuals/songtitletypetl.dta"} ) (a - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay.entity_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaya.entity_ps4"} - {file_delete "data:/GoldHEN/RB4DX/settings/visuals/songtitletypea.dta"} + {dx_file_rename "ps4/ui/game/song_artist_overlay.entity_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaya.entity_ps4"} + {dx_file_delete "settings/visuals/songtitletypea.dta"} ) (none - {file_delete "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay.entity_ps4"} + {dx_file_delete "ps4/ui/game/song_artist_overlay.entity_ps4"} ) } - {file_delete "data:/GoldHEN/RB4DX/settings/visuals/songtitle.dta"} + {dx_file_delete "settings/visuals/songtitle.dta"} {if_else {$this in_song} {$this show_state kState_RB4DXInGameWarn} RB4DXVIS1_DATA @@ -519,12 +519,12 @@ {set $noshine {! $noshine}} {if_else $noshine {do - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/fx_noise_b_util1.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/fx_noise_b_util.bmp_ps4"} - {write_file "data:/GoldHEN/RB4DX/settings/visuals/noshine.dta" $dx_write_nul} + {dx_file_rename "ps4/track/shared/fx_noise_b_util1.bmp_ps4" "ps4/track/shared/fx_noise_b_util.bmp_ps4"} + {dx_write_null_file "settings/visuals/noshine.dta"} } {do - {file_rename "/data/GoldHEN/RB4DX/ps4/track/shared/fx_noise_b_util.bmp_ps4" "/data/GoldHEN/RB4DX/ps4/track/shared/fx_noise_b_util1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/settings/visuals/noshine.dta"} + {dx_file_rename "ps4/track/shared/fx_noise_b_util.bmp_ps4" "ps4/track/shared/fx_noise_b_util1.bmp_ps4"} + {dx_file_delete "settings/visuals/noshine.dta"} } } {if_else {$this in_song} @@ -538,11 +538,11 @@ {if_else $noflames {do MOVE_NOFLAMES_FILES_ON - {write_file "data:/GoldHEN/RB4DX/settings/visuals/noflames.dta" $dx_write_nul} + {dx_write_null_file "settings/visuals/noflames.dta"} } {do MOVE_NOFLAMES_FILES_OFF - {file_delete "data:/GoldHEN/RB4DX/settings/visuals/noflames.dta"} + {dx_file_delete "settings/visuals/noflames.dta"} } } {if_else {$this in_song} @@ -555,12 +555,12 @@ {set $micwarn {! $micwarn}} {if_else $micwarn {do - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/hud1.scene_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/hud.scene_ps4"} - {write_file "data:/GoldHEN/RB4DX/settings/visuals/micwarn.dta" $dx_write_nul} + {dx_file_rename "ps4/ui/game/hud1.scene_ps4" "ps4/ui/game/hud.scene_ps4"} + {dx_write_null_file "settings/visuals/micwarn.dta"} } {do - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/hud.scene_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/hud1.scene_ps4"} - {file_delete "data:/GoldHEN/RB4DX/settings/visuals/micwarn.dta"} + {dx_file_rename "ps4/ui/game/hud.scene_ps4" "ps4/ui/game/hud1.scene_ps4"} + {dx_file_delete "settings/visuals/micwarn.dta"} } } {if_else {$this in_song} @@ -573,12 +573,12 @@ {set $menubg {! $menubg}} {if_else $menubg {do - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/background/meta_background1.scene_ps4" "/data/GoldHEN/RB4DX/ps4/ui/background/meta_background.scene_ps4"} - {write_file "data:/GoldHEN/RB4DX/settings/visuals/menubg.dta" $dx_write_nul} + {dx_file_rename "ps4/ui/background/meta_background1.scene_ps4" "ps4/ui/background/meta_background.scene_ps4"} + {dx_write_null_file "settings/visuals/menubg.dta"} } {do - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/background/meta_background.scene_ps4" "/data/GoldHEN/RB4DX/ps4/ui/background/meta_background1.scene_ps4"} - {file_delete "data:/GoldHEN/RB4DX/settings/visuals/menubg.dta"} + {dx_file_rename "ps4/ui/background/meta_background.scene_ps4" "ps4/ui/background/meta_background1.scene_ps4"} + {dx_file_delete "settings/visuals/menubg.dta"} } } {$this show_state kState_RB4DXDelayedEffectWarn} @@ -608,22 +608,22 @@ {switch $list_data ("Vanilla" {set $songtitletype default} - {write_file "data:/GoldHEN/RB4DX/settings/visuals/songtitletype1.dta" $dx_write_nul} - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay1.entity_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay.entity_ps4"} + {dx_write_null_file "settings/visuals/songtitletype1.dta"} + {dx_file_rename "ps4/ui/game/song_artist_overlay1.entity_ps4" "ps4/ui/game/song_artist_overlay.entity_ps4"} ) ("Top Left" {set $songtitletype tl} - {write_file "data:/GoldHEN/RB4DX/settings/visuals/songtitletypetl.dta" $dx_write_nul} - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaytl.entity_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay.entity_ps4"} + {dx_write_null_file "settings/visuals/songtitletypetl.dta"} + {dx_file_rename "ps4/ui/game/song_artist_overlaytl.entity_ps4" "ps4/ui/game/song_artist_overlay.entity_ps4"} ) ("Acai; Below Twitch Chat" {set $songtitletype a} - {write_file "data:/GoldHEN/RB4DX/settings/visuals/songtitletypea.dta" $dx_write_nul} - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaya.entity_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay.entity_ps4"} + {dx_write_null_file "settings/visuals/songtitletypea.dta"} + {dx_file_rename "ps4/ui/game/song_artist_overlaya.entity_ps4" "ps4/ui/game/song_artist_overlay.entity_ps4"} ) } {set $songtitle TRUE} - {write_file "data:/GoldHEN/RB4DX/settings/visuals/songtitle.dta" $dx_write_nul} + {dx_write_null_file "settings/visuals/songtitle.dta"} {if_else {$this in_song} {$this show_state kState_RB4DXInGameWarn} {$this show_state kState_RB4DXVisSettings1} @@ -658,7 +658,7 @@ (kState_RB4DXExtras (view {$this get_auto_list_view}) (enter - {set $faststart {file_exists "data:/GoldHEN/RB4DX/ps4/ui/startup/mnemonix.bk2"}} + {set $faststart {dx_file_exists "ps4/ui/startup/mnemonix.bk2"}} RB4DXEXTRA_DATA ) (SELECT_MSG @@ -671,12 +671,12 @@ {set $faststart {! $faststart}} {if_else $faststart {do - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/startup/mnemonix1.bk2" "/data/GoldHEN/RB4DX/ps4/ui/startup/mnemonix.bk2"} - {write_file "data:/GoldHEN/RB4DX/settings/visuals/faststart.dta" $dx_write_nul} + {dx_file_rename "ps4/ui/startup/mnemonix1.bk2" "ps4/ui/startup/mnemonix.bk2"} + {dx_write_null_file "settings/visuals/faststart.dta"} } {do - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/startup/mnemonix.bk2" "/data/GoldHEN/RB4DX/ps4/ui/startup/mnemonix1.bk2"} - {file_delete "data:/GoldHEN/RB4DX/settings/visuals/faststart.dta"} + {dx_file_rename "ps4/ui/startup/mnemonix.bk2" "ps4/ui/startup/mnemonix1.bk2"} + {dx_file_delete "settings/visuals/faststart.dta"} } } RB4DXEXTRA_DATA @@ -685,8 +685,8 @@ (("Plugin Notification Icon: Colored" "Plugin Notification Icon: B/W") {set $notifycolored {! $notifycolored}} {if_else $notifycolored - {write_file "data:/GoldHEN/RB4DX/notifycolored.ini" $dx_write_nul} - {file_delete "data:/GoldHEN/RB4DX/notifycolored.ini"} + {dx_write_null_file "notifycolored.ini"} + {dx_file_delete "notifycolored.ini"} } RB4DXEXTRA_DATA {$this trigger_select_effects} diff --git a/_ark/ps4/dx/ui/init_dev.dta b/_ark/ps4/dx/ui/init_dev.dta index 1cec047..7014fb0 100644 --- a/_ark/ps4/dx/ui/init_dev.dta +++ b/_ark/ps4/dx/ui/init_dev.dta @@ -1,111 +1,109 @@ -{set $dx_write_nul {array ()}} - #define CREATE_SETTINGS_DIRS ( - {file_mkdir "data:/GoldHEN/RB4DX/settings"} - {file_mkdir "data:/GoldHEN/RB4DX/settings/visuals"} - {file_mkdir "data:/GoldHEN/RB4DX/settings/gameplay"} - {file_mkdir "data:/GoldHEN/RB4DX/settings/sfx"} - {file_mkdir "data:/GoldHEN/RB4DX/settings/controller"} - {file_mkdir "data:/GoldHEN/RB4DX/settings/controller/type"} - {file_mkdir "data:/GoldHEN/RB4DX/settings/controller/type/gtr"} - {file_mkdir "data:/GoldHEN/RB4DX/settings/controller/type/drum"} - {file_mkdir "data:/GoldHEN/RB4DX/settings/controller/type/vox"} + {dx_file_mkdir "settings"} + {dx_file_mkdir "settings/visuals"} + {dx_file_mkdir "settings/gameplay"} + {dx_file_mkdir "settings/sfx"} + {dx_file_mkdir "settings/controller"} + {dx_file_mkdir "settings/controller/type"} + {dx_file_mkdir "settings/controller/type/gtr"} + {dx_file_mkdir "settings/controller/type/drum"} + {dx_file_mkdir "settings/controller/type/vox"} ;{file_mkdir "data:/GoldHEN/RB4DX/settings/controller/binding"} ;TODO ) #define UPDATE_SETTINGS ( ;gp {if {file_exists "nood.dta"} - {file_delete "data:/GoldHEN/RB4DX/nood.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/gameplay/nood.dta" $dx_write_nul} + {dx_file_delete "nood.dta"} + {dx_write_null_file "settings/gameplay/nood.dta"} } {if {file_exists "practiceod.dta"} - {file_delete "data:/GoldHEN/RB4DX/practiceod.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/gameplay/practiceod.dta" $dx_write_nul} + {dx_file_delete "practiceod.dta"} + {dx_write_null_file "settings/gameplay/practiceod.dta"} } ;vis {if {file_exists "blackbg.dta"} - {file_delete "data:/GoldHEN/RB4DX/blackbg.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/visuals/blackbg.dta" $dx_write_nul} + {dx_file_delete "blackbg.dta"} + {dx_write_null_file "settings/visuals/blackbg.dta"} } {if {file_exists "60fpsbg.dta"} - {file_delete "data:/GoldHEN/RB4DX/60fpsbg.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/visuals/60fpsbg.dta" $dx_write_nul} + {dx_file_delete "60fpsbg.dta"} + {dx_write_null_file "settings/visuals/60fpsbg.dta"} } ;sfx {if {file_exists "nomiss.dta"} - {file_delete "data:/GoldHEN/RB4DX/nomiss.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/sfx/nomiss.dta" $dx_write_nul} + {dx_file_delete "nomiss.dta"} + {dx_write_null_file "settings/sfx/nomiss.dta"} } {if {file_exists "nowhammyfx.dta"} - {file_delete "data:/GoldHEN/RB4DX/nowhammyfx.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/sfx/nowhammyfx.dta" $dx_write_nul} + {dx_file_delete "nowhammyfx.dta"} + {dx_write_null_file "settings/sfx/nowhammyfx.dta"} } {if {file_exists "trackmutingoff.dta"} - {file_delete "data:/GoldHEN/RB4DX/trackmutingoff.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/sfx/trackmutingoff.dta" $dx_write_nul} + {dx_file_delete "trackmutingoff.dta"} + {dx_write_null_file "settings/sfx/trackmutingoff.dta"} } {if {file_exists "trackmutingon.dta"} - {file_delete "data:/GoldHEN/RB4DX/trackmutingon.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/sfx/trackmutingon.dta" $dx_write_nul} + {dx_file_delete "trackmutingon.dta"} + {dx_write_null_file "settings/sfx/trackmutingon.dta"} } ;controller type {if {file_exists "voxgtr.dta"} - {file_delete "data:/GoldHEN/RB4DX/voxgtr.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/voxgtr.dta" $dx_write_nul} + {dx_file_delete "voxgtr.dta"} + {dx_write_null_file "settings/controller/type/voxgtr.dta"} } {if {file_exists "settings/controller/type/voxgtr.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/voxgtr.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/vox/gtr.dta" $dx_write_nul} + {dx_file_delete "settings/controller/type/voxgtr.dta"} + {dx_write_null_file "settings/controller/type/vox/gtr.dta"} } {if {file_exists "voxdrum.dta"} - {file_delete "data:/GoldHEN/RB4DX/voxdrum.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/voxdrum.dta" $dx_write_nul} + {dx_file_delete "voxdrum.dta"} + {dx_write_null_file "settings/controller/type/voxdrum.dta"} } {if {file_exists "settings/controller/type/voxdrum.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/voxdrum.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/vox/drum.dta" $dx_write_nul} + {dx_file_delete "settings/controller/type/voxdrum.dta"} + {dx_write_null_file "settings/controller/type/vox/drum.dta"} } {if {file_exists "gtrvox.dta"} - {file_delete "data:/GoldHEN/RB4DX/gtrvox.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/gtrvox.dta" $dx_write_nul} + {dx_file_delete "gtrvox.dta"} + {dx_write_null_file "settings/controller/type/gtrvox.dta"} } {if {file_exists "settings/controller/type/gtrvox.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/gtrvox.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/gtr/vox.dta" $dx_write_nul} + {dx_file_delete "settings/controller/type/gtrvox.dta"} + {dx_write_null_file "settings/controller/type/gtr/vox.dta"} } {if {file_exists "gtrdrum.dta"} - {file_delete "data:/GoldHEN/RB4DX/gtrdrum.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/gtrdrum.dta" $dx_write_nul} + {dx_file_delete "gtrdrum.dta"} + {dx_write_null_file "settings/controller/type/gtrdrum.dta"} } {if {file_exists "settings/controller/type/gtrdrum.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/gtrdrum.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/gtr/drum.dta" $dx_write_nul} + {dx_file_delete "settings/controller/type/gtrdrum.dta"} + {dx_write_null_file "settings/controller/type/gtr/drum.dta"} } {if {file_exists "drumgtr.dta"} - {file_delete "data:/GoldHEN/RB4DX/drumgtr.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/drumgtr.dta" $dx_write_nul} + {dx_file_delete "drumgtr.dta"} + {dx_write_null_file "settings/controller/type/drumgtr.dta"} } {if {file_exists "settings/controller/type/drumgtr.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/drumgtr.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/drum/gtr.dta" $dx_write_nul} + {dx_file_delete "settings/controller/type/drumgtr.dta"} + {dx_write_null_file "settings/controller/type/drum/gtr.dta"} } {if {file_exists "drumvox.dta"} - {file_delete "data:/GoldHEN/RB4DX/drumvox.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/drumvox.dta" $dx_write_nul} + {dx_file_delete "drumvox.dta"} + {dx_write_null_file "settings/controller/type/drumvox.dta"} } {if {file_exists "settings/controller/type/drumvox.dta"} - {file_delete "data:/GoldHEN/RB4DX/settings/controller/type/drumvox.dta"} - {write_file "data:/GoldHEN/RB4DX/settings/controller/type/drum/vox.dta" $dx_write_nul} + {dx_file_delete "settings/controller/type/drumvox.dta"} + {dx_write_null_file "settings/controller/type/drum/vox.dta"} } ) @@ -114,74 +112,74 @@ UPDATE_SETTINGS #define DELETE_INVALID_NOFLAMES_FILES ( - {file_delete "data:/GoldHEN/RB4DX/ps4/track/smasher/gem_smasher_unlit1.entity_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/smasher/fx_smasher_streaks1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/smasher/gem_smashed_util1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/smasher_beams1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/smasher_flash1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/smasher_shockwave1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/spark01_color1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_orb1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_orb_dense1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_shockwave1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_shockwave_forced_persp1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_smoke_plume1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark_cluster1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spark_dense1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/particles/textures/particle_spiral_flare1.bmp_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/fx/flash_pot/particle_smoke1.bmp_ps4"} + {dx_file_delete "ps4/track/smasher/gem_smasher_unlit1.entity_ps4"} + {dx_file_delete "ps4/track/smasher/fx_smasher_streaks1.bmp_ps4"} + {dx_file_delete "ps4/track/smasher/gem_smashed_util1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/smasher_beams1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/smasher_flash1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/smasher_shockwave1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/spark01_color1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/particles/textures/particle_orb1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/particles/textures/particle_orb_dense1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/particles/textures/particle_shockwave1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/particles/textures/particle_shockwave_forced_persp1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/particles/textures/particle_smoke_plume1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/particles/textures/particle_spark1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/particles/textures/particle_spark_cluster1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/particles/textures/particle_spark_dense1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/particles/textures/particle_spiral_flare1.bmp_ps4"} + {dx_file_delete "ps4/track/shared/fx/flash_pot/particle_smoke1.bmp_ps4"} ) ;delete files if settings don't match -{if {&& {file_exists "settings/visuals/faststart.dta"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/startup/mnemonix1.bk2"}} - {file_delete "data:/GoldHEN/RB4DX/ps4/ui/startup/mnemonix1.bk2"} +{if {&& {file_exists "settings/visuals/faststart.dta"} {dx_file_exists "ps4/ui/startup/mnemonix1.bk2"}} + {dx_file_delete "ps4/ui/startup/mnemonix1.bk2"} } -{if {&& {file_exists "settings/visuals/menubg.dta"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/background/meta_background1.scene_ps4"}} - {file_delete "data:/GoldHEN/RB4DX/ps4/ui/background/meta_background1.scene_ps4"} +{if {&& {file_exists "settings/visuals/menubg.dta"} {dx_file_exists "ps4/ui/background/meta_background1.scene_ps4"}} + {dx_file_delete "ps4/ui/background/meta_background1.scene_ps4"} } -{if {&& {file_exists "settings/visuals/micwarn.dta"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/hud1.scene_ps4"}} - {file_delete "data:/GoldHEN/RB4DX/ps4/ui/game/hud1.scene_ps4"} +{if {&& {file_exists "settings/visuals/micwarn.dta"} {dx_file_exists "ps4/ui/game/hud1.scene_ps4"}} + {dx_file_delete "ps4/ui/game/hud1.scene_ps4"} } -{if {&& {file_exists "settings/visuals/noshine.dta"} {file_exists "data:/GoldHEN/RB4DX/ps4/track/shared/fx_noise_b_util1.bmp_ps4"}} - {file_delete "data:/GoldHEN/RB4DX/ps4/track/shared/fx_noise_b_util1.bmp_ps4"} +{if {&& {file_exists "settings/visuals/noshine.dta"} {dx_file_exists "ps4/track/shared/fx_noise_b_util1.bmp_ps4"}} + {dx_file_delete "ps4/track/shared/fx_noise_b_util1.bmp_ps4"} } -{if {&& {file_exists "settings/visuals/noflames.dta"} {file_exists "data:/GoldHEN/RB4DX/ps4/track/shared/smasher_beams1.bmp_ps4"}} +{if {&& {file_exists "settings/visuals/noflames.dta"} {dx_file_exists "ps4/track/shared/smasher_beams1.bmp_ps4"}} DELETE_INVALID_NOFLAMES_FILES } {cond - ({&& {file_exists "data:/GoldHEN/RB4DX/settings/visuals/songtitle.dta"} {file_exists "data:/GoldHEN/RB4DX/settings/visuals/songtitletype1.dta"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay1.entity_ps4"}} - {file_delete "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlay1.entity_ps4"} + ({&& {file_exists "settings/visuals/songtitle.dta"} {file_exists "settings/visuals/songtitletype1.dta"} {dx_file_exists "ps4/ui/game/song_artist_overlay1.entity_ps4"}} + {dx_file_delete "ps4/ui/game/song_artist_overlay1.entity_ps4"} ) - ({&& {file_exists "data:/GoldHEN/RB4DX/settings/visuals/songtitle.dta"} {file_exists "data:/GoldHEN/RB4DX/settings/visuals/songtitletypea.dta"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaya.entity_ps4"}} - {file_delete "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaya.entity_ps4"} + ({&& {file_exists "settings/visuals/songtitle.dta"} {file_exists "settings/visuals/songtitletypea.dta"} {dx_file_exists "ps4/ui/game/song_artist_overlaya.entity_ps4"}} + {dx_file_delete "ps4/ui/game/song_artist_overlaya.entity_ps4"} ) - ({&& {file_exists "data:/GoldHEN/RB4DX/settings/visuals/songtitle.dta"} {file_exists "data:/GoldHEN/RB4DX/settings/visuals/songtitletypetl.dta"} {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaytl.entity_ps4"}} - {file_delete "data:/GoldHEN/RB4DX/ps4/ui/game/song_artist_overlaytl.entity_ps4"} + ({&& {file_exists "settings/visuals/songtitle.dta"} {file_exists "settings/visuals/songtitletypetl.dta"} {dx_file_exists "ps4/ui/game/song_artist_overlaytl.entity_ps4"}} + {dx_file_delete "ps4/ui/game/song_artist_overlaytl.entity_ps4"} ) } ;reset settings that shouldn't save -{if {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/game.layout_ps4"} - {if_else {file_exists "data:/GoldHEN/RB4DX/ps4/ui/game/game1.layout_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/ui/game/game1.layout_ps4"} - {file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/game1.layout_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/game.layout_ps4"} +{if {dx_file_exists "ps4/ui/game/game.layout_ps4"} + {if {dx_file_exists "ps4/ui/game/game1.layout_ps4"} + {dx_file_delete "ps4/ui/game/game1.layout_ps4"} } + {dx_file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/game1.layout_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/game.layout_ps4"} } ;clear invalid files -{if {file_exists "data:/GoldHEN/RB4DX/ps4/config/include/beatmatcher.dta_dta_ps4"} - {file_delete "data:/GoldHEN/RB4DX/ps4/config/include/beatmatcher.dta_dta_ps4"} +{if {dx_file_exists "ps4/config/include/beatmatcher.dta_dta_ps4"} + {dx_file_delete "ps4/config/include/beatmatcher.dta_dta_ps4"} } {if {file_exists "insong.dta"} - {file_delete "data:/GoldHEN/RB4DX/insong.dta"} + {dx_file_delete "insong.dta"} } {if {file_exists "RB4DX.ini"} - {file_delete "data:/GoldHEN/RB4DX/RB4DX.ini"} + {dx_file_delete "RB4DX.ini"} } -{write_file "data:/GoldHEN/RB4DX/speedmod.ini" {array ({/ $speedmod 100})}} +{dx_write_file "speedmod.ini" {array ({/ $speedmod 100})}} {if {file_exists "autoplay.ini"} - {file_delete "data:/GoldHEN/RB4DX/autoplay.ini"} + {dx_file_delete "autoplay.ini"} } {if {file_exists "drunkmode.ini"} - {file_delete "data:/GoldHEN/RB4DX/drunkmode.ini"} + {dx_file_delete "drunkmode.ini"} } \ No newline at end of file diff --git a/_ark/ps4/ui/results/scripts/results_no_part.script b/_ark/ps4/ui/results/scripts/results_no_part.script index b80ebd0..9a32fe1 100644 --- a/_ark/ps4/ui/results/scripts/results_no_part.script +++ b/_ark/ps4/ui/results/scripts/results_no_part.script @@ -8,5 +8,5 @@ (help "The slot value for what Player's data should be used.") (default -1)))) (exit - {file_delete "data:/GoldHEN/RB4DX/insong.dta"} + {dx_file_delete "insong.dta"} ) \ No newline at end of file diff --git a/_build/GoldHEN/plugins/RB4DX-Plugin.prx b/_build/GoldHEN/plugins/RB4DX-Plugin.prx index e8e93e7..01d891e 100644 Binary files a/_build/GoldHEN/plugins/RB4DX-Plugin.prx and b/_build/GoldHEN/plugins/RB4DX-Plugin.prx differ