From 9899bdf6726d0c65cdec644362a5c1bab391ea90 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 7 Sep 2016 13:49:47 -0700 Subject: [PATCH] Require manual Locale init, fixes Travis build --- lime/system/Locale.hx | 2 +- templates/haxe/ApplicationMain.hx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lime/system/Locale.hx b/lime/system/Locale.hx index 3f2f8ae34..535c8687c 100644 --- a/lime/system/Locale.hx +++ b/lime/system/Locale.hx @@ -18,7 +18,7 @@ abstract Locale(String) from String to String { public var region (get, never):String; - private static function __init__ ():Void { + private static function __init ():Void { var locale = null; diff --git a/templates/haxe/ApplicationMain.hx b/templates/haxe/ApplicationMain.hx index 3922b005f..aedbec2ef 100644 --- a/templates/haxe/ApplicationMain.hx +++ b/templates/haxe/ApplicationMain.hx @@ -3,6 +3,7 @@ import lime.Assets; @:access(lime.app.Application) +@:access(lime.system.Locale) class ApplicationMain { @@ -16,6 +17,8 @@ class ApplicationMain { public static function create ():Void { + lime.system.Locale.__init (); + preloader = new ::if (PRELOADER_NAME != "")::::PRELOADER_NAME::::else::lime.app.Preloader::end:: (); #if !munit