Get full path on read

This commit is contained in:
korenkonder
2024-03-05 00:28:12 +03:00
parent 3adde6a26f
commit f485dfc804
3 changed files with 28 additions and 1 deletions
+4
View File
@@ -935,6 +935,7 @@ static void data_load_inner(stream& s) {
data_struct_path& data_path = ds->data_paths.back();
t -= t_len[count - j - 1] + 1;
data_path.path.assign(t, t_len[count - j - 1]);
path_get_full_path(data_path.path);
}
free_def(t_len);
@@ -961,6 +962,9 @@ static void data_load_inner(stream& s) {
else
add_data_rom_path.assign(add_data, add_data_len);
path_get_full_path(main_rom_path);
path_get_full_path(add_data_rom_path);
if (main_rom_path.size() && main_rom_path.back() == '\\')
main_rom_path.pop_back();