Skip to content

Commit

Permalink
Fix unlocalized document type names in experimental builds
Browse files Browse the repository at this point in the history
Regression from 6b08dcb.
  • Loading branch information
J-rg committed Sep 27, 2023
1 parent 4ad883c commit 375f1b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OpenEmu/OESystemPluginPostInstall/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ func readLocalizedInfoPlistStrings(appBundle: Bundle) -> [String: [String: Strin
let plist = appBundle.resourceURL!.appendingPathComponent(localization + ".lproj/InfoPlist.strings")
do {
let data = try Data(contentsOf: plist)
var strings = try PropertyListSerialization.propertyList(from: data, options: .mutableContainers, format: nil) as! [String: String]
strings.removeValue(forKey: "%@ Game")
let strings = try PropertyListSerialization.propertyList(from: data, options: .mutableContainers, format: nil) as! [String: String]
res[localization] = strings
} catch {
res[localization] = [:]
Expand Down

0 comments on commit 375f1b6

Please sign in to comment.