Skip to content
Snippets Groups Projects
Commit 647a0a3f authored by Schuh Martin's avatar Schuh Martin
Browse files

Update: Persistence.java (added method to verify settings data loaded from JSON)

parent 539bdd3a
No related branches found
No related tags found
4 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development,!14Finishing Touch II
......@@ -403,6 +403,18 @@ public class Persistence {
}
}
public void verifyAppSettings() throws DatabaseException{
try {
Parser.volumeValid(settings.getSfxVolume());
Parser.volumeValid(settings.getMusicVolume());
log.info("Settings data is valid!");
}
catch(Exception e){
log.error(e);
throw new DatabaseException(e.getMessage());
}
}
public void resetPlayerStatistics() throws DatabaseException{
try {
verifyPlayerAccount();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment