From 687334f50c17a3ad58639b5732d69b2689f43b5a Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Tue, 16 Jul 2024 13:37:09 +0200 Subject: [PATCH] Add better info for managing libraries The current information was a bit too minimal. --- tips_tricks.md | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/tips_tricks.md b/tips_tricks.md index 003ca2b..43dc544 100644 --- a/tips_tricks.md +++ b/tips_tricks.md @@ -40,15 +40,27 @@ When porting a game to the PSP, some PSP specific code might be needed. To make This makes sure that the other systems supported by the program keeps working the same, while still making it possible to add support for the PSP. -## More Libraries +## Managing Libraries {: .fs-6 .fw-700 } -There are many C and C++ libraries available within the PSPDEV toolchain which can add functionality to your program. Some examples: +There are many C and C++ libraries available within the PSPDEV toolchain and most of them will be installed by default. Libraries are where most of the updates within the toolchain happen and they can be updated manually without redownload the toolchain using `psp-pacman`. -- Audio formats: mp3, ogg -- Image formats: png, jpeg -- Data formats: json, yaml, sqlite -- Support for compression, physics, fonts and much more +Updating the libraries installed can be done with the following command: +```shell +psp-pacman -Syu +``` + +After updating, you can list all available libraries with the following command: + +```shell +psp-pacman -Sl +``` + +For a full list with information on each library, it's easiest to take a look on the [repository's web pages](https://pspdev.github.io/psp-packages). + +Installing a library can be done with the following command: -For the full list take a look at the [psp-packages repository](https://pspdev.github.io/psp-packages/) or run `psp-pacman -Syl`. Installing newly added libraries can be done with `psp-pacman -S package-name`. Updating all installed libraries can be done with `psp-pacman -Syu`. +```shell +psp-pacman -S library +```