Add Appx presence check

This commit is contained in:
Kaenbyou Rin 2024-06-19 13:29:23 +02:00
parent 42b1091c0b
commit faa3b7fa45
2 changed files with 6 additions and 6 deletions

View File

@ -40,6 +40,7 @@ function uupListLangsInternal($updateId) {
return [ return [
'langList' => $langList, 'langList' => $langList,
'langFancyNames' => $langListFancy, 'langFancyNames' => $langListFancy,
'appxPresent' => isset($genPack['neutral']['APP']),
]; ];
} }
@ -51,11 +52,10 @@ function uupListLangs($updateId = 0, $returnInfo = true) {
$langList = uupListLangsInternal($updateId); $langList = uupListLangsInternal($updateId);
$response = [ $response = array_merge(
'apiVersion' => uupApiVersion(), ['apiVersion' => uupApiVersion()],
'langList' => $langList['langList'], $langList
'langFancyNames' => $langList['langFancyNames'], );
];
if($returnInfo) $response['updateInfo'] = $info; if($returnInfo) $response['updateInfo'] = $info;

View File

@ -16,7 +16,7 @@ limitations under the License.
*/ */
function uupApiVersion() { function uupApiVersion() {
return '1.45.0'; return '1.46.0';
} }
require_once dirname(__FILE__).'/auths.php'; require_once dirname(__FILE__).'/auths.php';