quakeforge/ruamoko/cl_menu/CvarObject.r
2010-11-24 17:01:19 +09:00

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