From 3de0279149f314508b210a14bdc58f045c872c94 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sun, 28 Jul 2024 23:29:10 +0200 Subject: [PATCH] avm2: ByteArray should implement IDataInput2 and IDataOutput2. For some reason. --- core/src/avm2/globals/flash/utils/ByteArray.as | 2 +- core/src/avm2/globals/flash/utils/IDataInput2.as | 4 ++++ core/src/avm2/globals/flash/utils/IDataOutput2.as | 4 ++++ core/src/avm2/globals/globals.as | 2 ++ 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 core/src/avm2/globals/flash/utils/IDataInput2.as create mode 100644 core/src/avm2/globals/flash/utils/IDataOutput2.as diff --git a/core/src/avm2/globals/flash/utils/ByteArray.as b/core/src/avm2/globals/flash/utils/ByteArray.as index 08bf8b1b7122..8bbd262a1b1b 100644 --- a/core/src/avm2/globals/flash/utils/ByteArray.as +++ b/core/src/avm2/globals/flash/utils/ByteArray.as @@ -1,6 +1,6 @@ package flash.utils { [Ruffle(InstanceAllocator)] - public class ByteArray implements IDataInput, IDataOutput { + public class ByteArray implements IDataInput2, IDataOutput2 { private static var _defaultObjectEncoding:uint = 3; public static function get defaultObjectEncoding():uint { return _defaultObjectEncoding; diff --git a/core/src/avm2/globals/flash/utils/IDataInput2.as b/core/src/avm2/globals/flash/utils/IDataInput2.as new file mode 100644 index 000000000000..9242eaec6544 --- /dev/null +++ b/core/src/avm2/globals/flash/utils/IDataInput2.as @@ -0,0 +1,4 @@ +package flash.utils { + internal interface IDataInput2 extends IDataInput { + } +} \ No newline at end of file diff --git a/core/src/avm2/globals/flash/utils/IDataOutput2.as b/core/src/avm2/globals/flash/utils/IDataOutput2.as new file mode 100644 index 000000000000..8356850320e4 --- /dev/null +++ b/core/src/avm2/globals/flash/utils/IDataOutput2.as @@ -0,0 +1,4 @@ +package flash.utils { + internal interface IDataOutput2 extends IDataOutput { + } +} \ No newline at end of file diff --git a/core/src/avm2/globals/globals.as b/core/src/avm2/globals/globals.as index cd98ee3abd31..a35dd7fecf5d 100644 --- a/core/src/avm2/globals/globals.as +++ b/core/src/avm2/globals/globals.as @@ -36,6 +36,8 @@ include "flash/crypto.as" include "flash/utils/IDataInput.as" include "flash/utils/IDataOutput.as" +include "flash/utils/IDataInput2.as" +include "flash/utils/IDataOutput2.as" include "flash/utils/IExternalizable.as" include "flash/utils/ByteArray.as" include "flash/utils/Dictionary.as"