From b33d66097d0018e09c8359d64a09003f1b361fbc Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sat, 30 Nov 2024 11:36:38 -0500 Subject: [PATCH] libretro: Add documentation warning about libretro argv --- src/physfs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/physfs.h b/src/physfs.h index 780d99d..c6d15b9 100644 --- a/src/physfs.h +++ b/src/physfs.h @@ -529,6 +529,11 @@ typedef struct PHYSFS_AndroidInit * will hold it until PHYSFS_deinit is called. * If you pass a NULL here, PhysicsFS will crash. * + * \warning On libretro, argv0 should be a non-NULL pointer to the + * retro_environment_t callback. PhysicsFS will use this callback + * to get libretro's virtual file system interface, along with + * any other related directory paths. + * * \param argv0 the argv[0] string passed to your program's mainline. * This may be NULL on most platforms (such as ones without a * standard main() function), but you should always try to pass