From: Stefan F. <ste...@we...> - 2011-07-05 17:09:24
|
Brett & Erik, some time ago I started to refactor the game loading code in one class to get the ListAndFixSavedFiles utility adjusted to the new comments. To avoid more incompatibilities from the started refactoring from Brett now I thought to adjust the code to include the new reload functionality of Erik to be able to commit those changes. Nearly all loading functionality has been moved to a new GameLoader class in rails.util package. The load function in Game, GameManager and ListAndFixSavedFiles now all make use of a a GameLoader object. I have also added a line to the reload error message that asks the user to submit the corrupt save file to the Rails user list for bug tracking. If you think that is not a good idea, simply remove that text from LocalisedProperties. Stefan |