mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-11-23 05:20:31 -05:00
Openstreetmap support (#2765)
This commit is contained in:
parent
e6d4081c06
commit
4dda7cfaa5
20 changed files with 447 additions and 162 deletions
|
|
@ -113,7 +113,7 @@ File::Result<bool> File::eof() {
|
|||
File::Result<File::Offset> File::seek(Offset new_position) {
|
||||
/* NOTE: Returns *old* position, not new position */
|
||||
const auto old_position = tell();
|
||||
const auto result = f_lseek(&f, new_position);
|
||||
const auto result = (old_position == new_position) ? FR_OK : f_lseek(&f, new_position);
|
||||
if (result != FR_OK) {
|
||||
return {static_cast<Error>(result)};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue