Commit Graph

311 Commits

Author SHA1 Message Date
Francisco Javier Trujillo Mata
b48adcf13c Fix GCC compilation samples 2025-06-06 11:34:31 +02:00
David Guillen Fandos
b2c832d639 Tweak pspdev.cmake
This helps building some projects like SDL3-image/ttf
2025-06-01 00:45:32 +02:00
Francisco Javier Trujillo Mata
b3cc8e6e2a Merge pull request #295 from fjtrujy/fixSceGuScissor
Fix `sceGuScissor`
2025-05-19 07:31:12 +02:00
Francisco Javier Trujillo Mata
aa79803a12 Add a new example about how to use scissor 2025-05-18 14:37:54 +02:00
Francisco Javier Trujillo Mata
f7fc5117d4 Fixing sceGUScissor 2025-05-18 14:37:34 +02:00
Stéphane Blondon
94afe5dd5b doc: fix goal of the file in the header comment
It also attributes the copyright to the main creator (fjtrujy).
2025-05-17 23:42:44 +02:00
Francisco Javier Trujillo Mata
162f34c1f1 Fix mipmapping sample 2025-05-17 00:52:57 +02:00
Francisco Javier Trujillo Mata
01cde97b88 Merge pull request #290 from fjtrujy/take_screenshot
Add an option to take an screenshot in the `debug` library.
2025-05-14 12:51:14 +02:00
Wouter Wijsman
0f6bf946fc Merge pull request #291 from sblondon/fix-replace-statement
fix: replace a statement by an assigment
2025-05-14 09:54:37 +02:00
Wouter Wijsman
17f820df2a Merge pull request #292 from sblondon/clean-remove-unused-variables
clean: remove unused variables
2025-05-14 09:52:35 +02:00
Stéphane Blondon
e54a823b03 fix: replace a statement by an assigment
The statement had no effect. It's in a block intended for initialization (as shown in the line 639) so an assigment was probably the intended behaviour.

The graphical output is the same with or without this patch.

Detected by a warning from gcc:

spharm.c: In function ‘SpharmGenTest’:
spharm.c:640:15: warning: statement with no effect [-Wunused-value]
  640 |       objtype == 0;
      |       ~~~~~~~~^~~~
2025-05-13 22:27:15 +02:00
Stéphane Blondon
29f114c84c clean: remove unused variables
Fix several unused variables detected by gcc and displayed such as:

morphskin.c:270:37: warning: variable ‘ss’ set but not used [-Wunused-but-set-variable]
  270 |                         float cs,ct,ss,st;
      |                                     ^~
morphskin.c:270:31: warning: variable ‘cs’ set but not used [-Wunused-but-set-variable]
  270 |                         float cs,ct,ss,st;
      |                               ^~
2025-05-13 22:25:34 +02:00
Francisco Javier Trujillo Mata
ee30cb2668 screenshot example 2025-05-13 22:08:54 +02:00
Francisco Javier Trujillo Mata
38b8f5f2cc Add implementation for bitmapwrite 2025-05-13 22:08:54 +02:00
Francisco Javier Trujillo Mata
ac5f732701 Remove magic numbers from clear function 2025-05-13 21:59:22 +02:00
Francisco Javier Trujillo Mata
fbdb62c71f Create function header 2025-05-13 21:00:19 +02:00
Francisco Javier Trujillo Mata
a47fce5a52 Fix missing regions 2025-05-13 17:36:50 +02:00
Francisco Javier Trujillo Mata
ee208d234a Merge pull request #286 from fjtrujy/sceGuFinalChanges
Another `scegu` improvement
2025-05-12 21:51:16 +02:00
MotoLegacy
4cfccb0785 Document and explicitly declare right analog stick input; display right analog stick in controller sample 2025-05-10 11:55:02 -07:00
Francisco Javier Trujillo Mata
55714928f0 Some clean ups and defines 2025-05-10 19:17:10 +02:00
Francisco Javier Trujillo Mata
4743678478 Improvements around STALL 2025-05-10 00:11:14 +02:00
Francisco Javier Trujillo Mata
2ecbb9d8b8 Fixing remaining magic numbers 2025-05-08 20:48:18 +02:00
Wouter Wijsman
7f1ca0ab34 Merge pull request #284 from sblondon/remove-unused-variables
clean: remove unused variables
2025-05-07 09:02:13 +02:00
Stéphane Blondon
65bf2b5997 clean: remove unused variables
Fix several unused variables detected by gcc and displayed such as:

morphskin.c:270:37: warning: variable ‘ss’ set but not used [-Wunused-but-set-variable]
  270 |                         float cs,ct,ss,st;
      |                                     ^~
morphskin.c:270:31: warning: variable ‘cs’ set but not used [-Wunused-but-set-variable]
  270 |                         float cs,ct,ss,st;
      |                               ^~
2025-05-06 22:33:55 +02:00
Wouter Wijsman
95da2b307e Merge pull request #282 from fjtrujy/improve_scgeu
Keeps improving the `sceGu` definitions and implementation
2025-05-06 22:22:15 +02:00
Stéphane Blondon
79ac3b7d71 refacto: replace magical values
Hexadecimal constants are replaced by the same value, defined by the FRAME_SIZE macro. These changes are based on the same replacement already done in clut.c.
2025-05-06 13:57:12 +02:00
Stéphane Blondon
3c93bc03dc clean: remove unused macros 2025-05-06 08:19:16 +02:00
Francisco Javier Trujillo Mata
36a4b80f91 Clean ups around sceGu
- Fix sceGuBreak
- Fix sceGuContinue
- Fix sceGuDrawArrayN
- Fix sceGuMorphWeight
- Remove unnecessary 0xffffff as it is done by sendCommandi
- Improve the name of some parameters
- Create and use GU_MAX_STATUS
- Remove magic numbers in `sceGuMaterial`
- Remove magic numbers in `sceGuMorphWeight`
- Remove magic numbers in `sceGuSetMatrix`
- Remove magic numbers in `sceGuSignal`
2025-05-04 22:09:01 +02:00
Francisco Javier Trujillo Mata
067e6d446f Add double list example 2025-05-03 17:16:29 +02:00
Francisco Javier Trujillo Mata
915acbd4d2 Improve sceGuStart 2025-05-03 16:25:04 +02:00
Stéphane Blondon
05aa23c994 clean: remove unused macros 2025-05-01 20:31:37 +02:00
Hellcat
10361e5033 added 'data.psar' handling to create_pbp_file 2025-04-19 18:20:34 +02:00
Stéphane Blondon
a1e1b0b73f refacto: same constant declaration become unique
It's clearer to declare 'decrypted' outside the conditional compilation.
Only the two other declarations are different.
2025-04-16 13:35:33 +02:00
Francisco Javier Trujillo Mata
c926419761 Stop using magic numbers for sceGuStart 2025-04-10 20:15:47 +02:00
Francisco Javier Trujillo Mata
86f7e0deed Stop using magic numbers for sceGuSync 2025-04-10 20:15:47 +02:00
Francisco Javier Trujillo Mata
6364b27f57 Use proper values for sceGuSync 2025-04-10 20:15:35 +02:00
Francisco Javier Trujillo Mata
b1fcb2b738 Improve finish 2025-04-10 20:15:16 +02:00
Wouter Wijsman
ae4731159b Move SceSize to psptypes.h 2025-04-04 23:06:59 +02:00
Wouter Wijsman
173d3a60eb Fix SceSize declaration missing in pspdmac.h 2025-04-04 11:00:20 +02:00
Diamond Rivero
22f7003c0c Merge pull request #271 from sblondon/fix-function-warnings
doc: search improvement and link to constants
2025-04-04 07:17:48 +08:00
Stéphane Blondon
c302bae2bc doc: search improvement and link to constants
This patch fixes the search for function like __mcount() or gprof_start().
The issue existed for functions with function attribute (__attribute__()): Doxygen didn't parsed it properly. It fixes such warnings:
warning: documented symbol '__mcount' was not declared or defined.

After changing Doxygen configuration to fix it, new warnings appears. For example:
warning: explicit link request to 'PSP_VAUDIO_FORMAT_' could not be resolved

It's fixed by using the full name of the constants. By the way, it also fixes the link to the constants in the documentation.

Initial patch based on:
https://stackoverflow.com/questions/75410662/doxygen-does-not-parse-attribute-correctly
2025-04-03 21:57:55 +02:00
Joel16
6735dbef03 sysreg: Use known function names 2025-04-01 18:18:22 +01:00
Wouter Wijsman
aeb9951c3f Merge pull request #265 from joel16/syscon
syscon: Use known/documented function names
2025-04-01 14:23:15 +02:00
Stéphane Blondon
653af10004 fix: remove two warnings during documentation generation
Doxygen displays two warnings (among others) because parameters filled in @params are not correct.

The warnings fixed are:
pspsdk/src/user/pspthreadman.h:622: warning: argument 'optionsPTr' of command @param is not found in the argument list of sceKernelCreateLwMutex(SceLwMutexWorkarea *workarea, const char *name, SceUInt32 attr, int initialCount, u32 *optionsPtr)
pspsdk/src/user/pspthreadman.h:622: warning: The following parameter of sceKernelCreateLwMutex(SceLwMutexWorkarea *workarea, const char *name, SceUInt32 attr, int initialCount, u32 *optionsPtr) is not documented:
  parameter 'optionsPtr'
pspsdk/src/user/pspthreadman.h:665: warning: argument 'name' of command @param is not found in the argument list of sceKernelUnlockLwMutex(SceLwMutexWorkarea *workarea, int lockCount)
2025-03-29 22:48:01 +01:00
Joel16
8188e46a55 syscon: Add documentation for sceSysconGetTimeStamp and cleanup other docs 2025-03-28 12:08:04 +00:00
Joel16
507c83ee98 syscon: Use known/documented function names 2025-03-28 12:03:11 +00:00
Diamond Rivero
6926e59030 dmac: fix name mangling 2025-03-19 20:45:10 +08:00
Stéphane Blondon
d3c330f73a doc: add description to libraries
The descriptions are displayed in the documentation generated by Doxygen.
2025-03-19 11:05:35 +01:00
Diamond Rivero
b34b444416 Merge pull request #250 from fjtrujy/improveLibCWeakSuport
Add options to disable some `newlib`functionalities
2025-02-06 15:45:00 +08:00
Yuki Nagato
1b0f2d7093 Added #include <sys/syslimits.h> to fix PATH_MAX not being defined in libcglue/glue.c. 2025-02-01 19:33:17 -08:00