mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-05 20:50:43 +00:00
24 lines
285 B
R
24 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
|