Changeset 357 for trunk


Ignore:
Timestamp:
11/01/09 05:01:20 (10 years ago)
Author:
bretzel_parpg
Message:

Ticket #136. Fix by Bretzel.

  • Added a check to verify that the filename you enter to save your game ends with .dat.
  • If it does not it will be automatically added.
  • Left the warning function that is no longer in use in case we want to revert back.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/filebrowser.py

    r356 r357  
    117117            data = self._widget.collectData('saveField') 
    118118            if data: 
    119                 if (data.split('.')[1] == 'dat'): 
     119                if (data.endswith(".dat")): 
    120120                    self.file_selected(self.path, \ 
    121121                                u2s(self._widget.collectData('saveField'))) 
    122122                else: 
    123                     self._warningMessage() 
     123                    self.file_selected(self.path,  
     124                                       u2s(self._widget.collectData('saveField')) + '.dat') 
    124125                return 
    125126             
Note: See TracChangeset for help on using the changeset viewer.