mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:04:06 +00:00
f4f969482e
This was SVN commit r8.
22 lines
528 B
C++
Executable File
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);
|
|
} |