/[projet1]/public/oric/demos/OricTech/code/main.c
Defence Force logotype

Diff of /public/oric/demos/OricTech/code/main.c

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

revision 1345 by dbug, Sun May 31 12:03:16 2015 UTC revision 1346 by dbug, Sat Jan 9 16:14:40 2016 UTC
# Line 7  Line 7 
7    
8  #include "defines.h"  #include "defines.h"
9  #include "floppy_description.h"  #include "floppy_description.h"
10    #include "loader_api.h"
11  #include "script.h"  #include "script.h"
12    
13  #ifdef OSDKNAME_intro  #ifdef OSDKNAME_intro
# Line 61  extern char SampleSoundTechnoPop[]; Line 62  extern char SampleSoundTechnoPop[];
62  extern char SampleSoundChimeStart[];  extern char SampleSoundChimeStart[];
63  extern char SampleSoundChimeEnd[];  extern char SampleSoundChimeEnd[];
64    
 // loader_api.s  
 extern unsigned char LoaderApiEntryIndex;  
 extern unsigned char LoaderApiAddressLow;  
 extern unsigned char LoaderApiAddressHigh;  
 extern char* LoaderApiAddress;  
   
 extern void SetLoadAddress();  
 extern void LoadFile();  
   
   
65    
66  #ifdef OSDKNAME_intro  #ifdef OSDKNAME_intro
67    
# Line 313  void main() Line 304  void main()
304    
305    
306          // Load the cloud picture          // Load the cloud picture
307          LoaderApiEntryIndex=LOADER_CLOUD;          LoadFileAt(LOADER_CLOUD,CloudPicture);
         LoaderApiAddress=CloudPicture;  
         SetLoadAddress();  
         LoadFile();  
308    
309          // Load the rain drop picture          // Load the rain drop picture
310          LoaderApiEntryIndex=LOADER_RAINDROP;          LoadFileAt(LOADER_RAINDROP,RainDropPicture);
         LoaderApiAddress=RainDropPicture;  
         SetLoadAddress();  
         LoadFile();  
311    
312          // Load the VIP scroll stuff          // Load the VIP scroll stuff
313          LoaderApiEntryIndex=LOADER_VIP_LOGO;          LoadFileAt(LOADER_VIP_LOGO,VipLogoPicture);
         LoaderApiAddress=VipLogoPicture;  
         SetLoadAddress();  
         LoadFile();  
314    
315          // Load the Long Scroller          // Load the Long Scroller
316          LoaderApiEntryIndex=LOADER_LONG_SCROLLER;          LoadFileAt(LOADER_LONG_SCROLLER,LongScrollerPicture);
         LoaderApiAddress=LongScrollerPicture;  
         SetLoadAddress();  
         LoadFile();  
317    
318          // Load the sound warning picture          // Load the sound warning picture
319          LoaderApiEntryIndex=LOADER_SOUND_WARNING;          LoadFileAt(LOADER_SOUND_WARNING,SoundWarningPicture);
         LoaderApiAddress=SoundWarningPicture;  
         SetLoadAddress();  
         LoadFile();  
320    
321  #ifdef ENABLE_MUSIC      #ifdef ENABLE_MUSIC    
322          // Load and play the music          // Load and play the music
323          LoaderApiEntryIndex=LOADER_INTRO_MUSIC;          LoadFileAt(LOADER_INTRO_MUSIC,MusicData);
         LoaderApiAddress=MusicData;  
         SetLoadAddress();  
         LoadFile();  
324          Mym_MusicStart();          Mym_MusicStart();
325  #endif  #endif
326    

Legend:
Removed from v.1345  
changed lines
  Added in v.1346

  ViewVC Help
Powered by ViewVC 1.1.26