Commit Graph

11375 Commits

Author SHA1 Message Date
Moulins 5f83b45692 avm2: Add `Avm2Button::all_state_children` to centralize button child ordering 2024-01-23 22:43:13 +01:00
Moulins e014d7c023 avm2: Use inner mutability instead of `GcCell` in `Avm2Button` 2024-01-23 22:43:13 +01:00
Moulins d1cbe46e25 avm1: Use inner mutability instead of `GcCell` in `Avm1Button` 2024-01-23 22:43:13 +01:00
Tom Schuster fbab0f6521 avm2: FileReference save test 2024-01-23 18:43:36 +01:00
Tom Schuster e4e0996fa1 avm2: FileReference load test 2024-01-23 18:43:36 +01:00
Tom Schuster 601748a987 avm2: FileReference browse select test 2024-01-23 18:43:36 +01:00
Tom Schuster 154e7e52ae avm2: FileReference browse canceling test 2024-01-23 18:43:36 +01:00
Tom Schuster 84e3280a41 avm2: Basic tests for FileReference 2024-01-23 18:43:36 +01:00
Tom Schuster 07afb04896 avm2: Fix FileFilter description getter 2024-01-23 18:43:36 +01:00
Tom Schuster 3ddf0aec28 avm2: Implement FileReference save 2024-01-23 18:43:36 +01:00
Tom Schuster 9101ab322e avm2: Implement flash.net.FileReference size 2024-01-23 18:43:36 +01:00
Tom Schuster c73be131f0 avm2: Implement flash.net.FileReference name 2024-01-23 18:43:36 +01:00
Tom Schuster fff841a22e avm2: Implement FileReference browse 2024-01-23 18:43:36 +01:00
Tom Schuster e7b8b75d07 avm2: Basic FileReference object boilerplate 2024-01-23 18:43:36 +01:00
Crowdin Bot 430463ecd3 chore: Update translations from Crowdin 2024-01-23 12:38:25 +01:00
Aaron Hill dbcefd060f debug_ui: Add 'Show Domains' menu to view domains and classes
This opens a searchable list (similar to what we have for display
objects), which shows a tree of Domains and their associated classes.

Currently, clicking on the domain/class buttons doesn't do anything.
In a follow-up, I'm planning to add additional windows to display
information about a class.
2024-01-23 11:34:14 +01:00
Lv Yitian bebadb450f
avm2: Make `flash.system.Capabilities#playerType` return "Desktop" within the AIR runtime
Unless the SWF is loaded by an HTML page.
2024-01-23 07:45:11 +00:00
Aaron Hill c1fce1106f swf: Parse string as Vec<u8> instead of String in SWF
Some obfuscated SWFs may have invalid strings in their constant
pool - trying to immediately parse them as a utf-8 String throws
away information. Instead, we now store a `Vec<u8>`, which we
then use to construct an `AvmString` (or with `String::from_utf8_lossy`
for debug printing).
2024-01-22 21:50:45 -05:00
Aaron Hill 8dbcfe26f9 core: Display image load when using Loader.loadBytes
The handling of images in Loader.loaderBytes is similar to
the handling of SWFs - some of the data is exposed immediately
following the 'Loader.loadBytes' call, but the DisplayObject isn't
loaded until later.
2024-01-22 19:35:08 -05:00
Tom Schuster 173efbb77a avm2: Stub flash.desktop.Clipboard 2024-01-22 23:37:22 +01:00
sleepycatcoding 1804c23b93 avm2: Fix `Error.toString` regression
This was introduced by #14897, and to make sure this won't happen again I added a test.

Fixes #14901.
2024-01-22 19:34:12 +01:00
sleepycatcoding 2057417824 avm2: Implement `Error.prototype.toString`
And remove `ErrorObject::to_string` implementation. This fixes a few avmplus tests.
2024-01-22 15:09:55 +01:00
sleepycatcoding 88f8020e54 chore: Run `cargo update` to bump patch versions in `Cargo.lock`
Should fix https://github.com/ruffle-rs/ruffle/actions/runs/7611140142/job/20725992433

Changes:
```
Updating git repository `https://github.com/emilk/egui`
Updating crates.io index
Updating git repository `https://github.com/ruffle-rs/rust-flash-lso`
Updating git repository `https://github.com/ruffle-rs/jpegxr`
Updating git repository `https://github.com/ruffle-rs/nellymoser`
Updating git repository `https://github.com/ruffle-rs/h263-rs`
Updating git repository `https://github.com/ruffle-rs/nihav-vp6`
Updating openssl-sys v0.9.98 -> v0.9.99
Updating rustfft v6.1.0 -> v6.2.0
Updating shlex v1.2.0 -> v1.3.0
Updating weezl v0.1.7 -> v0.1.8
Updating wide v0.7.13 -> v0.7.14
```
2024-01-22 14:25:14 +01:00
renovate[bot] 262dff83a4 fix(deps): update rust dependencies 2024-01-22 03:09:33 +01:00
TÖRÖK Attila 733459a296 chore: Switch to wgpu 0.19.1 from git 2024-01-22 01:51:07 +01:00
Crowdin Bot a1131cd70f chore: Update translations from Crowdin 2024-01-21 22:15:55 +01:00
cmdocmd c6331113ed
avm2: Stub `flash.text.engine.TextLine.getAtomIndexAtCharIndex` 2024-01-21 22:09:39 +01:00
Nathan Adams 8c6f8231d6 deps: Use wgpu by commit, for DX12 fix 2024-01-21 19:36:08 +01:00
Nathan Adams c63f51f823 web: Enable webgpu 2024-01-21 19:36:08 +01:00
Nathan Adams 78963ba15b chore: Temporarily allow repos during PR - REMOVEME 2024-01-21 19:36:08 +01:00
Nathan Adams 4d16e24889 wgpu: Update wgpu and naga to 0.19 2024-01-21 19:36:08 +01:00
Aaron Hill e73819d531 Use supported_sample_count for Context3D sample count
This rounds the requested sample count down to a value
that's supported by the device.
2024-01-21 12:47:13 -05:00
Tom Schuster 7e40abe0f0 tests: Test net.getClassByAlias 2024-01-21 17:23:29 +01:00
Tom Schuster ab99eb3e09 avm2: Only lookup own properties in flash.net.getClassByAlias 2024-01-21 17:23:29 +01:00
Isao Mishima d7df55fd7b
desktop: Change the default Japanese fonts (#14877) 2024-01-21 15:21:48 +01:00
Tom Schuster 06c7e015e2 web: Support DefineFont4 in fontSources 2024-01-21 08:02:45 +01:00
Crowdin Bot f90adeebe2 chore: Update translations from Crowdin 2024-01-21 02:28:29 +01:00
cmdocmd 5cf9e00f9c
avm2: Stub XML::inScopeNamespaces 2024-01-20 14:27:27 -08:00
Oleksandr Kalko 22e5f16a21 Update vite to 5.0.12 in `package.json`
Renovate PR to update `vite` to 5.0.12 (https://github.com/ruffle-rs/ruffle/pull/14851) updated only `package-lock.json`, but not `package.json`

This causes `vite`  inside `package-lock.json` to roll back to 5.0.10 after `npm install`. This PR fixes that :)
2024-01-20 18:01:26 +01:00
Moulins 233478a273 swf: Show scaled value in `swf::FixedN`'s `Debug` implementations 2024-01-20 12:21:13 +01:00
nosamu 379bed891f core: Invalidate cached bitmap on state change in AVM2Button 2024-01-20 11:53:19 +01:00
nosamu 284489b721 avm2: Stub Stage colorCorrection and colorCorrectionSupport 2024-01-20 11:35:28 +01:00
renovate[bot] a107d97e46 chore(deps): update dependency vite to v5.0.12 [security] 2024-01-19 23:28:41 +01:00
Crowdin Bot 1775e3e41f chore: Update translations from Crowdin 2024-01-19 23:21:02 +01:00
Tom Schuster e6f18b8b13 tests: Add DefineFont4 test 2024-01-19 23:14:58 +01:00
Tom Schuster c9c1326d13 avm2: Allow TLF to use embedded fonts when requested 2024-01-19 23:14:58 +01:00
Tom Schuster 0a6cf92a53 core: Implement DefineFont4 2024-01-19 23:14:58 +01:00
Tom Schuster e0f5b8906d desktop: Support device font with a non-zero index 2024-01-19 19:21:48 +01:00
Crowdin Bot 5f123c3c01 chore: Update translations from Crowdin 2024-01-19 00:24:06 +01:00
Adrian Wielgosik 11fe70ab65 avm2: Fix possible overflow in address calculations 2024-01-18 23:35:03 +01:00