Files
firestorm/Gameleap/code/mw4/Tools/TCTb/Feature.cpp
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

50 lines
939 B
C++

// Feature.cpp: implementation of the Feature class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "tctb.h"
#include "Feature.h"
#include <Stuff\StuffHeaders.hpp>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Feature::Feature(CString &fname)
{
Load(fname);
}
Feature::Feature()
{
}
Feature::~Feature()
{
}
void Feature::Load(const char *fnme)
{
FileName=fnme;
NotationFile ini_file(fnme);
char *name;
ini_file.GetEntry("General","Name",(const char **)&name);
Name=name;
}
void Feature::Save()
{
NotationFile ini_file;
ini_file.SetEntry("General","Name",(LPCSTR)Name);
ini_file.SaveAs(FileName);
}