////////////////////////////////////////////////////////////////////////////////////////////// // App resource handling public string GetAppResourceStr(string resourcePath) { // Note: PackageManager requirers admin privilegs var AppResource = TextHelpers.Split2(resourcePath.Substring(2, resourcePath.Length - 3), "?"); var package = packageManager.FindPackage(AppResource.Item1); if (package != null) { string pathToPri = Path.Combine(package.InstalledLocation.Path, "resources.pri"); return(MiscFunc.GetResourceStr(pathToPri, AppResource.Item2)); } return(resourcePath); }