Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| coding_rules [2022/05/08 07:17] – add mention of how to do multi-line descriptions atari | coding_rules [2022/07/21 02:43] (current) – add some bullet point coding rules atari | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| In other words, don't try to handle all cases if it makes the software complicated and unmaintainable. | In other words, don't try to handle all cases if it makes the software complicated and unmaintainable. | ||
| + | |||
| + | * Don't add new systems that are simply variations of other systems, aim to have one folder per system. An exception to this rule would be if a system required different configuration to launch, as asking the user to create two sets of custom emulator settings should be avoided. | ||
| + | * Don't put in [[: | ||
| + | * Build emulators from their source where possible. | ||
| + | * Don't add emulators that duplicate the function of other emulators. We must avoid redundancy as there is an upper limit as to how much data can be packed into the '' | ||
| + | * Avoid making patches if possible, encourage the source developer of the software to fix issues upstream. | ||
| + | * Avoid adding files to the '' | ||
| <WRAP center round info> | <WRAP center round info> | ||
| Line 56: | Line 63: | ||
| <code yaml> | <code yaml> | ||
| < | < | ||
| + | group: <group name> # An optional group to sort this feature under. This is mostly used to categorize " | ||
| features: [<common feature 1>, <common feature 2>, < | features: [<common feature 1>, <common feature 2>, < | ||
| cfeatures: # Custom features, found in the advanced settings. | cfeatures: # Custom features, found in the advanced settings. | ||
| Line 92: | Line 100: | ||
| " | " | ||
| perf_hacks: | perf_hacks: | ||
| + | group: ADVANCED OPTIONS | ||
| prompt: | prompt: | ||
| description: | description: | ||
| Line 101: | Line 110: | ||
| cfeatures: | cfeatures: | ||
| emulatedwiimotes: | emulatedwiimotes: | ||
| + | group: ADVANCED OPTIONS | ||
| prompt: | prompt: | ||
| description: | description: | ||
| Line 109: | Line 119: | ||
| Spacing is everything here. Triple-check that you have used the correct amount of indentation. If your build fails to compile because of errors related to '' | Spacing is everything here. Triple-check that you have used the correct amount of indentation. If your build fails to compile because of errors related to '' | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | A new way to use options is available as presets, read more about it on [[https:// | ||
| + | |||
| + | (FIXME how is this done in Batocera, though?) | ||
| + | </ | ||
| General practice isn't to be a one-for-one representation of the settings available to the emulator, that would defy the point of Batocera. Important settings that may need to be changed frequently/ | General practice isn't to be a one-for-one representation of the settings available to the emulator, that would defy the point of Batocera. Important settings that may need to be changed frequently/ | ||
- coding_rules.1651994264.txt.gz
- Last modified: 4 years ago
- by atari