feat: validate world saves
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
eb31a951a1
commit
a7c9b2f172
15 changed files with 195 additions and 4 deletions
|
@ -121,6 +121,9 @@ bool processZIP(WorldSave& save, ProcessingLevel level)
|
|||
|
||||
auto [ found, save_dir_name, found_saves_dir ] = contains_level_dat(zip);
|
||||
|
||||
if (save_dir_name.endsWith("/")) {
|
||||
save_dir_name.chop(1);
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue