moulins
727a9a8334
avm2: Don't forget to set the state in `Avm2Button::set_state`
...
Fixes #14922 . Also removes a redundant line. These regressed in #14820 .
2024-01-25 21:20:25 +00:00
Tom Schuster
70b6f62eab
tests: Add tests for FileReferenceList browse
2024-01-25 19:10:56 +01:00
Tom Schuster
499dfc8990
avm2: Partially implement FileReferenceList with a single FileReference
2024-01-25 19:10:56 +01:00
Aaron Hill
bb9e7c04f7
avm2: Fix handling of Loader.loadBytes for images
...
I've switched back to the original code for creating
the bitmap/bitmapdata, rather than relying on custom
initialization logic that we only used in loader.
To make sure that the Bitmap/BitmapData are only exposed
to ActionScript at the correct time, I've added a new flag
to control when 'LoaderInfo.content' becomes non-null
2024-01-25 10:35:28 -05:00
Lord-McSweeney
38d58552f2
nit: Fix some minor capitalization mistakes
2024-01-25 08:05:48 +01:00
Crowdin Bot
917c1c08f7
chore: Update translations from Crowdin
2024-01-25 00:49:31 +01:00
Aaron Hill
820e7e828a
wgpu: Allow Stage3D texture upload where source is smaller than dest
...
Fancy Pants World 4 relies on this behavior.
2024-01-25 00:30:10 +01:00
Daniel Jacobs
dd158c6193
web: Remove swfUrl from RufflePlayer for files loaded by data
2024-01-24 12:11:44 -05:00
Aaron Hill
1cb24b41b0
render: Support PixelBender ByteArray/Vector.<Number> input/output
...
When ActionScript uses a ByteArray/Vector.<Number> as a shader input
or target, we create a temporary Rgba32Float texture, and copy the
input float32 bytes to/from the texture.
Unfortunately, wgpu doesn't seem to support an Rgb32Float (3-channel)
texture. When the shader uses 3 channels, we use a Rgba32Float
(4-channel) texture, and manually insert/remove padding for the
alpha channels. This isn't very efficient, but it's the simplest
solution.
The temporary textures themselves aren't cached anywhere - if this
becomes a performance issue, we could look into using some of our
existing wgpu texture/buffer pooling code.
2024-01-24 08:31:52 -05:00
Crowdin Bot
a916f6e7a2
chore: Update translations from Crowdin
2024-01-23 23:01:01 +01:00
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