mirror of
https://github.com/id-Software/Wolf3D-iOS.git
synced 2026-03-20 00:49:35 +01:00
Source release of Wolfenstein 3D Classic Platinum for iOS, 2.1
This commit is contained in:
@@ -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
|
||||
/*
|
||||
==================================
|
||||
|
||||
Reference in New Issue
Block a user