raze/polymer/eduke32/Apple/GrpFile.game.m
hendricks266 27b279a1ce JFDuke3D port: OS X Startup Window, copied almost verbatim
It needs to have the sound quality box removed and the Game directory box added, possibly among other things.

git-svn-id: https://svn.eduke32.com/eduke32@2396 1a8010ca-5511-0410-912e-c29ae57300e0
2012-03-04 09:30:27 +00:00

40 lines
679 B
Objective-C

/*
* GrpFile.game.m
* duke3d
*
* Created by Jonathon Fowler on 24/07/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "GrpFile.game.h"
@implementation GrpFile
- (id)initWithGrpfile:(struct grpfile *)grpfile andName:(NSString*)aName
{
self = [super init];
if (self) {
fg = grpfile;
name = aName;
[aName retain];
}
return self;
}
- (void)dealloc
{
[name release];
[super dealloc];
}
- (NSString *)name
{
return name;
}
- (NSString *)grpname
{
return [NSString stringWithCString:(fg->name)];
}
- (struct grpfile *)entryptr
{
return fg;
}
@end