mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-04 23:45:26 +00:00
File load path bugfix
This commit is contained in:
parent
d2ea631fe7
commit
d6afd84c66
@ -44,9 +44,9 @@ void ReplayAppView::on_file_changed(std::filesystem::path new_file_path) {
|
||||
|
||||
file_path = new_file_path;
|
||||
|
||||
text_filename.set(new_file_path.string().substr(0, 19));
|
||||
text_filename.set(file_path.filename().string().substr(0, 19));
|
||||
|
||||
bbd_file.open("/" + new_file_path.string());
|
||||
bbd_file.open("/" + file_path.string());
|
||||
auto file_size = bbd_file.size();
|
||||
auto duration = (file_size * 1000) / (2 * 2 * sampling_rate / 8);
|
||||
|
||||
|
@ -231,7 +231,7 @@ FileLoadView::FileLoadView(
|
||||
} else {
|
||||
nav_.pop();
|
||||
if (on_changed)
|
||||
on_changed(entry_list[menu_view.highlighted_index()].entry_path);
|
||||
on_changed(current_path.string() + '/' + entry_list[menu_view.highlighted_index()].entry_path.string());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user