eliminate 'watch' as a view ui rule, move formally into just being a regular view ui build. hook up user file saving. fix metadesk parser - newlines must terminate *all* active implicit set parsing work.

This commit is contained in:
Ryan Fleury
2025-02-20 17:25:38 -08:00
parent 428a3f2536
commit cc966deb7c
7 changed files with 1901 additions and 1866 deletions
+6
View File
@@ -443,6 +443,12 @@ os_copy_file_path(String8 dst, String8 src)
return result;
}
internal B32
os_move_file_path(String8 dst, String8 src)
{
// TODO(rjf)
}
internal String8
os_full_path_from_path(Arena *arena, String8 path)
{
+1
View File
@@ -208,6 +208,7 @@ internal FileProperties os_properties_from_file(OS_Handle file);
internal OS_FileID os_id_from_file(OS_Handle file);
internal B32 os_delete_file_at_path(String8 path);
internal B32 os_copy_file_path(String8 dst, String8 src);
internal B32 os_move_file_path(String8 dst, String8 src);
internal String8 os_full_path_from_path(Arena *arena, String8 path);
internal B32 os_file_path_exists(String8 path);
internal B32 os_folder_path_exists(String8 path);
+11
View File
@@ -490,6 +490,17 @@ os_copy_file_path(String8 dst, String8 src)
return result;
}
internal B32
os_move_file_path(String8 dst, String8 src)
{
Temp scratch = scratch_begin(0, 0);
String16 dst16 = str16_from_8(scratch.arena, dst);
String16 src16 = str16_from_8(scratch.arena, src);
B32 result = MoveFileW((WCHAR*)src16.str, (WCHAR*)dst16.str);
scratch_end(scratch);
return result;
}
internal String8
os_full_path_from_path(Arena *arena, String8 path)
{