uupGetGenPacks -> uupApiGetPacks

This commit is contained in:
Kaenbyou Rin 2023-10-28 23:02:43 +02:00
parent 543e4c52e4
commit db1e155c8d
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -202,7 +202,7 @@ function uupGetInfoTexts() {
); );
} }
function uupGetGenPacks($build = 15063, $arch = null, $updateId = null) { function uupApiGetPacks($updateId) {
if(empty($updateId)) return []; if(empty($updateId)) return [];
if(!file_exists('packs/'.$updateId.'.json.gz')) return []; if(!file_exists('packs/'.$updateId.'.json.gz')) return [];
@ -212,3 +212,7 @@ function uupGetGenPacks($build = 15063, $arch = null, $updateId = null) {
$genPack = json_decode($genPack, 1); $genPack = json_decode($genPack, 1);
return $genPack; return $genPack;
} }
function uupGetGenPacks($build = 15063, $arch = null, $updateId = null) {
return uupApiGetPacks($updateId);
}