diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-10-28 00:40:07 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-08 12:42:26 +0100 |
| commit | f63c2094784849ab1ebe1688558e90410af83152 (patch) | |
| tree | d92d1dc0bce5c0753340535f5349c3c6b8731cff /core/encoding/hxa/write.odin | |
| parent | 1cbd60f40e974eead2b46bc5fdd732c6357dfdfb (diff) | |
Convert `core:encoding/hxa`
Diffstat (limited to 'core/encoding/hxa/write.odin')
| -rw-r--r-- | core/encoding/hxa/write.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/encoding/hxa/write.odin b/core/encoding/hxa/write.odin index 5bb950e81..e8ef9a139 100644 --- a/core/encoding/hxa/write.odin +++ b/core/encoding/hxa/write.odin @@ -1,7 +1,7 @@ package encoding_hxa -import "core:os" -import "core:mem" +import os "core:os/os2" +import "core:mem" Write_Error :: enum { None, @@ -18,7 +18,7 @@ write_to_file :: proc(filepath: string, file: File) -> (err: Write_Error) { defer delete(buf) write_internal(&Writer{data = buf}, file) - if !os.write_entire_file(filepath, buf) { + if os.write_entire_file(filepath, buf) != nil { err =.Failed_File_Write } return |