diff -r 27e115fa1143 -r 0a9c3735a713 project_files/HedgewarsMobile/Classes/GameSetup.m --- a/project_files/HedgewarsMobile/Classes/GameSetup.m Thu Sep 23 00:09:16 2010 +0200 +++ b/project_files/HedgewarsMobile/Classes/GameSetup.m Thu Sep 23 01:29:20 2010 +0200 @@ -44,10 +44,14 @@ isNetGame = [[gameDictionary objectForKey:@"netgame"] boolValue]; NSString *path = [gameDictionary objectForKey:@"savefile"]; // if path is empty it means i have to create a new file, otherwise i read from that file - if ([path isEqualToString:@""] == YES) - self.savePath = [SAVES_DIRECTORY() stringByAppendingFormat:@"%@.hws", [[NSDate date] description]]; - else - self.savePath = [SAVES_DIRECTORY() stringByAppendingString:path]; + if ([path isEqualToString:@""] == YES) { + NSDateFormatter *outputFormatter = [[NSDateFormatter alloc] init]; + [outputFormatter setDateFormat:@"yyyy-MM-dd 'at' HH,mm"]; + NSString *newDateString = [outputFormatter stringFromDate:[NSDate date]]; + self.savePath = [SAVES_DIRECTORY() stringByAppendingFormat:@"%@.hws", newDateString]; + [outputFormatter release]; + } else + self.savePath = path; } return self; }