mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-18 16:41:49 +00:00
1cc9d13ccf
Files moved but not modified. Changes to follow in a subsequent commit. You down with CPP? git-svn-id: https://svn.eduke32.com/eduke32@6055 1a8010ca-5511-0410-912e-c29ae57300e0
43 lines
882 B
Text
43 lines
882 B
Text
/*
|
|
* 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:(grpfile_t const *)grpfile
|
|
{
|
|
self = [super init];
|
|
if (self) {
|
|
fg = grpfile;
|
|
namestring = [NSString stringWithCString:fg->type->name encoding:NSUTF8StringEncoding];
|
|
[namestring retain];
|
|
grpnamestring = [NSString stringWithCString:fg->filename encoding:NSUTF8StringEncoding];
|
|
[grpnamestring retain];
|
|
}
|
|
return self;
|
|
}
|
|
- (void)dealloc
|
|
{
|
|
[namestring release];
|
|
[grpnamestring release];
|
|
[super dealloc];
|
|
}
|
|
- (NSString *)name
|
|
{
|
|
return namestring;
|
|
}
|
|
- (NSString *)grpname
|
|
{
|
|
return grpnamestring;
|
|
}
|
|
- (grpfile_t const *)entryptr
|
|
{
|
|
return fg;
|
|
}
|
|
@end
|