From a64d6fc3ed63a3463aeaeba2c01bcfdda6a51e62 Mon Sep 17 00:00:00 2001 From: Juju Adams Date: Sat, 16 Dec 2023 14:07:07 +0000 Subject: [PATCH] Fixes some backslashes sneaking in --- .../ChatterboxLocalizationBuild.gml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/ChatterboxLocalizationBuild/ChatterboxLocalizationBuild.gml b/scripts/ChatterboxLocalizationBuild/ChatterboxLocalizationBuild.gml index db556a4..1c54102 100644 --- a/scripts/ChatterboxLocalizationBuild/ChatterboxLocalizationBuild.gml +++ b/scripts/ChatterboxLocalizationBuild/ChatterboxLocalizationBuild.gml @@ -68,8 +68,8 @@ function ChatterboxLocalizationBuild(_yarn_path_array, _csv_path_array) var _i = 0; repeat(_count) { - var _local_path = _yarn_path_array[_i]; - var _absolute_path = _root_directory + _local_path; + var _local_path = __ChatterboxReplaceBackslashes(_yarn_path_array[_i]); + var _absolute_path = __ChatterboxReplaceBackslashes(_root_directory + _local_path); var _buffer = buffer_load(_absolute_path); var _source = new __ChatterboxClassSource(_local_path, _buffer, false); @@ -96,8 +96,8 @@ function ChatterboxLocalizationBuild(_yarn_path_array, _csv_path_array) buffer_seek(_output_buffer, buffer_seek_start, 0); buffer_write(_output_buffer, buffer_text, "Status,File,Node,Line ID,Hash,Text\n"); - var _local_path = _csv_path_array[_c]; - var _absolute_path = _root_directory + _local_path; + var _local_path = __ChatterboxReplaceBackslashes(_csv_path_array[_c]); + var _absolute_path = __ChatterboxReplaceBackslashes(_root_directory + _local_path); ds_map_clear(_csv_loc_map); __ChatterboxLocalizationLoadIntoMap(_absolute_path, _csv_loc_map, true);