Better build and project file platform layer
This commit is contained in:
parent
db99033197
commit
2469b45694
8 changed files with 137 additions and 70 deletions
26
src/project_web.odin
Normal file
26
src/project_web.odin
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#+build wasm32, wasm64p32
|
||||
package main
|
||||
|
||||
ProjectReadErrorType :: enum {
|
||||
LoadingProjectNotSupportedOnWeb,
|
||||
}
|
||||
|
||||
ProjectWriteErrorType :: enum {
|
||||
SavingProjectNotSupportedOnWeb,
|
||||
}
|
||||
|
||||
ProjectWriteError :: union {
|
||||
ProjectWriteErrorType,
|
||||
}
|
||||
|
||||
ProjectReadError :: union {
|
||||
ProjectReadErrorType,
|
||||
}
|
||||
|
||||
_project_write :: proc(project: ^ProjectData, path: string) -> ProjectWriteError {
|
||||
return ProjectWriteErrorType.SavingProjectNotSupportedOnWeb;
|
||||
}
|
||||
|
||||
_project_read :: proc(project: ^ProjectData, path: string) -> ProjectReadError {
|
||||
return ProjectReadErrorType.LoadingProjectNotSupportedOnWeb;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue