begin working on watch window stylization for file system evaluations

This commit is contained in:
Ryan Fleury
2025-02-16 22:16:59 -08:00
parent c77f2de156
commit 5d8e6dac91
10 changed files with 83 additions and 82 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ ASYNC_WORK_DEF(fs_stream_work)
ProfBegin("load \"%.*s\"", str8_varg(path));
FileProperties pre_props = os_properties_from_file_path(path);
U64 range_size = dim_1u64(range);
U64 read_size = Min(pre_props.size, range_size);
U64 read_size = Min(pre_props.size - range.min, range_size);
OS_Handle file = os_file_open(OS_AccessFlag_Read|OS_AccessFlag_ShareRead|OS_AccessFlag_ShareWrite, path);
B32 file_handle_is_valid = !os_handle_match(os_handle_zero(), file);
U64 data_arena_size = read_size+ARENA_HEADER_SIZE;