From 69ec9dd640e9f9f6a5be9d7724fdb7611dd16050 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 18 May 2022 15:01:57 +0300 Subject: [PATCH] Migrating to UNITY_ASSETS_DIR prop --- config.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config.inc.php b/config.inc.php index 22b5a8a..9885e94 100644 --- a/config.inc.php +++ b/config.inc.php @@ -30,8 +30,7 @@ task('config_worker', function(array $args) function config_base_dir() { - global $GAME_ROOT; - return "$GAME_ROOT/unity/Assets/Configs/"; + return get("UNITY_ASSETS_DIR") . "/Configs"; } function config_build_dir() @@ -169,7 +168,7 @@ function config_sync_build_dir_with_prod() $build_ext_dir = config_get_build_ext_dir(); ensure_mkdir($build_ext_dir); - ensure_sync($build_ext_dir, "$GAME_ROOT/unity/Assets/Resources/ext_config/"); + ensure_sync($build_ext_dir, get("UNITY_ASSETS_DIR")."/Resources/ext_config/"); } function config_make_standalone_ext_bundle(array $configs, $file_path)