wasm: support vendor:stb/truetype and vendor:fontstash

This commit is contained in:
Laytan Laats
2024-07-02 16:03:42 +02:00
parent 4e18e1b191
commit 10c68a8951
8 changed files with 168 additions and 18 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ wasi_match_preopen :: proc(path: string) -> (wasi.fd_t, string, bool) {
prefix_matches :: proc(prefix, path: string) -> bool {
// Empty is valid for any relative path.
if len(prefix) == 0 && len(path) > 0 && path[0] == '/' {
if len(prefix) == 0 && len(path) > 0 && path[0] != '/' {
return true
}