wasm: support vendor:stb/truetype and vendor:fontstash
This commit is contained in:
1 parent
4e18e1b191
commit
10c68a8951
8 files changed
+168
-18
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user