Atmosphère (and custom) Nintendo Switch result code database
Go to file
2024-04-03 21:30:27 +02:00
default_rc_hpps Fix/update libnx results 2024-01-15 00:06:04 +01:00
docs Add more results, organize things 2024-04-03 21:30:27 +02:00
.gitignore Add current work 2022-07-29 00:49:33 +02:00
arc_cpp_gen_template.hpp Keep module names too 2023-06-13 19:09:55 +02:00
arc_cpp_gen.py Support Python3.6-3.8 2023-07-08 15:44:01 +08:00
arc_db_gen.py Support for URLs, do not provide emuiibo/Goldleaf defines here 2023-07-01 18:55:18 +02:00
arc.py Proper Markdown formatting 2024-04-03 21:15:45 +02:00
gen_pages.sh Add more results, organize things 2024-04-03 21:30:27 +02:00
LICENSE Initial commit 2022-07-29 00:35:01 +02:00
README.md Add more results, organize things 2024-04-03 21:30:27 +02:00

arc

arc (short for "Atmosphère" and "result" combined) is a Python Atmosphère/custom Nintendo Switch result utility

Check here for the generated results list!

Table of contents

Databases

arc_db_gen.py parses both Atmosphère's C++ headers and custom (default or user-provided) result headers to generate two JSON databases: arc_rc_db.json and arc_range_db.json (of results and result ranges respectively).

Some useful/template result headers are provided here. Note that they are not valid C++ headers by themselves, since they just follow a simple format (similar to Atmosphère's result headers but without any includes or extra stuff).

Pull requests can be used to add default result definitions of relevant homebrew projects using custom results.

C++ headers

arc_cpp_gen.py generates a standalone C++ header containing result definitions and utilities from the generated database results and result ranges.

Usage

Generating the databases

Examples:

python arc.py gen_db default

python arc.py gen_db ams+goldleaf+emuiibo

python arc.py gen_db default+../dummy/rc_defs.hpp

'ams' is a special token for Atmosphère results, while 'default' is a special token for including all Atmosphère and default results

User-provided (non-default) result headers can be supplied (with or without their extension in case it's .rc.hpp) or even as an absolute/relative path (always keep in mind that + is a reserved symbol here) or URL

Result lookup (databases must already be generated)

Examples:

python arc.py rc 0x202

python arc.py rc 2168-0002

This will print all the result or result range matches found in the databases

C++ generation (databases must already be generated)

Example: python arc.py gen_cpp testmod TESTMACRO test.hpp

This will generate everything inside testmod:: namespace, and all macro names will be prefixed as TESTMACRO_<...>

Markdown list generation (databases must already be generated)

Example: python arc.py gen_md out_list.md

This will generate a neatly formatted Markdown list with all the results

Result list

This repository itself maintains a generated list of all default (Atmosphère + libnx + hbloader) results here.

Credits

Atmosphère for containing simple definitions of a wide range of official results (and basically the best official result+name collection out there)