0ad/terrain/bak/0/FileResource.cpp
janwas f4f969482e Initial revision
This was SVN commit r8.
2003-11-03 16:17:21 +00:00

22 lines
528 B
C++
Executable File

//***********************************************************
//
// Name: FileResource.Cpp
// Author: Poya Manouchehri
//
// Description: A File resource is directly loaded from a data
// file, like a BMP or WAV file.
//
//***********************************************************
#include "FileResource.H"
void CFileResource::SetupParams (char *path, RESOURCETYPE type)
{
m_Type = type;
char Extention[10];
strcpy (m_Path, path);
_splitpath (m_Path, NULL, NULL, m_Name, Extention);
strcat (m_Name, Extention);
}