From fccadb76afb2578cfc4296f803affe3d6e302cb8 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 18 May 2022 15:23:00 +0300 Subject: [PATCH] Migrating to UNITY_ASSETS_DIR prop --- bhl.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bhl.inc.php b/bhl.inc.php index 6d3d5dc..ef41816 100644 --- a/bhl.inc.php +++ b/bhl.inc.php @@ -16,7 +16,7 @@ function bhl_build_dll($mcs_bin) { global $GAME_ROOT; - $dll_file = "$GAME_ROOT/unity/Assets/Plugins/game_bhl.dll"; + $dll_file = get("UNITY_ASSETS_DIR")."/Plugins/game_bhl.dll"; bhl_shell_ensure("build_back_dll $mcs_bin $dll_file " . (is_dev() ? '-debug' : '')); @@ -218,9 +218,9 @@ function bhl_run_ex($bhl_inc_dir, array $bhl_files, $result_file, $debug = true, ensure_rm($err_file); $user_sources = array( - "$GAME_ROOT/unity/Assets/Scripts/bhl/register.cs", + get("UNITY_ASSETS_DIR")."/Scripts/bhl/register.cs", "$GAME_ROOT/dll_src/bhl/autobind.cs", - "$GAME_ROOT/unity/Assets/Scripts/bhl/autobind.cs" + get("UNITY_ASSETS_DIR")."/Scripts/bhl/autobind.cs" ); $postproc_sources = array(