mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-11-25 06:13:13 -05:00
Playlist editor (#2506)
* make both exist * format * fix focusing issue * add example hopper payload * fix compiler err * clean up * correct linker script addr * lint * PoC * unknown: write_line issue * clean up * merge * fix read line * remove debug code * fix english * support new file * support enter delay * fix crash * remove debug code * some final tune
This commit is contained in:
parent
7ad4ad99dd
commit
73f7f84718
6 changed files with 627 additions and 1 deletions
|
|
@ -50,6 +50,10 @@ Optional<File::Error> File::open_fatfs(const std::filesystem::path& filename, BY
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* @param read_only: open in readonly mode
|
||||
* @param create: create if it doesnt exist
|
||||
*/
|
||||
Optional<File::Error> File::open(const std::filesystem::path& filename, bool read_only, bool create) {
|
||||
BYTE mode = read_only ? FA_READ : FA_READ | FA_WRITE;
|
||||
if (create)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue