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

View File

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