From 721789813d16dd67696f2e106450ed07f3edb457 Mon Sep 17 00:00:00 2001 From: TheSola10 Date: Sat, 5 Apr 2025 10:34:33 +0200 Subject: [PATCH] docs and devenv stuff --- .envrc | 1 + main.c | 4 ++-- umdiff/main.c | 13 +++++++++++++ umdiff/rdiff.c | 13 +++++++++++++ 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.envrc b/.envrc index 58d95be..fb334f7 100644 --- a/.envrc +++ b/.envrc @@ -4,5 +4,6 @@ fi source .env export ARKROOT +echo "0=$PWD" > $XDG_RUNTIME_DIR/psplink-bindings use distrobox diff --git a/main.c b/main.c index 1f821cd..18fb303 100644 --- a/main.c +++ b/main.c @@ -100,12 +100,12 @@ int lp_discChangeWatcher(SceSize argc, void *argp) for (int i = 0; i < count; i++) { sceKernelReferCallbackStatus(callbacks[i], &cbinfo); if (!strcmp(cbinfo.name, "SceVshMediaDetectUMD")) { - Kprintf("Found VSH UMD callback: 0x%08x\n", vshCallbackId); vshCallbackId = callbacks[i]; + Kprintf("Found VSH UMD callback: 0x%08x\n", vshCallbackId); break; } else if (!strcmp(cbinfo.name, "DVDUMD")) { - Kprintf("Found game UMD callback: 0x%08x\n", vshCallbackId); vshCallbackId = callbacks[i]; + Kprintf("Found game UMD callback: 0x%08x\n", vshCallbackId); break; } } diff --git a/umdiff/main.c b/umdiff/main.c index d5d2745..6842362 100644 --- a/umdiff/main.c +++ b/umdiff/main.c @@ -1,3 +1,14 @@ +/** + * @file main.c + * @author Karim Vergnes + * @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" int main(int argc, char *argv[]) @@ -16,3 +27,5 @@ int main(int argc, char *argv[]) return 1; } + +// vim: ft=c.doxygen diff --git a/umdiff/rdiff.c b/umdiff/rdiff.c index 25d0167..256f0d6 100644 --- a/umdiff/rdiff.c +++ b/umdiff/rdiff.c @@ -1 +1,14 @@ +/** + * @file rdiff.c + * @author Karim Vergnes + * @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 + + +// vim: ft=c.doxygen