mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 17:01:22 +00:00
25 lines
285 B
R
25 lines
285 B
R
|
#include "string.h"
|
||
|
|
||
|
#include "CvarObject.h"
|
||
|
|
||
|
@implementation CvarObject
|
||
|
-(id)init
|
||
|
{
|
||
|
self = [super init];
|
||
|
name = str_new ();
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
-(id)initWithCvar:(string)cvname
|
||
|
{
|
||
|
self = [self init];
|
||
|
str_copy (name, cvname);
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
-(void)dealloc
|
||
|
{
|
||
|
str_free (name);
|
||
|
}
|
||
|
@end
|