@@ -99,8 +99,8 @@ func erase_translations():
9999 if trans_path .ends_with ('.csv' ):
100100 for x_file in DialogicUtil .listdir (trans_path .get_base_dir ()):
101101 if x_file .ends_with ('.translation' ):
102- trans_files .erase (trans_path .get_base_dir ().plus_file (x_file ))
103- dir .remove (trans_path .get_base_dir ().plus_file (x_file ))
102+ trans_files .erase (trans_path .get_base_dir ().path_join (x_file ))
103+ dir .remove (trans_path .get_base_dir ().path_join (x_file ))
104104 dir .remove (DialogicUtil .get_project_setting ('dialogic/translation_path' , '' ))
105105
106106 ProjectSettings .set_setting ('dialogic/translation_path' , null )
@@ -110,8 +110,8 @@ func erase_translations():
110110 dir .remove (timeline_path .trim_suffix ('.dtl' )+ '_translation.csv' )
111111 for x_file in DialogicUtil .listdir (timeline_path .get_base_dir ()):
112112 if x_file .ends_with ('.translation' ):
113- trans_files .erase (timeline_path .get_base_dir ().plus_file (x_file ))
114- dir .remove (timeline_path .get_base_dir ().plus_file (x_file ))
113+ trans_files .erase (timeline_path .get_base_dir ().path_join (x_file ))
114+ dir .remove (timeline_path .get_base_dir ().path_join (x_file ))
115115
116116 var tml :DialogicTimeline = load (timeline_path )
117117 for event in tml .get_events ():
@@ -141,7 +141,7 @@ func _on_TransUpdate_pressed():
141141
142142 if ! mode :
143143 for file in DialogicUtil .listdir (timeline_path .get_base_dir ()):
144- file = timeline_path .get_base_dir ().plus_file (file )
144+ file = timeline_path .get_base_dir ().path_join (file )
145145 if file .ends_with ('.translation' ):
146146 if not file in trans_files :
147147 trans_files .append (file )
@@ -150,7 +150,7 @@ func _on_TransUpdate_pressed():
150150 if mode :
151151 var trans_folder = DialogicUtil .get_project_setting ('dialogic/translation_path' , '' ).get_base_dir ()
152152 for file in DialogicUtil .listdir (trans_folder ):
153- file = trans_folder .plus_file (file )
153+ file = trans_folder .path_join (file )
154154 if file .ends_with ('.translation' ):
155155 if not file in trans_files :
156156 trans_files .append (file )
0 commit comments