mirror of
https://github.com/id-Software/DOOM-iOS.git
synced 2025-06-02 10:01:48 +00:00
Added targets for DOOM II and FInal DOOM, also logos
This commit is contained in:
parent
f848ab2a97
commit
c205c6600d
93 changed files with 4920 additions and 87 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "iphone_delegate.h"
|
||||
#include "doomiphone.h"
|
||||
#import "EpisodeMenuViewController.h"
|
||||
#import "MissionMenuViewController.h"
|
||||
#import "CreditsMenuViewController.h"
|
||||
#import "SettingsMenuViewController.h"
|
||||
#import "ControlsMenuViewController.h"
|
||||
|
@ -47,10 +48,23 @@
|
|||
[super awakeFromNib];
|
||||
isHidden = YES;
|
||||
|
||||
#if GAME_DOOM
|
||||
iphoneIWADSelect("doom.wad");
|
||||
#endif
|
||||
|
||||
#if GAME_DOOM2
|
||||
iphoneIWADSelect("doom2.wad");
|
||||
#endif
|
||||
|
||||
#if GAME_FINALDOOM
|
||||
// just picking a wad file to make the startup happy
|
||||
iphoneIWADSelect("tnt.wad");
|
||||
#endif
|
||||
|
||||
if( !didInit ) {
|
||||
char full_iwad[1024];
|
||||
|
||||
doom_iwad = strdup(Cvar_VariableString("iwadSelection"));
|
||||
// doom_iwad = strdup(Cvar_VariableString("iwadSelection"));
|
||||
doom_pwads = strdup(Cvar_VariableString("pwadSelection"));
|
||||
|
||||
I_FindFile( doom_iwad, ".wad", full_iwad );
|
||||
|
@ -213,10 +227,17 @@ BOOL settingsMenuSelected = NO;
|
|||
*/
|
||||
- (IBAction) NewGamePressed {
|
||||
|
||||
#if GAME_DOOM2
|
||||
Doom_MissionMenuViewController *vc = [[Doom_MissionMenuViewController alloc] initWithNibName:[gAppDelegate GetNibNameForDevice:@"MissionMenuView"] bundle:nil];
|
||||
#else
|
||||
// Switch to episode view menu.
|
||||
Doom_EpisodeMenuViewController *vc = [[Doom_EpisodeMenuViewController alloc] initWithNibName:[gAppDelegate GetNibNameForDevice:@"EpisodeMenuView"] bundle:nil];
|
||||
|
||||
#endif
|
||||
|
||||
[self.navigationController pushViewController:vc animated:NO];
|
||||
#if GAME_DOOM2
|
||||
[vc setEpisode:0 ];
|
||||
#endif
|
||||
[vc release];
|
||||
|
||||
Sound_StartLocalSound( "iphone/baborted_01.wav" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue