portapack-mayhem / mayhem-firmware

Custom firmware for the HackRF+PortaPack H1/H2/H4
https://hackrf.app
GNU General Public License v3.0
3.31k stars 540 forks source link

Declare all folder names in a single source file #2039

Closed NotherNgineer closed 6 months ago

NotherNgineer commented 6 months ago

Declare all folder paths in one file (clean-up, and to make the changes simpler if we opt to change folder paths in the future in spite of my compatibility concerns).

Also, all paths are now declared using type std::filesystem:path (this actually consumes more ROM space versus simple char strings, but technically it's the more proper type for file paths).

(Ideally) this PR should cause no functional change from a user perspective.

I recommend reviewing the new file "file_path.cpp" first.

Test firmware on discord: https://discord.com/channels/719669764804444213/722101917135798312/1221706419569426472