sleepycatcoding
b98b0e88aa
chore: fmt
2023-08-05 14:42:09 +02:00
sleepycatcoding
f6da7258c5
avm1,avm2: Rename some functions to make them consistent between Sockets
2023-08-05 14:42:09 +02:00
sleepycatcoding
2468c71d02
core: Implement suggestion from review
2023-08-05 14:42:09 +02:00
sleepycatcoding
aac1931569
avm1: Prevent panic when close is called in event handler
...
Also adds a test case for this.
2023-08-05 14:42:09 +02:00
sleepycatcoding
82c57a0d97
avm2: Clear tempBuf when closing connection
2023-08-05 14:42:09 +02:00
sleepycatcoding
d8ae2ce6b9
avm1: Fix only one message arriving when multiple are sent in the same packet
...
Test case has been improved to cover this.
2023-08-05 14:42:09 +02:00
sleepycatcoding
cec74242cf
core: Socket subsystem fixes
...
Clears the read and write buffer of Socket before returning to ActionScript, this could potentially be problematic
when a SWF reuses the same Socket to connect.
Also remove the handle from Arena when server closes the connection, this fixes
connected still returning true after server disconnection.
2023-08-05 14:42:09 +02:00
sleepycatcoding
d3e627fb5f
core: Clear the read buffer when the connection is closed
2023-08-05 14:42:09 +02:00
sleepycatcoding
358d3e8ede
chore: fmt
2023-08-05 14:42:09 +02:00
sleepycatcoding
8293a2db75
avm1: Write null byte when sending out a message
2023-08-05 14:42:09 +02:00
sleepycatcoding
e4b7cc2afd
avm1: Replace avm_warn! with tracing::warn!
2023-08-05 14:42:09 +02:00
sleepycatcoding
01801980f4
core: Rename some imports to make code more readable
2023-08-05 14:42:09 +02:00
sleepycatcoding
783527fbad
chore: Fix clippy warning
2023-08-05 14:42:09 +02:00
sleepycatcoding
87b7af4370
avm1: Use movie domain when null is passed as host
2023-08-05 14:42:09 +02:00
sleepycatcoding
25b1ed7e9c
avm1: Implement onData()
2023-08-05 14:42:09 +02:00
sleepycatcoding
2b18a5999b
chore: fmt
2023-08-05 14:42:09 +02:00
sleepycatcoding
705042c1ee
chore: Fix a warning
2023-08-05 14:42:09 +02:00
sleepycatcoding
dccf254281
avm1: Implement some event handlers
2023-08-05 14:42:09 +02:00
sleepycatcoding
78a68f95ea
avm1: Implement send()
2023-08-05 14:42:09 +02:00
sleepycatcoding
b64c45f797
avm1: Implement connect()
2023-08-05 14:42:09 +02:00
sleepycatcoding
931c355779
avm1: Use Gc instead of GcCell
2023-08-05 14:42:09 +02:00
sleepycatcoding
7237295364
chore: fmt
2023-08-05 14:42:09 +02:00
sleepycatcoding
cd92677b2a
core: Add SocketKind and use it to separate XMLSocket and Socket
2023-08-05 14:42:09 +02:00
sleepycatcoding
662c7f986d
avm1: Implement onData
2023-08-05 14:42:09 +02:00
sleepycatcoding
879750d3e1
avm1: Stub rest of XMLSocket methods
2023-08-05 14:42:09 +02:00
sleepycatcoding
13ce61a00a
avm1: Implement close()
2023-08-05 14:42:09 +02:00
sleepycatcoding
9c92cf0c98
avm1: Implement timeout
2023-08-05 14:42:09 +02:00
sleepycatcoding
773168fe10
avm1: Create simple XMLSocket stub
2023-08-05 14:42:09 +02:00
sleepycatcoding
c9c4efe574
avm2: Review remarks
2023-08-05 14:17:02 +02:00
sleepycatcoding
e8bc47a569
avm2: Return correct error if Event.clone() returns null
2023-08-05 14:17:02 +02:00
sleepycatcoding
925ed2e82b
avm2: Clone event if it has been dispatched before
2023-08-05 14:17:02 +02:00
Lord-McSweeney
76a7c69522
avm2: Use Error #2008 in some places in TextField
2023-08-05 13:42:16 +02:00
Lord-McSweeney
3fbde2076c
avm2: Use Error #2004 for flash.crypto::generateRandomBytes
2023-08-05 13:42:16 +02:00
Lord-McSweeney
fd04463476
avm2: Use make_error_2008 for set objectEncoding on ByteArray
2023-08-05 13:42:16 +02:00
Lord-McSweeney
f753d840b6
avm2: Add errors #2024 , #2150 , and #3738
2023-08-05 13:42:16 +02:00
Lord-McSweeney
855825b6ac
avm2: Create a make_error_1506 function and use it
2023-08-05 13:42:16 +02:00
Lord-McSweeney
c39d006a78
avm2: Use correct error #2025 in various places in DisplayObjectContainer
2023-08-05 13:42:16 +02:00
Adrian Wielgosik
f75b36a32a
core: Remove lots of uses of derive(Collect)
2023-08-04 21:43:18 +02:00
Nathan Adams
5f200dc2a9
avm2: Use correct error in write ops when reading past bounds
2023-08-03 16:28:25 +02:00
Nathan Adams
af46301020
avm2: Use correct error in Li ops when reading past bounds
2023-08-03 16:28:25 +02:00
Nathan Adams
3d76953574
avm2: Use correct error when accessing domain memory out of bounds
2023-08-03 16:28:25 +02:00
sleepycatcoding
f5f5680e3a
avm2: Fix an error message
2023-08-02 22:16:16 +02:00
sleepycatcoding
7d61f8f947
avm2: Wrap Socket instead of extending
2023-08-02 22:16:16 +02:00
sleepycatcoding
43ce490c0f
chore: fmt
2023-08-02 22:16:16 +02:00
sleepycatcoding
3fd53b8ca1
avm2: Implement connect() special-case
2023-08-02 22:16:16 +02:00
sleepycatcoding
85db727f17
avm2: Implement XMLSocket
2023-08-02 22:16:16 +02:00
Nathan Adams
ab27c8b4ee
render: Calculate correct bounds for shapes containing curves
2023-08-02 18:43:33 +02:00
Nathan Adams
020dc34b59
avm2: Throw errors in theoretically unreachable scenario in XmlDocument
2023-08-02 15:55:08 +02:00
Nathan Adams
3834462abf
avm2: Hook up XMLDocument.ignoreWhite
2023-08-02 15:55:08 +02:00
Nathan Adams
6f2420d983
avm2: Implement ignoreComments/ignoreProcessingInstructions/ignoreWhitespace
2023-08-02 15:55:08 +02:00