Files
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

55 lines
1.2 KiB
C++

// PP2KTexturePool.cpp: implementation of the PP2KTexturePool class.
//
//////////////////////////////////////////////////////////////////////
#include "PP2KTexturePool.h"
#include<Gameos\\Toolos.hpp>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
PP2KTexturePool::PP2KTexturePool(const char* path,const char* hint_file):TGAFilePool(path,hint_file)
{
HintFile=new NotationFile(texturePath+"Textures.hint");
}
bool PP2KTexturePool::LoadImageGOS(GOSImage *image, int t)
{
/*
MString full_name,file_name = texturePath;
file_name += image->imageName;
full_name =file_name;
full_name +=".png";
const char *tstr;
if(!gos_DoesFileExist(full_name))
{
full_name=file_name;
full_name += ".tga";
if(!gos_DoesFileExist(full_name))
{
Page *page=HintFile->FindPage(image->imageName);
if(page && page->GetEntry("alias",&tstr))
{
image->imageName=tstr;
}
else
{
}
}
}
*/
return TGAFilePool::LoadImageGOS(image,t);
}
PP2KTexturePool::~PP2KTexturePool()
{
delete HintFile;
}