mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
40 lines
870 B
Objective-C
40 lines
870 B
Objective-C
//
|
|
// ExternalReference.m
|
|
// XNI
|
|
//
|
|
// Created by Matej Jan on 29.11.10.
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
//
|
|
|
|
#import "ExternalReference.h"
|
|
|
|
#import "Retronator.Xni.Framework.Content.Pipeline.h"
|
|
|
|
@implementation ExternalReference
|
|
|
|
- (id) initWithFilename:(NSString *)theFilename
|
|
{
|
|
self = [super init];
|
|
if (self != nil) {
|
|
filename = [theFilename retain];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (id) initWithFilename:(NSString *)theFilename relativeToContent:(ContentIdentity *)relativeToContent {
|
|
/*NSString *absoluteFilename = [NSString pathWithComponents:[NSArray arrayWithObjects:@"/", relativeToContent.sourceFilename, theFilename, nil]];
|
|
return [self initWithFilename:[absoluteFilename stringByStandardizingPath]];*/
|
|
return [self initWithFilename:theFilename];
|
|
}
|
|
|
|
@synthesize filename;
|
|
|
|
- (void) dealloc
|
|
{
|
|
[filename release];
|
|
[super dealloc];
|
|
}
|
|
|
|
|
|
@end
|