This commit is contained in:
parent
81bc8b99ba
commit
6662d783ce
21 changed files with 435 additions and 236 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue