Call for contributions: system, user and application services

Đang mở
#699 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cmake, cpp, github-actions, python
Lĩnh vực
operating-systems, testing

Hướng nghiên cứu

Start by choosing one documented single-query export from the listed service files; read docs/dev/debt/libSceSystemService.md for silent stubs and the relevant public SDK material. Add a guest test under core/libs/tests/, register it in that library’s CMakeLists.txt, and run the named test with ctest --test-dir build -R <name> --output-on-failure. Done means the export matches fresh-system behavior, handles edge cases without host-specific data, and passes the test.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: libs enhancement help wanted medium

Call for contributions: system, user and application services

Why

Titles ask the system who the user is, what the app is, what content is installed and whether a dialog is open. Most of that is small, self-contained logic that can be written and tested on the CPU. Counted from the code: libSceUserService has 44 implemented exports and 651 unimplemented ones; libSceSystemService 146 implemented, 471 unimplemented and 55 that return success without effect; libSceAppContent and libSceSysmodule 9 unimplemented each; libSceCommonDialog 23.

Many of these exports belong to system processes, not to titles. Start with the ones documented in public SDK material and leave the internal ones. docs/dev/debt/libSceSystemService.md lists 10 silent stubs to check against the console's behaviour.

What to pick
  • User service: the per-user queries a title makes at start-up (user ids, names, login state, color, languages, event queue) in core/libs/prx/libSceUserService/ (Export.cpp, LegacyExports.cpp, Inventory1360Exports.cpp).
  • System service: parameters, status, notices, LoadExec, the pending exports in core/libs/prx/libSceSystemService/PendingExports.cpp and the 55 inert ones.
  • App content and PlayGo: libSceAppContent (9) and libScePlayGo (1).
  • Common dialog client: the 14 CommonDialogUtil::Client methods and the unnamed NIDs in libSceCommonDialog.
  • Sysmodule: the 9 exports in libSceSysmodule, with the module-load order rules.
Expected result

Exports that return what the console returns for a title that is alone on a fresh system (a single user, no network account), with tests for the edge cases and no host-specific data.

How to test without our games

A guest test in core/libs/tests/Guest<Name>.cpp, registered with add_test_executable in the library's CMakeLists.txt, calling the exports through the ABI wrappers. Run ctest --test-dir build -R <name> --output-on-failure. No game, no console, no GPU.

Difficulty

good first issue for single-query exports with a documented signature; medium for the event queue and dialog client.

Who to ask

Ask in this issue; the maintainers read every comment.

Rules that apply to every call
  • Comment on the issue before you start, so two people do not do the same work. One topic per pull request, against AnyKyty.
  • Conventional Commits (fix(libkernel): ..., feat(libScePad): ..., test(...), docs: ...). No comments in code. Nothing specific to one title: no title IDs, no data taken from a game, no per-title branches.
  • Every export either does exactly what it should or throws: an unimplemented export calls NotImplemented_nid_no_patch(__func__). A silent stub is allowed only when it unblocks a title and only affects the UI; list it under "Silent stubs" in the library's file in docs/dev/debt/ through a fragment (docs/dev/debt/changes/<branch>.md, see docs/dev/TechnicalDebt.md).
  • Say where a behaviour comes from: public SDK headers and documentation, a published reverse-engineering write-up, or your own analysis of your own console's system modules. Do not post or attach firmware files, system modules or game files.
  • Each test finishes in 30 s on the CI runners. python3 tools/check_conventions.py --base origin/AnyKyty must pass before you push.
  • Build and test: docs/dev/START_HERE.md and docs/dev/BUILD.md. CI runs the library tests on GitHub's runners (no GPU, no game) on Linux and Windows.
Ngôn ngữ chính
C++
Star
214
Fork
7
Merge trung bình
7 giờ 53 phút
Pull request đã merge (30 ngày)
280

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của simnJS/AnyPS5

Tất cả issue của simnJS/AnyPS5

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.