mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Correctly reset the ANS file number when restarting Uemis download
If we ran out of space on the Uemis SDA during download and the user unmounted, unplugged and replugged the SDA, we need to take care to correctly reset the file number we use for finding the correct ANS file. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ddebdc0982
commit
4e02f5f3a3
1 changed files with 3 additions and 2 deletions
|
@ -128,11 +128,12 @@ static gboolean uemis_init(const char *path)
|
|||
if (sscanf(tmp + 1, "%d", &filenr) != 1)
|
||||
return FALSE;
|
||||
}
|
||||
#if UEMIS_DEBUG > 1
|
||||
else {
|
||||
filenr = 0;
|
||||
#if UEMIS_DEBUG > 1
|
||||
fprintf(debugfile, "::r req.txt skipped as there were fewer than 5 bytes\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
close (reqtxt_file);
|
||||
|
||||
/* It would be nice if we could simply go back to the first set of
|
||||
|
|
Loading…
Reference in a new issue