comparison demos/rpg/scripts/gamecontroller.py @ 545:bc7e3c3122d7

The save xml files are now deleted correctly on the Mac platform.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 03 Jun 2010 02:40:05 +0000
parents cb7ec12214a9
children 8fee2d2286e9
comparison
equal deleted inserted replaced
544:c9bdf145069f 545:bc7e3c3122d7
256 return result 256 return result
257 257
258 def newGame(self): 258 def newGame(self):
259 self._guicontroller.hideMainMenu() 259 self._guicontroller.hideMainMenu()
260 260
261 for filename in glob.glob("saves\*.xml"): 261 for filename in glob.glob(os.path.join("saves" , "*.xml")):
262 os.remove(filename) 262 os.remove(filename)
263 263
264 mapname = self._settings.get("RPG", "TownMapFile", "town") 264 mapname = self._settings.get("RPG", "TownMapFile", "town")
265 self.loadMap(mapname) 265 self.loadMap(mapname)
266 266