Skip to content

Commit

Permalink
avm2: Add flash.sensors.Geolocation stub
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpie committed Jul 27, 2024
1 parent 840128d commit 93e86d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/src/avm2/globals/flash/sensors/Geolocation.as
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
1 change: 1 addition & 0 deletions core/src/avm2/globals/globals.as
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 93e86d9

Please sign in to comment.