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
Tom Schuster
0f445f4c80
tests: Test XML lookup with no namespace
2024-01-18 16:31:00 +01:00
Tom Schuster
28b20322f0
avm2: Assume we have the default public namespace when matching XML names
2024-01-18 16:31:00 +01:00
Nathan Adams
d717f92403
tests: Don't set logger in test framework, it's the responsibility of the caller
2024-01-18 16:07:24 +01:00
TÖRÖK Attila
9aff953163
core: Make `Player::mutate_with_update_context` public
2024-01-18 09:00:40 +01:00
Kamil Jarosz
d89ab3dc83
desktop: Fix doubling inputted characters
...
Fix a bug introduced by f65060e8
.
The text input event was triggered two times: at key press and release.
This patch makes sure that text input is triggered only on key press.
2024-01-18 00:21:19 +01:00
TÖRÖK Attila
d153290fd6
nits: Fix a whole bunch of typos all over the place
2024-01-17 23:59:19 +01:00
Daniel Jacobs
8f2292c2c7
core: Add error for loading invalid SWF files and display as appropriate
2024-01-17 17:38:47 -05:00
Daniel Jacobs
5765177ba7
web: Properly panic when loading invalid SWF files ( fix #14665 )
2024-01-17 17:38:47 -05:00