From 0f8d8ec0a39d196c9b8de817deddefd39641322d Mon Sep 17 00:00:00 2001 From: Levin Li Date: Tue, 20 Feb 2024 15:24:02 +0800 Subject: [PATCH] Move setlocale calls --- MobileCelestia.xcodeproj/project.pbxproj | 4 ++-- MobileCelestia/AppDelegate.swift | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/MobileCelestia.xcodeproj/project.pbxproj b/MobileCelestia.xcodeproj/project.pbxproj index f1b037c4..4885ea2d 100644 --- a/MobileCelestia.xcodeproj/project.pbxproj +++ b/MobileCelestia.xcodeproj/project.pbxproj @@ -1649,7 +1649,7 @@ MACOSX_DEPLOYMENT_TARGET = 10.15; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - SHARED_BUILD_NUMBER = 454; + SHARED_BUILD_NUMBER = 456; SHARED_BUILD_VERSION = 1.6.9; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -1706,7 +1706,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 13.1; MACOSX_DEPLOYMENT_TARGET = 10.15; SDKROOT = iphoneos; - SHARED_BUILD_NUMBER = 454; + SHARED_BUILD_NUMBER = 456; SHARED_BUILD_VERSION = 1.6.9; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-O"; diff --git a/MobileCelestia/AppDelegate.swift b/MobileCelestia/AppDelegate.swift index 93fc3f0f..39b93930 100644 --- a/MobileCelestia/AppDelegate.swift +++ b/MobileCelestia/AppDelegate.swift @@ -128,8 +128,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - setlocale(LC_ALL, "") - setlocale(LC_NUMERIC, "C") + AppCore.setUpLocale() #if targetEnvironment(macCatalyst) MacBridge.initialize()