Commit Graph

278 Commits

Author SHA1 Message Date
diamant3
1e1fe31165 fix resource leaks 2023-09-26 13:01:09 +08:00
Wouter Wijsman
fc94f99fc6 Merge pull request #152 from taba256/master
fix sceKernelVolatileMemTryLock typo
2023-09-24 21:01:33 +02:00
taba
db3fb0b2a9 fix typo 2023-09-21 22:11:49 +09:00
Francisco Javier Trujillo Mata
0f93765068 Merge pull request #150 from bucanero/patch-1
Add sceIoDevctl structure to get free disk space
2023-09-19 16:12:18 +02:00
Damián Parrino
70678dd078 Update pspiofilemgr_devctl.h 2023-09-19 11:03:47 -03:00
Damián Parrino
b3a6694d46 Update Makefile.am 2023-09-18 18:41:39 -03:00
Damián Parrino
fd74b76a78 Create pspiofilemgr_devctl.h 2023-09-18 18:31:15 -03:00
Damián Parrino
909b42ae65 Update pspiofilemgr.h 2023-09-18 18:21:22 -03:00
Diamond Rivero
e20ebe3822 remove docker pulls badge
remove the badge because it does not exist in your dockerhub
2023-08-06 00:31:56 +02:00
bvdaakster
9dc89b1a49 Fix htmlviewer sample (#145)
* Fix htmlviewer sample

* Uses PSP_HEAP_THRESHOLD_SIZE_KB macro instead of defining a fixed heap size

* Revert to original htmlviewer sample and apply minimal fixes only

---------

Co-authored-by: Bas van den Aakster <bas@xtr.dev>
2023-07-14 09:41:11 +02:00
Francisco Javier Trujillo Mata
c79e8ecfee Merge pull request #137 from pspdev/add-psp-packages-dependencies
Add dependencies for building packages to container
2023-07-03 09:45:09 +02:00
Francisco Javier Trujillo Mata
865574ea87 Merge pull request #143 from davidgfnet/master
Fix init / libc_init ordering
2023-06-29 19:46:45 +02:00
David Guillen Fandos
4b2982cb7d Fix init / libc_init ordering
_init might require working pthreads, due to C++ constructors using
mutexes and threads. Since libc does not require _init execution, we
simply reorder them.

This removes support for kernel-mode _init on user programs that run in
kernel mode (mostly old FW 1.5, but should not affect almost any
homebrew out there, since they don't use user-mode main thread).
2023-06-28 23:11:56 +02:00
Wouter Wijsman
710deac140 Merge pull request #142 from diamant3/improve-badges
Improve badges
2023-06-28 09:21:36 +02:00
diamant3
df849e224b Improve badges
another is fix for documentation intro
2023-06-28 07:45:21 +08:00
Wouter Wijsman
0cbce71ddf Merge pull request #141 from IridescentRose/gu-docfix
Fixed documentation -- added 8 bit notes.
2023-06-27 15:41:32 +02:00
Nathan Bourgeois
3f22a7ec08 Fixed documentation -- added 8 bit notes. 2023-06-27 08:08:05 -04:00
Wouter Wijsman
cec2f5e7b3 Merge pull request #140 from IridescentRose/doc-gu-16bit-drawarray
Documentation: Update sceGuDrawArray() for 16-bit vertices.
2023-06-27 09:16:34 +02:00
Nathan Bourgeois
09d3a7fd39 Documentation: Update sceGuDrawArray() for 16-bit vertices. 2023-06-26 23:57:38 -04:00
Francisco Javier Trujillo Mata
2c5778b1f3 Merge pull request #136 from fjtrujy/newlibLockAPI
Implement full LOCK API for newlib
2023-06-24 15:47:38 +02:00
Francisco Javier Trujillo Mata
ba34585a9c Adding missing time.h 2023-06-24 12:42:20 +02:00
Francisco Javier Trujillo Mata
a1e07de6dc Implement full LOCK API for newlib 2023-06-24 12:39:33 +02:00
Wouter Wijsman
0695c1d3a2 Merge pull request #138 from pspdev/upgrade-used-actions
Upgrade used actions
2023-06-24 00:31:01 +02:00
Wouter Wijsman
f705c71a38 Do not change doxygen-action version 2023-06-23 22:35:10 +02:00
Wouter Wijsman
b6062edde3 Use newer actions in doxygen build 2023-06-23 22:30:39 +02:00
Wouter Wijsman
7973cb9287 Upgrade used actions
This should resolve more deprecation errors.
2023-06-23 22:25:24 +02:00
Wouter Wijsman
7b125accf3 Merge pull request #116 from pspdev/resolve-warnings-github-action
Update checkout and upload-artifact actions
2023-06-23 21:59:51 +02:00
Wouter Wijsman
257d7d2e98 Add dependencies for building packages to container
The pspsdk container is only used by psp-packages and psplinkusb. In the psp-packages actions we are installing the dependencies needing for building packages over 30 times. This is a waste of time and resources (it's also kinda mean towards the Alpine Linux team). My suggestion is to make sure those dependencies are already available in this container. This would probably make psp-packages build 10 times faster.
2023-06-23 20:19:34 +02:00
Wouter Wijsman
a7b9552834 Replace set-output usage 2023-06-22 21:24:13 +02:00
Wouter Wijsman
a287a5b60e Merge pull request #113 from fjtrujy/extend_speed_sample
Add the usage of triangles for textures
2023-06-07 10:24:25 +02:00
Ben
3adbfea262 Merge pull request #135 from pspdev/do-not-optimize-by-default
Do not optimize by default
2023-06-07 10:49:11 +10:00
Wouter Wijsman
17b2541028 Do not optimize by default 2023-05-29 13:36:53 +02:00
Wouter Wijsman
1cbba381ac Merge pull request #133 from pyroesp/sample/logo_plugin
add new sample 'image display' to pspsdk (plugin)
2023-05-29 13:12:29 +02:00
pyroesp
0987b3602b add image_display sample to pspsdk
fix for PR

renamed logo folder to image_display, renamed logo to image in source, changed image used, removed FW version from makefile, added header to source, added image_display to all samples makefile
2023-05-28 05:05:32 +02:00
Francisco Javier Trujillo Mata
dbe0b6e03e Merge pull request #129 from pspdev/no-daily-builds
Do not rebuild every day
2023-05-25 23:27:46 +02:00
Wouter Wijsman
fbfb0692d3 Merge pull request #130 from MotoLegacy/uint-type
ATRAC3: Fix mysterious "uint" type reference in pspatrac3.h
2023-05-11 19:25:37 +02:00
Steam Deck User
cbdbba845e ATRAC3: Fix mysterious "uint" type reference in pspatrac3.h
Not sure where this originated. Possibly a leftover from old SDK
versions since the uint type appears in some archaic homebrew as well.
This was the only reference of `uint` in the entire SDK. Went ahead and
changed this appropriately to `u32`.
2023-05-11 13:20:42 -04:00
Wouter Wijsman
56e5100c29 Do not rebuild every day
Daily was too often and this will be rebuild weekly with the changes to psptoolchain-allegrex anyway, because of the cascading effect build into the repos.
2023-05-10 21:13:34 +02:00
Wouter Wijsman
6763ecc95e Merge pull request #127 from MotoLegacy/nightly-docker
Workflow: Enable nightly deployment of Docker container
2023-04-25 10:15:30 +02:00
Wouter Wijsman
655cdc349c Merge pull request #128 from MotoLegacy/undef-fix
Guard `_PSP_FW_VERSION` macro to mitigate warnings with `-Wundef`
2023-04-25 10:07:44 +02:00
Steam Deck User
216a8c463f netdialog sample: Fix typo with 2023-04-24 23:36:35 -04:00
Steam Deck User
78a1f9ac72 Guard _PSP_FW_VERSION macro to mitigate warnings with -Wundef
Fixes #123. Guards `_PSP_FW_VERSION` references with `#if defined()` to avoid the SDK headers returning warnings when compiling modules with the `-Wundef` cflag.
2023-04-24 23:28:33 -04:00
Steam Deck User
58e50a0aa1 Workflow: Enable nightly deployment of Docker container 2023-04-23 20:16:56 -04:00
Wouter Wijsman
4493616d8e Merge pull request #125 from MotoLegacy/sfo-changes
build.mak: Improve and streamline .SFO creation
2023-04-18 18:11:23 +02:00
Ian
f7da81f22b build.mak: Fix oversight with PSP_LARGE_MEMORY condition tree, clean changes
`MEMSIZE` would not be set as expected if `PSP_FW_VERSION` was set to `1` above firmware 3.90 and the warning was sent to the console. This is addressed.

I've also made the `MEMSIZE` field a make var (`EXPAND_MEMORY`) that gets set on/off in the tree and just gets used by `SFO` flags at the end of it, instead of setting them in multiple spaces.
2023-04-18 11:16:53 -04:00
Wouter Wijsman
3855502a07 Merge pull request #126 from MotoLegacy/adhocctl-parms
SceNetAdhocctlParams: Swap order of BSSID and Nickname
2023-04-18 11:41:30 +02:00
Wouter Wijsman
d3cc172331 Merge pull request #49 from yoanlcq/fix-get-callstack
Fix pspDebugGetStackTrace() by using _etext as upper bound for ra
2023-04-18 11:40:07 +02:00
Steam Deck User
5660b2b35a SceNetAdhocctlParams: Swap order of BSSID and Nickname
Prompted by #46, I have taken the time looking at `pspnet_adhocctl.prx`
in older firmware versions via Ghidra (thanks @sajattack) and some
early Adhoc-capable titles like Ridge Racer and Hot Shot's Golf, I
have concluded that the order of elements in the `SceNetAdhocctlParams`
struct to have always been `nickname`, followed by `bssid`. Not changed
in any later firmware revision. This commit resolves this discrepancy.
2023-04-17 18:46:21 -04:00
Steam Deck User
e87d3fa804 build.mak: Improve and streamline .SFO creation
The current state of building .SFO binaries is rather primitive --
as it stood, build.mak forced its own flags to be used, always.
If you were building without PSP_LARGE_MEMORY, build.mak would use
a deprecated tool for generation as well, one that cobbles together
undocumented flags in an array of bytes and shoves it into a file.

The first change this commit makes is by enabling use of the "new"
mkfsoex, which creates a smaller but still bootable SFO without
any arguments given. Developers are now able to provide custom
SFO flags now using this, added via `SFOFLAGS` in their Makefile.

This means that developers can now (at their own discretion) provide
custom region information, parental control level, minimum firmware
boot level, etc. with:

```make
SFOFLAGS = -d REGION=16394 -d PARENTAL_LEVEL=4 -s PSP_SYSTEM_VER=4.01
```

As a side-effect, this also makes the SDK more adapted to new
custom firmware releases that may add new SFO flags.

The second change made is turning `PSP_LARGE_MEMORY` into an opt-out
/enabled by default flag if developers are targeting a firmware
version newer than 3.90. Custom firmware versions starting from
4.01 M33 guard against expanding the user memory partition to 52mB
if the unit detected is PSP-1000. Therefore having this check in
place becomes redundant, potentially complicating Makefiles. A
warning is printed out allowing developers to be aware of this fact
and removing the flag from their Makefile.
2023-04-14 10:55:00 -04:00
Wouter Wijsman
5f2af5d358 Merge pull request #124 from MotoLegacy/user-memory
Add support for retrieving the amount of free RAM in user partitions.
2023-04-14 09:38:49 +02:00