fixed absurd amount of decimals in check on cat, fixed desktop loading saves (oops, it broke in past commits), and load error and success message for desktop

This commit is contained in:
2026-04-20 17:27:56 -04:00
parent 407de1cfba
commit 6026cd49c1
2 changed files with 12 additions and 3 deletions

11
game.py
View File

@@ -120,7 +120,16 @@ class Game:
save = "saves/" + ui.select(
"Please choose a savefile to load", os.listdir("saves")
)
self.cat = data.save.load(save)
try:
self.cat = data.save.load(save)
except:
print("The savefile you selected was unable to load, it may be corrupt.")
return False
else:
print(
f"Savefile loaded successfully! Continuing save with {self.cat.name}."
)
return True
def run(self):
title()