Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Get host OS information #45

Open
Beyley opened this issue Oct 26, 2022 · 1 comment
Open

Get host OS information #45

Beyley opened this issue Oct 26, 2022 · 1 comment

Comments

@Beyley
Copy link

Beyley commented Oct 26, 2022

Is it possible to get host OS information? Specifically to be able to get this check to work properly
https://github.com/dotnet/Silk.NET/blob/23f9bd4d67ad21c69fbd69cc38a62fb2c0ec3927/src/Core/Silk.NET.Core/Loader/SearchPathContainer.cs#L20
(also is it possible to get specifically whether this is running under a non-browser but still WASM? RuntimeInformation.OSDescription returns "Browser" even under wasmtime or wasmer)

@Eagle3386
Copy link

Given #22's closing comment, you might be able to access host information via reflection.

Though, given #26's closing comment, I suspect that requires your own custom host in order to access information outside WASI's "virtual host world"…

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants