Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
Fixed including bad valve.rc files from huds using weird names like _valve.rc to disable it. Literally only happened with BUDhud.
  • Loading branch information
a-horsey authored Jan 30, 2023
1 parent 442452e commit cc2b30f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion _dev/batch/compile_and_pack.bat
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ IF EXIST valve.rc ren "valve.rc" "valve_rc_temp"
::scan for other valve.rc files in custom
cd "%dev_folder%\%vpk_name%"
IF EXIST preloading_temp del preloading_temp
dir "%custom_folder%" /s /b | find /i "valve.rc" >> preloading_temp
dir "%custom_folder%" /s /b | findstr /I /R /C:"\<valve.rc\>" >> preloading_temp
set "custom_valve_rc=""
for /f "delims=*" %%f in (preloading_temp) do set custom_valve_rc=%%f

Expand All @@ -180,6 +180,12 @@ cd "%dev_folder%\%vpk_name%\cfg"
IF EXIST valve_rc_temp ren "valve_rc_temp" "valve.rc"

::add preloading, tracer disabling and error hiding - disabled for now
set echo_newline=false
IF %automatic_preloading%==on set echo_newline=true
IF %disable_tracers%==on set echo_newline=true
IF %hide_errors%==on set echo_newline=true
IF %echo_newline%==true echo: >> valve.rc

IF %automatic_preloading%==on echo exec horsies_viewmodel_editor/preloading.cfg >> valve.rc
IF %disable_tracers%==on echo r_drawtracers_firstperson 0 >> valve.rc
IF %hide_errors%==on echo con_filter_enable 1; con_filter_text_out "particle" >> valve.rc
Expand Down

0 comments on commit cc2b30f

Please sign in to comment.