Source release of Wolfenstein 3D Classic Platinum for iOS, 2.1

This commit is contained in:
Travis Bradshaw
2012-01-31 17:08:50 -06:00
parent 16304944b4
commit d7fff51d7d
235 changed files with 64191 additions and 1418 deletions

View File

@@ -1,14 +1,9 @@
/*
* iphone_alerts.c
* wolf3d
*
* Created by Greg Hodges on 7/14/09.
* Copyright 2009 id software. All rights reserved.
*
*/
/*
Copyright (C) 2009 Id Software, Inc.
Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
This file is part of the WOLF3D iOS v2.1 GPL Source Code.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -26,7 +21,6 @@
*/
#import "iphone_alerts.h"
#import "wolf3dAppDelegate.h"
@@ -71,6 +65,34 @@ void iphoneKillMessageBox()
[alert dismissWithClickedButtonIndex:alert.cancelButtonIndex animated:NO];
}
/*
========================
iphoneNewMessageBox()
creates a new message box without
drestroying the old one
========================
*/
void iphoneNewMessageBox(char *title, char *message)
{
UIAlertView *newAlert;
newAlert = [[UIAlertView alloc] initWithTitle:@"Title"
message:@"Message"
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles: nil];
NSString *nsTitle = [[NSString alloc] initWithCString:title];
NSString *nsMessage = [[NSString alloc] initWithCString:message];
newAlert.title = nsTitle;
newAlert.message = nsMessage;
[newAlert show];
[newAlert release];
}
#if 1
/*
==================================