Kamil Jarosz
5760aa7a8e
chore: Use PanicHookInfo instead of PanicInfo
...
Renamed in Rust 1.81.0, see https://releases.rs/docs/1.81.0/#compatibility-notes
2024-09-13 00:47:41 +02:00
Kamil Jarosz
e8f52fd8b5
video: Use cache dir for storing downloaded OpenH264 library
...
Using the executable's parent directory is a bad idea in most cases,
as the place where Ruffle is installed should not be modified.
This patch changes the directory where the OpenH264 library is saved to
the cache directory, which should always be writable.
2024-09-12 13:05:27 +02:00
Kamil Jarosz
3da0246856
desktop: Add cache directory to options
2024-09-12 13:05:27 +02:00
Kamil Jarosz
22fda90f92
video: Prefer loading system OpenH264 library to downloading it
...
Some systems do have OpenH264 installed and in order to get
rid of the delay caused by downloading the library
(and needlessly downloading it in the first place),
an attempt is made first to load OpenH264 as a system library.
When loading fails (or version is mismatched), only then Ruffle
downloads OpenH264 and uses that version of the library.
2024-09-12 12:03:02 +02:00
Kamil Jarosz
d0ede26cce
desktop: Install Ruffle metadata in PKGBUILD
...
This most importantly adds a way of opening Ruffle using GUI.
2024-09-12 11:00:32 +02:00
Crowdin Bot
3b6d5088d1
chore: Update translations from Crowdin
2024-09-11 23:27:35 +02:00
Kamil Jarosz
75e4eaaba5
desktop: Improve filters in file pickers
2024-09-11 13:48:16 +02:00
Kamil Jarosz
14302b8287
desktop: Internationalize file pickers
2024-09-11 13:48:16 +02:00
TÖRÖK Attila
490c02bb58
core,desktop: Update to `winit` `v0.30.5` and latest `egui` from git
2024-09-11 13:24:14 +02:00
Crowdin Bot
fac9b33f79
chore: Update translations from Crowdin
2024-09-10 00:24:03 +02:00
Crowdin Bot
0e1568b71b
chore: Update translations from Crowdin
2024-09-08 23:20:02 +02:00
Mestery
b616f559e7
avm2: Stub desktop AIR APIs
2024-09-08 10:38:54 +02:00
Crowdin Bot
357508ae86
chore: Update translations from Crowdin
2024-09-08 00:45:59 +02:00
Crowdin Bot
43f5aaaab9
chore: Update translations from Crowdin
2024-09-06 23:23:36 +02:00
Kamil Jarosz
e179b41ca7
desktop: Add network access dialog
...
Add network access dialog written in egui and replace
rfd's socket confirmation with it.
2024-09-06 21:46:59 +02:00
Crowdin Bot
92686b10b2
chore: Update translations from Crowdin
2024-09-06 09:02:25 +02:00
Kamil Jarosz
d80246f85a
desktop: Move icon.svg to packages/linux
...
Currently, the SVG icon is used only in Linux packages and moving it
to packages/linux makes it easier to package downstream.
Additionally it makes it possible to adapt it for Linux desktop
specifically.
2024-09-05 11:29:20 +02:00
Kamil Jarosz
b56d9234ff
desktop: Add ruffle to conflicts in PKGBUILD
...
This ensures that the package conflicts with every
other package providing ruffle.
2024-09-05 11:29:20 +02:00
Kamil Jarosz
b18d21261e
chore: Move PKGBUILD to desktop/packages
2024-09-05 11:29:20 +02:00
Crowdin Bot
f538f67a17
chore: Update translations from Crowdin
2024-09-04 23:22:12 +02:00
Kamil Jarosz
6d577f50e4
desktop: Use MessageDialog for messages
...
This commit replaces rfd's MessageDialog with our custom MessageDialog
written using egui.
2024-09-04 20:59:31 +02:00
Kamil Jarosz
fc13643cc8
desktop: Implement MessageDialog in egui
...
The implemented MessageDialog is meant to replace the rfd MessageDialog
in order to be consistent with other UI elements.
2024-09-04 20:59:31 +02:00
Kamil Jarosz
5cdf4c8030
desktop: Add OpenDialog event for opening dialogs
...
This event replaces AskToOpenUrl and is more generic, because
it may open any dialog (specified as an argument).
2024-09-04 20:59:31 +02:00
Kamil Jarosz
b4422bffc4
desktop: Add LocalizableText struct
...
This structure allows specifying localizable text when there's no locale
available, but it will be available in the future (e.g. when rendering).
It has several advantages over specifying bare labels:
1. labels cannot be easily mixed with non-localizable text,
2. it's easy to find labels in use by looking for enum variant usages.
It's also better than providing a function of locale which requires
complicated type definitions and dynamic dispatch.
2024-09-04 20:59:31 +02:00
Kamil Jarosz
646ab4e5bc
desktop: Add show_ prefix to appropriate methods from Dialogs
2024-09-04 20:59:31 +02:00
Crowdin Bot
f82f58f28a
chore: Update translations from Crowdin
2024-09-04 10:24:56 +02:00
Crowdin Bot
5efe609dbc
chore: Update translations from Crowdin
2024-09-03 17:44:43 +02:00
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