This commit is contained in:
Daveo 2001-02-01 22:48:22 +00:00
parent 81bc8b99ba
commit 6662d783ce
21 changed files with 435 additions and 236 deletions

View file

@ -3,12 +3,17 @@
/*************/
#include "stdafx.h"
#include "MapEdit.h"
#include "MapEditDoc.h"
#include <Vector3.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include "GLEnabledView.h"
#include <Misc.hpp>
#include <GFName.hpp>
#include "Utils.H"
/**************************************************************************************/
@ -249,3 +254,27 @@ char Name[_MAX_FNAME];
sprintf(OutName,"%s%s%s.%s",Drive,Path,Name,Ext);
}
/**************************************************************************************/
void MakeFullFilename(const char* In,GString &Out)
{
GFName FName=theApp.GetCurrent()->GetPathName();
GString Path;
Path=FName.Drive();
Path+=FName.Dir();
Path.Append('\\');
Out=Path;
Out+=In;
}
/**************************************************************************************/
void MakePathRel2App(const char* In,char *Out)
{
GString RootPath=theApp.GetCurrent()->GetPathName();
GFName::makerelative(RootPath,In,Out);
}