Commit Graph

1109 Commits

Author SHA1 Message Date
Nathan Adams 038a714dbf desktop: Use demangling in tracy 2024-09-02 02:19:15 +02:00
Nathan Adams 2d6d4bc8f5 desktop: Update tracy and bump profiling 2024-09-02 02:19:15 +02:00
Kamil Jarosz 898db260a3 core: Add support for wider range of key codes
This patch changes the definition of KeyCode from an enum,
which was constraining the possible key codes, to a struct with
a u32 field, which covers all possible cases of a key code.

Key codes in Flash are not related to the physical buttons,
but rather to logical button values.
For instance, typing a non-ASCII key produces a key code related
to that character, and using a non-ANSI keyboard or a layout different
from US QWERTY also produces results matching that assumption.
2024-09-01 21:02:34 +02:00
Crowdin Bot 556fd7306d chore: Update translations from Crowdin 2024-08-31 11:49:48 +02:00
Kamil Jarosz a227b51a27 desktop: Use Open URL dialog instead of rfd for opening URLs 2024-08-30 13:13:03 +02:00
Kamil Jarosz 25570ef374 desktop: Add Open URL dialog 2024-08-30 13:13:03 +02:00
Kamil Jarosz 263ef4696e frontend_utils: Replace confirm_website_navigation with navigate_to_website of NavigatorInterface
This makes it possible to implement "Open URL" dialogs asynchronously.
2024-08-30 13:13:03 +02:00
Kamil Jarosz c9839a36f5 desktop: Rename RfdNavigatorInterface to DesktopNavigatorInterface
The interface does not have to necessarily use rfd.
2024-08-30 13:13:03 +02:00
Kamil Jarosz f840b5b70a desktop: Rename event OpenURL to Open
The name OpenURL is ambiguous as it may also mean that a URL should be
opened in the browser.
2024-08-30 13:13:03 +02:00
TÖRÖK Attila c930b0c77f chore: Update to `proc-macro-crate` `v3.2.0`, deduplicate `toml_edit` and `winnow` 2024-08-27 17:12:03 +02:00
Kamil Jarosz 713224c465 desktop: Allow only one file picker open at a time 2024-08-26 23:45:55 +02:00
Kamil Jarosz be8be123ba desktop: Move pick_file to picker.rs 2024-08-26 23:45:55 +02:00
Tom Schuster 48170bd8e6 desktop: Allow starting bookmarks from the bookmarks dialog 2024-08-26 15:08:33 +02:00
Crowdin Bot c869505e88 chore: Update translations from Crowdin 2024-08-25 23:17:10 +02:00
Crowdin Bot 6fca7444b6 chore: Update translations from Crowdin 2024-08-24 23:17:43 +02:00
Crowdin Bot bfd43297be chore: Update translations from Crowdin 2024-08-24 00:52:55 +02:00
sleepycatcoding c047358ab5 desktop: Change fullscreen fscommand to use event loop events
Previously the fullscreen state was set on the window directly causing a desync with the rest of the player code.
2024-08-23 21:17:25 +02:00
Kamil Jarosz 9f8b89168c chore: Move rfd dependency to workspace
This makes sure there's only one version of rfd
used and fixes Flatpak compilation issues.
2024-08-22 12:22:12 +02:00
sleepycatcoding d8b4ec0404 desktop: Make F11 toggle fullscreen instead of just entering
This allows you to leave fullscreen the same you enter it.
2024-08-21 15:08:33 +02:00
sleepycatcoding eb3dec3d5d desktop: Make shortcuts work in fullscreen and no-gui mode 2024-08-21 15:08:33 +02:00
Kamil Jarosz 56f092be2e desktop: Add "Exit Full Screen" option to context menu
This option allows the user to exit full screen
without knowing the Esc shortcut.
2024-08-21 14:31:56 +02:00
Crowdin Bot 2889a715ad chore: Update translations from Crowdin 2024-08-20 23:41:06 +02:00
Kamil Jarosz 4ef26ac9ba desktop: Use F11 as fullscreen shortcut
This patch removes Alt+Enter as the shortcut and replaces it with F11,
additionally the shortcut hint is added to the menu.
2024-08-20 20:12:51 +02:00
Kamil Jarosz 63b373d739 desktop: Make file pickers asynchronous
This patch fixes the problem of Ruffle not responding
when picking a file.
2024-08-20 15:30:50 +02:00
Kamil Jarosz 4918596f71 desktop: Remove Windows workaround for picking files
See https://github.com/rust-windowing/winit/issues/2291#issuecomment-2277033786
2024-08-20 15:30:50 +02:00
Kamil Jarosz 8755dd95cc desktop: Use Arc+Mutex for PathOrUrlField.value
This allows modifying it asynchronously.
2024-08-20 15:30:50 +02:00
Kamil Jarosz d487d3f1aa desktop: Rename PathOrUrlField::value() to result() 2024-08-20 15:30:50 +02:00
Kamil Jarosz 87bf7b5b19 desktop: Set main window as parent of file pickers
This patch makes sure that all file pickers are children of Ruffle.
This way, file pickers will hover over the main window and will have
to be dismissed before the user may interact with it.
2024-08-20 13:47:22 +02:00
dependabot[bot] 5b3c9722d5 build(deps): bump the cargo-minor group with 9 updates
Bumps the cargo-minor group with 9 updates:

| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap) | `4.5.15` | `4.5.16` |
| [bytemuck](https://github.com/Lokathor/bytemuck) | `1.16.3` | `1.17.0` |
| [serde](https://github.com/serde-rs/serde) | `1.0.207` | `1.0.208` |
| [tokio](https://github.com/tokio-rs/tokio) | `1.39.2` | `1.39.3` |
| [indexmap](https://github.com/indexmap-rs/indexmap) | `2.3.0` | `2.4.0` |
| [serde_json](https://github.com/serde-rs/json) | `1.0.124` | `1.0.125` |
| [fluent-templates](https://github.com/XAMPPRocky/fluent-templates) | `0.9.4` | `0.10.1` |
| [syn](https://github.com/dtolnay/syn) | `2.0.74` | `2.0.75` |
| [reqwest](https://github.com/seanmonstar/reqwest) | `0.12.5` | `0.12.6` |


Updates `clap` from 4.5.15 to 4.5.16
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.15...clap_complete-v4.5.16)

Updates `bytemuck` from 1.16.3 to 1.17.0
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md)
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.16.3...v1.17.0)

Updates `serde` from 1.0.207 to 1.0.208
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.207...v1.0.208)

Updates `tokio` from 1.39.2 to 1.39.3
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.39.2...tokio-1.39.3)

Updates `indexmap` from 2.3.0 to 2.4.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.3.0...2.4.0)

Updates `serde_json` from 1.0.124 to 1.0.125
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.124...1.0.125)

Updates `fluent-templates` from 0.9.4 to 0.10.1
- [Release notes](https://github.com/XAMPPRocky/fluent-templates/releases)
- [Changelog](https://github.com/XAMPPRocky/fluent-templates/blob/master/CHANGELOG.md)
- [Commits](https://github.com/XAMPPRocky/fluent-templates/compare/fluent-templates-v0.9.4...fluent-templates-v0.10.1)

Updates `syn` from 2.0.74 to 2.0.75
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/2.0.74...2.0.75)

Updates `reqwest` from 0.12.5 to 0.12.6
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.12.5...v0.12.6)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: bytemuck
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-minor
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-minor
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: fluent-templates
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-minor
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 00:58:16 +02:00
Crowdin Bot e1c05da618 chore: Update translations from Crowdin 2024-08-18 00:27:46 +02:00
Crowdin Bot d885697d9b chore: Update translations from Crowdin 2024-08-16 23:30:18 +02:00
Crowdin Bot dda4b57109 chore: Update translations from Crowdin 2024-08-15 23:52:34 +02:00
Crowdin Bot fea16a0893 chore: Update translations from Crowdin 2024-08-12 23:32:47 +02:00
TÖRÖK Attila 9239cb8a5d chore: A couple typo fixes in comments here and there 2024-08-12 21:36:51 +02:00
dependabot[bot] f51dcf8d55 build(deps): bump the cargo-minor group with 8 updates
Bumps the cargo-minor group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap) | `4.5.13` | `4.5.15` |
| [serde](https://github.com/serde-rs/serde) | `1.0.204` | `1.0.206` |
| [linkme](https://github.com/dtolnay/linkme) | `0.3.27` | `0.3.28` |
| [serde_json](https://github.com/serde-rs/json) | `1.0.122` | `1.0.124` |
| [syn](https://github.com/dtolnay/syn) | `2.0.72` | `2.0.74` |
| [fontdb](https://github.com/RazrFalcon/fontdb) | `0.20.0` | `0.21.0` |
| [async-io](https://github.com/smol-rs/async-io) | `2.3.3` | `2.3.4` |
| [tempfile](https://github.com/Stebalien/tempfile) | `3.11.0` | `3.12.0` |


Updates `clap` from 4.5.13 to 4.5.15
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.13...v4.5.15)

Updates `serde` from 1.0.204 to 1.0.206
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.204...v1.0.206)

Updates `linkme` from 0.3.27 to 0.3.28
- [Release notes](https://github.com/dtolnay/linkme/releases)
- [Commits](https://github.com/dtolnay/linkme/compare/0.3.27...0.3.28)

Updates `serde_json` from 1.0.122 to 1.0.124
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.122...v1.0.124)

Updates `syn` from 2.0.72 to 2.0.74
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/2.0.72...2.0.74)

Updates `fontdb` from 0.20.0 to 0.21.0
- [Changelog](https://github.com/RazrFalcon/fontdb/blob/master/CHANGELOG.md)
- [Commits](https://github.com/RazrFalcon/fontdb/compare/v0.20.0...v0.21.0)

Updates `async-io` from 2.3.3 to 2.3.4
- [Release notes](https://github.com/smol-rs/async-io/releases)
- [Changelog](https://github.com/smol-rs/async-io/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/async-io/compare/v2.3.3...v2.3.4)

Updates `tempfile` from 3.11.0 to 3.12.0
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/commits)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: linkme
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: fontdb
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-minor
- dependency-name: async-io
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo-minor
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 16:45:39 +02:00
Crowdin Bot e8a4f2f21f chore: Update translations from Crowdin 2024-08-12 04:03:33 +02:00
Moulins 47030b4f5b core: remove UpdateContext's unused lifetime and reborrow method 2024-08-10 22:53:27 +02:00
Crowdin Bot a475845022 chore: Update translations from Crowdin 2024-08-10 02:08:16 +02:00
Crowdin Bot b9054c4f45 chore: Update translations from Crowdin 2024-08-09 00:01:46 +02:00
Tom Schuster c94004271b desktop: Enable LZMA feature by default 2024-08-07 20:08:42 +02:00
Nathan Adams 3357904d1e desktop: Change mime type of bundle + change text of ruffle feature description 2024-08-06 22:46:23 +02:00
Nathan Adams 579afd728e desktop: Make desktop shortcut optional 2024-08-06 22:46:23 +02:00
Nathan Adams 5df2636dee desktop: Add wix config and build msi as part of release 2024-08-06 22:46:23 +02:00
Nathan Adams dc3a3a9228 desktop: Fix version info embedding inside exe 2024-08-06 22:46:23 +02:00
Nathan Adams 32c7c22b50 desktop: Use a better ico that has an actual 256x256 icon, rather than a badly upscaled 64x64 one 2024-08-06 22:46:23 +02:00
TÖRÖK Attila 124310986f render,desktop: Switch to `wgpu` `v22.1.0` and latest `egui` without `winit` 0.30
I opted to enable dithering in egui, because why not.
2024-08-06 15:00:38 +02:00
TÖRÖK Attila 799b536766 render: Remove the `render_trace` feature
Since wgpu has (temporarily) removed its `trace` feature.
https://github.com/gfx-rs/wgpu/pull/5975
https://github.com/gfx-rs/wgpu/issues/5974
https://github.com/gfx-rs/wgpu/pull/5897
2024-08-06 15:00:38 +02:00
Crowdin Bot c7ecaf9ae4 chore: Update translations from Crowdin 2024-08-05 23:56:21 +02:00
Crowdin Bot 3b482b176e chore: Update translations from Crowdin 2024-08-05 13:37:33 +02:00
Kamil Jarosz 4d85307c47 desktop: Update screenshot URLs to point to a commit 2024-08-03 18:58:44 +02:00