Mock out temp_file.odin stuff

This commit is contained in:
gingerBill committed 2024-05-14 18:11:50 +01:00
1 parent 361be301fa
commit 91b7cdaad2
10 files changed
+194 -34

No files matched your search

-8
View File
@@ -4,14 +4,6 @@ package os2
import "base:runtime"
import win32 "core:sys/windows"
_create_temp :: proc(dir, pattern: string) -> (^File, Error) {
return nil, nil
}
_mkdir_temp :: proc(dir, pattern: string, allocator: runtime.Allocator) -> (string, Error) {
return "", nil
}
_temp_dir :: proc(allocator: runtime.Allocator) -> (string, runtime.Allocator_Error) {
n := win32.GetTempPathW(0, nil)
if n == 0 {