From 57ec4227128ed3851a7299b75f1efc0b1add26cd Mon Sep 17 00:00:00 2001 From: cidoku Date: Fri, 21 Feb 2025 15:07:04 -0300 Subject: [PATCH] don't read from ini twice when loading a character's emotions --- charselect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charselect.py b/charselect.py index 9f219ac..5311302 100644 --- a/charselect.py +++ b/charselect.py @@ -133,6 +133,8 @@ class charselect(QtGui.QWidget): self.prevpage.hide() char = self.charlist[ind][0].lower() + if not exists(AOpath+"characters/"+ char): + print char, "doesn't exist" if exists(AOpath+"characters/"+ char +"/char_icon.png"): # AO2 self.setBtnImage.emit(AOpath+"characters/"+ char +"/char_icon.png", i) elif exists(AOpath+"misc/demothings/"+ char +"_char_icon.png"): # AO 1.7.5/1.8