From f044c6d5ebab67848d50ec8f250f256caaf44b75 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Thu, 6 Aug 2026 15:06:10 -0400 Subject: [PATCH] cross-platform path for refactor_exe in void refactor_file( char const* path, char const* refactor_script ) --- base/helpers/misc.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/base/helpers/misc.hpp b/base/helpers/misc.hpp index 2b949a7..2db55f1 100644 --- a/base/helpers/misc.hpp +++ b/base/helpers/misc.hpp @@ -48,7 +48,11 @@ void refactor_file( char const* path, char const* refactor_script ) GEN_ASSERT_NOT_NULL(path); GEN_ASSERT_NOT_NULL(refactor_script); - StrBuilder command = strbuilder_make_str(_ctx->Allocator_Temp, txt("refactor ")); + Str refactor_exe = GEN_SYSTEM_WINDOWS ? + txt("\"..\\scripts\\helpers\\refactor.exe\" ") + : txt("../scripts/helpers/refactor "); + + StrBuilder command = strbuilder_make_str(_ctx->Allocator_Temp, refactor_exe); // strbuilder_append_str( & command, txt("-debug ") ); strbuilder_append_str( & command, txt("-num=1 ") ); strbuilder_append_fmt( & command, "-src=%s ", path );