Revert "Revert "added settings""

This reverts commit 4c6605c037.
This commit is contained in:
potzplitz 2024-03-15 22:45:27 +01:00
parent 00f42c6bcd
commit 11fb528c8c

View file

@ -0,0 +1,28 @@
package settingsfunctions;
import java.io.File;
public class DeleteDatabase {
private void deleter(String database) {
File filelength = new File("C:\\ExtremeDemonList\\" + database);
File[] filelengthindex = filelength.listFiles();
for(File file : filelengthindex) {
file.delete();
}
}
public void deleteCompleted() {
deleter("completed");
}
public void deleteUncompleted() {
deleter("levels");
}
public void deleteAll() {
deleteCompleted();
deleteUncompleted();
}
}