# HG changeset patch # User Jens Alfke # Date 1216326544 25200 # Node ID 3b750982ff3966f26c8be73048e41c330e3be49e # Parent ed057f4a72ca7727ca9254a3a973ed21dc6fbe51 Don't load Checkers sound files till a game is displayed on a board; this speeds up launch. diff -r ed057f4a72ca -r 3b750982ff39 Source/CheckersGame.m --- a/Source/CheckersGame.m Wed Jul 16 10:49:04 2008 -0700 +++ b/Source/CheckersGame.m Thu Jul 17 13:29:04 2008 -0700 @@ -54,11 +54,6 @@ self = [super init]; if (self != nil) { [self setNumberOfPlayers: 2]; - - PreloadSound(@"Tink"); - PreloadSound(@"Funk"); - PreloadSound(@"Blow"); - PreloadSound(@"Pop"); } return self; } @@ -87,6 +82,11 @@ - (void) setUpBoard { + PreloadSound(@"Tink"); + PreloadSound(@"Funk"); + PreloadSound(@"Blow"); + PreloadSound(@"Pop"); + RectGrid *board = [[RectGrid alloc] initWithRows: 8 columns: 8 frame: _table.bounds]; _board = board; [_table addSublayer: _board];