/[hegemonie]/hegemonie/Network/Source/HegemonieServer.m
ViewVC logotype

Diff of /hegemonie/Network/Source/HegemonieServer.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by nicov, Fri Aug 29 16:27:42 2003 UTC revision 1.13 by dam, Thu Sep 4 09:13:27 2003 UTC
# Line 34  Line 34 
34  #include <Foundation/NSException.h>  #include <Foundation/NSException.h>
35  #include <Foundation/NSFileHandle.h>  #include <Foundation/NSFileHandle.h>
36  #include <Foundation/NSNotification.h>  #include <Foundation/NSNotification.h>
37    #include <Foundation/NSBundle.h>
38  #include <Foundation/NSProcessInfo.h>  #include <Foundation/NSProcessInfo.h>
39    
40  #include "Network/NetParty.h"  #include "Network/NetParty.h"
# Line 57  Line 58 
58    
59  + (MdlModel *) model  + (MdlModel *) model
60  {  {
61    return [[MdlModel alloc]    static MdlModel *model = nil;
62             initWithContentsOfFile: @"Resources/Model/bateau.mdl"];  
63      if (!model)
64        {
65          NSString *modelPath
66            = [[NSBundle mainBundle] pathForResource: @"bateau"
67                                              ofType: @"mdl"
68                                         inDirectory: @"Data/Models"];
69    
70          model = [[MdlModel alloc] initWithContentsOfFile: modelPath];
71        }
72    
73      return model;
74  }  }
75    
76  @end  @end

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26