docs and devenv stuff

This commit is contained in:
TheSola10 2025-04-05 10:34:33 +02:00
parent 5fc3e21ff1
commit 721789813d
Signed by: thesola10
GPG Key ID: 89245619BEBB95BA
4 changed files with 29 additions and 2 deletions

1
.envrc
View File

@ -4,5 +4,6 @@ fi
source .env source .env
export ARKROOT export ARKROOT
echo "0=$PWD" > $XDG_RUNTIME_DIR/psplink-bindings
use distrobox use distrobox

4
main.c
View File

@ -100,12 +100,12 @@ int lp_discChangeWatcher(SceSize argc, void *argp)
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
sceKernelReferCallbackStatus(callbacks[i], &cbinfo); sceKernelReferCallbackStatus(callbacks[i], &cbinfo);
if (!strcmp(cbinfo.name, "SceVshMediaDetectUMD")) { if (!strcmp(cbinfo.name, "SceVshMediaDetectUMD")) {
Kprintf("Found VSH UMD callback: 0x%08x\n", vshCallbackId);
vshCallbackId = callbacks[i]; vshCallbackId = callbacks[i];
Kprintf("Found VSH UMD callback: 0x%08x\n", vshCallbackId);
break; break;
} else if (!strcmp(cbinfo.name, "DVDUMD")) { } else if (!strcmp(cbinfo.name, "DVDUMD")) {
Kprintf("Found game UMD callback: 0x%08x\n", vshCallbackId);
vshCallbackId = callbacks[i]; vshCallbackId = callbacks[i];
Kprintf("Found game UMD callback: 0x%08x\n", vshCallbackId);
break; break;
} }
} }

View File

@ -1,3 +1,14 @@
/**
* @file main.c
* @author Karim Vergnes <me@thesola.io>
* @copyright GPLv2
* @brief Indexed delta generator for umd_livepatch
*
* This tool generates a delta file between two ISOs, in the UMDiff file format.
* The rationale for this file format can be found in the docs for @ref patch.h
* in the umd_livepatch module.
*/
#include "usage.rl.h" #include "usage.rl.h"
int main(int argc, char *argv[]) int main(int argc, char *argv[])
@ -16,3 +27,5 @@ int main(int argc, char *argv[])
return 1; return 1;
} }
// vim: ft=c.doxygen

View File

@ -1 +1,14 @@
/**
* @file rdiff.c
* @author Karim Vergnes <me@thesola.io>
* @copyright GPLv2
* @brief rsync-based diff calculator
*
* This file leverages librsync to compute the difference between two files,
* and convert it in-memory into the UMDiff format.
*/
#include <librsync.h> #include <librsync.h>
// vim: ft=c.doxygen