New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't work screenshot (Alt+1, Alt+3) in web app #423
Comments
In the latest Pyxel, I suppressed crashing error when capture functions are used. To enabled capture functions on the web like other platforms, the chrono crate of Rust should work on the web and I also need to come up with a way to download save file in Emscripten file system. |
@kitao Doesn't it works? |
@km19809 It can be compiled. But when I called chrono::Local::now() with Emscripten, it crushed. |
I tried chrono::Local::Now() at the beginning of Pyxel code for test. |
It's weird because chrono::Local::now() should target this function. [dependencies]
array-macro = "2.1"
chrono = {version = "0.4.22", default-features = false, features = ["clock", "std"]} # `wasmbind` is one of default-features.
# ... I don't understand why. |
In the latest version of Pyxel on the web, you can save the output file. |
I became able to do that. Thank you for your nice work. |
as is:
Alt + 1 or Alt + 3 cause freeze in web app.
to be:
I want to download screenshot pictures.
environment:
https://kitao.github.io/pyxel/wasm/examples/script_test.html and others.
-Microsoft Edge or Firefox
-Windows11
The text was updated successfully, but these errors were encountered: