From 93e86d977ce24c386bd9789285eaa73acb3605fd Mon Sep 17 00:00:00 2001 From: Tom Schuster Date: Sat, 27 Jul 2024 13:29:56 +0200 Subject: [PATCH] avm2: Add flash.sensors.Geolocation stub --- core/src/avm2/globals/flash/sensors/Geolocation.as | 9 +++++++++ core/src/avm2/globals/globals.as | 1 + 2 files changed, 10 insertions(+) create mode 100644 core/src/avm2/globals/flash/sensors/Geolocation.as diff --git a/core/src/avm2/globals/flash/sensors/Geolocation.as b/core/src/avm2/globals/flash/sensors/Geolocation.as new file mode 100644 index 000000000000..4efbfaeb47b2 --- /dev/null +++ b/core/src/avm2/globals/flash/sensors/Geolocation.as @@ -0,0 +1,9 @@ +package flash.sensors { + import flash.events.EventDispatcher; + [API("668")] + public class Geolocation extends EventDispatcher { + public static function get isSupported():Boolean { + return false; + } + } +} diff --git a/core/src/avm2/globals/globals.as b/core/src/avm2/globals/globals.as index b6746fb23867..cd98ee3abd31 100644 --- a/core/src/avm2/globals/globals.as +++ b/core/src/avm2/globals/globals.as @@ -328,6 +328,7 @@ include "flash/security/X509Certificate.as" include "flash/security/X500DistinguishedName.as" include "flash/sensors/Accelerometer.as" +include "flash/sensors/Geolocation.as" include "flash/system.as" include "flash/system/ApplicationDomain.as"