cos
- Fubuki.Atsuya
-

- Mesaje: 1968
- Membru din: 22 Iun 2015, 21:13
- Server: OldLegion2
- Regat: Shinsoo
- Aprecieri: 455
- Mulţumiri: 815
- Rezolvări prob.: 2
- Discord: Copiază ID
- Ene
-

- Mesaje: 1659
- Membru din: 09 Sep 2016, 01:00
- Server: Clasic
- Regat: Jinno
- Aprecieri: 274
- Mulţumiri: 603
- Rezolvări prob.: 2
- Discord: Copiază ID
cautta in binary
userInterface.cpp
Cod: Selectaţi tot
bool PackInitialize(const char * c_pszFolder)
{
NANOBEGIN
if (_access(c_pszFolder, 0) != 0)
return true;
std::string stFolder(c_pszFolder);
stFolder += "/";
std::string stFileName(stFolder);
stFileName += "Index";
CMappedFile file;
LPCVOID pvData;
if (!file.Create(stFileName.c_str(), &pvData, 0, 0))
{
LogBoxf("FATAL ERROR! File not exist: %s", stFileName.c_str());
TraceError("FATAL ERROR! File not exist: %s", stFileName.c_str());
return true;
}
CMemoryTextFileLoader TextLoader;
TextLoader.Bind(file.Size(), pvData);
bool bPackFirst = TRUE;
const std::string& strPackType = TextLoader.GetLineString(0);
if (strPackType.compare("FILE") && strPackType.compare("PACK"))
{
TraceError("Pack/Index has invalid syntax. First line must be 'PACK' or 'FILE'");
return false;
}
ps : nu am testat nustiu daca aici e sau alt undeva tu incearca
cred ca ceva de genu cauti tu pnm...
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 99 vizitatori




