Commit Graph

9997 Commits

Author SHA1 Message Date
sleepycatcoding 41a63e3bef desktop: make socket connections async
This also fixes an unrelated bug where null bytes were added to data, this
broke data parsing.
2023-07-23 09:13:01 +02:00
sleepycatcoding 5080c19d11 core: Make socket connection async
Changes socket system to use asynchronous means to not generate lagspikes
when connecting to servers.
2023-07-23 09:13:01 +02:00
sleepycatcoding 67aa0fcbd4 tests: Stub connect_socket() 2023-07-23 09:13:01 +02:00
sleepycatcoding ff1a9bb083 web: Stub connect_socket() 2023-07-23 09:13:01 +02:00
sleepycatcoding 8f6aab56e0 desktop: correct TcpStream reading
This was incorrect as this pr was initially based on #8188.
Old code was searching for XML payload end null bytes, now it just reads
and appends bytes.
2023-07-23 09:13:01 +02:00
sleepycatcoding 2da61bc57f avm2: Some nits
Use ProgressEvent for socketData event instead of a bare event.
Remove unwraps and use correct errors/exceptions.
Correct name in make_error_2008 call.
Use expect() for getting ByteArray instead of an error.
Correct some get_*() calls
2023-07-23 09:13:01 +02:00
sleepycatcoding fc06dcbed6 avm2: Add SecurityError to globals 2023-07-23 09:13:01 +02:00
sleepycatcoding f64ca6aa85 avm2: Use ParametersExt 2023-07-23 09:13:01 +02:00
sleepycatcoding 6da0dbc287 avm2: Implement close() 2023-07-23 09:13:01 +02:00
sleepycatcoding dea9797891 avm2: Implement many primitive write methods 2023-07-23 09:13:01 +02:00
sleepycatcoding 238bc6784c avm2: Implement many primitive read methods 2023-07-23 09:13:01 +02:00
sleepycatcoding bca70dd102 core: Add read bytes to read buffer 2023-07-23 09:13:01 +02:00
sleepycatcoding 2dcc3e7930 avm2: Add read_buffer and implement bytesAvailable 2023-07-23 09:13:01 +02:00
sleepycatcoding 487d881793 avm2: Implement flush() 2023-07-23 09:13:01 +02:00
sleepycatcoding 3dfb6e3bb1 avm2: Implement writeByte and writeBytes 2023-07-23 09:13:01 +02:00
sleepycatcoding 60de72fc3e avm2: Implement endian() methods 2023-07-23 09:13:01 +02:00
sleepycatcoding d6f6d432fa avm2: Implement connect and connected 2023-07-23 09:13:01 +02:00
sleepycatcoding c22f97445a avm2: Add SocketObject 2023-07-23 09:13:01 +02:00
sleepycatcoding 8c221653ff desktop: Implement connect_socket 2023-07-23 09:13:01 +02:00
sleepycatcoding ad72c56cb4 core: Implement socket backend 2023-07-23 09:13:01 +02:00
Nathan Adams 4219f39668 avm2: Throw proper error when setting name of timeline objects 2023-07-23 01:18:53 +02:00
Aaron Hill 5ee6218ab4 avm2: Fix `super_vtable` in `describeType`
This more closely matches what avmplus does.
2023-07-22 17:50:10 -04:00
Nathan Adams e610c9a9ce web: Readd warnOnUnsupportedContent for backwards compatibility, but mark it deprecated and unused 2023-07-22 23:08:42 +02:00
Nathan Adams 586c3bebf6 core: Remove unsupported content warning 2023-07-22 23:08:42 +02:00
Abiel Deneke 8f6e9d8f63 avm2: Don't change the length of a fixed output Vector 2023-07-22 16:11:08 -04:00
Nathan Adams 4accc2ca86 tests: Add 'delete list.@*' to the xmllist delete test 2023-07-22 18:24:08 +02:00
Nathan Adams d1cfb1b8d1 avm2: Implement delete_property_local for XMLList 2023-07-22 18:24:08 +02:00
nosamu 02476f70dd avm2: Stub GameInputDevice, LocaleID, NumberFormatter, and NumberParseResult 2023-07-21 22:51:13 -04:00
Nathan Adams 77c0dac64b webgl: Implement pixel snapping 2023-07-22 00:34:17 +02:00
Nathan Adams 4410d666ed avm2: Implement Bitmap.pixelSnapping 2023-07-22 00:34:17 +02:00
Nathan Adams 289f73c85f core: Add pixel snapping (default auto) to Bitmaps, and force it for cacheAsBitmap 2023-07-22 00:34:17 +02:00
Lord-McSweeney 68c5024f21 tests: Add test for LocalConnection.send 2023-07-22 00:00:24 +02:00
Lord-McSweeney 7b21815660 avm2: Improve LocalConnection.send stub 2023-07-22 00:00:24 +02:00
Daniel Jacobs 46a726efc6 chore: formatting 2023-07-21 23:34:43 +02:00
Daniel Jacobs e99d7f63dc extension: Don't throw error when Firefox add-on is in review 2023-07-21 23:34:43 +02:00
Nathan Adams 98ce792a5b avm1: Implement BitmapData.applyFilter() 2023-07-21 21:43:54 +02:00
Aaron Hill f328797d04 avm2: Fix bugs with describeType interfaces and methods
Interfaces should only be listed when calling describeType
with a class instance (not with a `Class` object).

Additionally, AS3 methods can actually be displayed under
some circumstances. This is due to weird legacy behavior
that avmplus implements. A full fix requirs us to implement
namespace versioning, but we can get closer by special-casing
playerglobals (which is special-cased by namespace versioning
anyway).
2023-07-21 15:23:56 -04:00
nosamu 2ee127ccb6 core: Fix cacheAsBitmap size limit & remove print statement 2023-07-21 09:22:12 +02:00
Aaron Hill 3607a5fb23 naga-pixelbender: Implement Opcode::LessThanEqual 2023-07-20 20:09:07 -04:00
Nathan Adams f1e96bb1f1 tests: Reduce size of blur_scales_with_screen test 2023-07-20 23:19:20 +02:00
Nathan Adams 67c33ef9c3 core: Disable cacheAsBitmap for swfs that are too large (depending on swf version) 2023-07-20 23:19:20 +02:00
Nathan Adams b201e19cc7 wgpu: Don't create an extra fresh texture for applying filters to a CAB 2023-07-20 23:19:20 +02:00
Nathan Adams e66f2397b5 core: Avoid some work in render_base if we're not cacheAsBitmap 2023-07-20 23:19:20 +02:00
Nathan Adams f030680084 core: Don't invalidate self on changing blend mode 2023-07-20 23:19:20 +02:00
Nathan Adams b6a8e0a471 core: Don't invalidate self on changing visibility 2023-07-20 23:19:20 +02:00
Nathan Adams 1fd8ca7bad core: Reduce the amount of false-invalidations 2023-07-20 23:19:20 +02:00
Aaron Hill c19fc1b72c desktop: Set max_execution_duration to Infinity by default
The `max_execution_duration` feature is pretty much useless on desktop,
and breaks slow SWFs by aborting script execution instead of letting
it continue.
2023-07-20 16:25:49 -04:00
Nathan Adams 3447b8bfdd chore: npm run format 2023-07-20 14:00:04 +02:00
renovate[bot] 0cbfda22db chore(deps): update node.js dependencies 2023-07-20 14:00:04 +02:00
Crowdin Bot b2afcbaf3e chore: Update translations from Crowdin 2023-07-20 13:41:04 +02:00