c++ NKSP.EXE
#13


/////////////////////////////////////////////////////////////////////////
// [071122: Su-won] NEW_MOONSTONE
void CUIGamble::ReadMoonStoneLOD()
{
FILE* fMoonStone = NULL;

CTString strFullPath = _fnmApplicationPath.FileDir();
CTString tPath = strFullPath + "data\\MoonStone.lod";

INDEX iMax = 0;

if( fMoonStone = fopen(tPath.str_String ,"rb") )
{
for( int i=0; i<5; ++i)
{
int nCount;
fread(&nCount,sizeof(int),1,fMoonStone);

m_saReward[i].New(nCount);

if (nCount > iMax) iMax = nCount; // ÃÖ´ë °¹¼ÃƒÂ¶

for(int j=0; j<nCount; ++j)
fread(&m_saReward[i][j],sizeof(int),1,fMoonStone);
}
}

ASSERT(iMax > 0 && "MoonStone Reward Count 0");

if (iMax > 0)
{
m_iTexID = new INDEX[iMax];
m_rtNewMark = new UIRectUV[iMax];
}
}

 

Thank you wizatek



Messages In This Thread
[No subject] - by CyberClaus - 10-24-2012, 05:24 AM
[No subject] - by CyberClaus - 10-24-2012, 05:28 AM
[No subject] - by someone - 10-24-2012, 08:50 AM
[No subject] - by CyberClaus - 10-24-2012, 11:56 AM
[No subject] - by CyberClaus - 10-24-2012, 12:10 PM
[No subject] - by XxMachaxX - 10-24-2012, 12:13 PM
[No subject] - by Douglas Farias - 10-24-2012, 05:09 PM
[No subject] - by Twostars - 10-24-2012, 07:00 PM
[No subject] - by CyberClaus - 10-27-2012, 03:15 PM
[No subject] - by HateMe - 10-27-2012, 03:37 PM
[No subject] - by Nikolee - 10-27-2012, 05:30 PM
[No subject] - by Wizatek - 10-27-2012, 11:12 PM
[No subject] - by CyberClaus - 10-28-2012, 11:48 AM
[No subject] - by soryjero - 10-28-2012, 12:04 PM
[No subject] - by Sentence - 10-28-2012, 12:28 PM
[No subject] - by soryjero - 10-28-2012, 01:35 PM
[No subject] - by Sentence - 10-28-2012, 01:59 PM
[No subject] - by soryjero - 10-28-2012, 08:10 PM
[No subject] - by someone - 10-28-2012, 08:41 PM
[No subject] - by soryjero - 10-28-2012, 10:01 PM
[No subject] - by someone - 10-28-2012, 10:59 PM
[No subject] - by soryjero - 10-29-2012, 08:02 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)