mirror of
https://github.com/knutwurst/patchdl.git
synced 2026-10-29 04:02:00 +01:00
License: GPL-3.0-or-later
Full GPL-3.0 text in LICENSE, SPDX-License-Identifier header on every
source file, README license section updated. Copyright (C) 2026 Knutwurst.
Tidied a couple of stale comments in patchdl_tile.{c,h} while at it.
This commit is contained in:
1 parent
edb4c90978
commit
0510e3dc34
29 files changed
+935
-16
No files matched your search
+18
-12
@@ -1,23 +1,29 @@
|
||||
/* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* Copyright (C) 2026 Knutwurst
|
||||
*
|
||||
* PatchDL is free software: you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, either version 3 of the License, or (at your option)
|
||||
* any later version. See the LICENSE file in the project root for details.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/* Install / refresh the PatchDL home-screen tile.
|
||||
*
|
||||
* Approach (from itsPLK's ps5-payload-manager/app_installer.c, which adapted
|
||||
* John Tornblom's ftpsrv work): write param.json + icon0.png into
|
||||
* /user/app/<TITLE_ID>/sce_sys/
|
||||
* then call sceAppInstUtilAppInstallTitleDir(title_id, "/user/app/", 0)
|
||||
* which registers the directory as an app. The tile's deeplinkUri opens
|
||||
* Sony's WebKit browser at http://127.0.0.1:12880/, i.e. PatchDL's own UI
|
||||
* — only useful while the ELF is running.
|
||||
* Writes param.json + icon0.png into /user/app/<TITLE_ID>/sce_sys/ and asks
|
||||
* the on-console installer to register the directory as an app. The tile's
|
||||
* deeplinkUri opens the on-console browser at http://127.0.0.1:12880/, i.e.
|
||||
* PatchDL's own UI — only useful while the ELF is running.
|
||||
*
|
||||
* No PKG, no code signing, no debug-magic. Files only — Sony's installer
|
||||
* registers the directory as an app.
|
||||
* No package, no code signing — files only; the installer reads the
|
||||
* directory directly.
|
||||
*
|
||||
* stat-guard: the asset bytes are diffed against the on-disk copy first;
|
||||
* if nothing changed the install API isn't called at all (avoids a costly
|
||||
* re-register every payload start, and avoids the dangerous CancelInstall
|
||||
* code path). Returns 0 on success or when nothing needed doing.
|
||||
* if nothing changed the install call isn't made at all (avoids a costly
|
||||
* re-register every payload start). Returns 0 on success or when nothing
|
||||
* needed doing.
|
||||
*/
|
||||
int patchdl_tile_install_if_needed(char *msg, size_t msg_sz);
|
||||
Reference in new issue
Block a user