mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-28 09:14:39 -04:00
Declare all folder names in a single source file (#2039)
This commit is contained in:
parent
d9bbd1b9ff
commit
d5c8525afc
56 changed files with 224 additions and 105 deletions
|
@ -106,6 +106,7 @@
|
|||
#include "file.hpp"
|
||||
#include "file_reader.hpp"
|
||||
#include "png_writer.hpp"
|
||||
#include "file_path.hpp"
|
||||
|
||||
using portapack::receiver_model;
|
||||
using portapack::transmitter_model;
|
||||
|
@ -473,8 +474,8 @@ void SystemStatusView::on_bias_tee() {
|
|||
}
|
||||
|
||||
void SystemStatusView::on_camera() {
|
||||
ensure_directory("SCREENSHOTS");
|
||||
auto path = next_filename_matching_pattern(u"SCREENSHOTS/SCR_????.PNG");
|
||||
ensure_directory(screenshots_dir);
|
||||
auto path = next_filename_matching_pattern(screenshots_dir / u"SCR_????.PNG");
|
||||
|
||||
if (path.empty())
|
||||
return;
|
||||
|
@ -535,7 +536,7 @@ void SystemStatusView::rtc_battery_workaround() {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
ensure_directory(SETTINGS_DIR);
|
||||
ensure_directory(settings_dir);
|
||||
make_new_file(DATE_FILEFLAG);
|
||||
|
||||
year = 1980;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue