tag

Author: admin Publish: January 18, 2012 Category: Default

sprintf(strText,"%*.*lf",slen,alen,f); //-- 这里控制精度

strtok 的安全隐患

Author: admin Publish: August 7, 2010 Category: Default

char szNameList[256]=“abc,def”;
const char* pszName=strtok(szNameList,',');
while(pszName)
{
fun(pszName); // 在这里调用的函数内部可能也使用了strtok操作 直接影响了下面token取值
pszName = strtok(NULL,',');
}
// -------------------------------------------------------------------------
对strtok这样一个隐患及其诡异的用法,标准库居然一直没有什么应对,太奇怪了!
解决方案
......
/*const*/ char* pszName=strtok(szNameList,',');
while(pszName)
{
......
pszName = strtok(pszName+strlen(pszName)+1,',');
}

MUFileDecrypt

Author: admin Publish: June 17, 2010 Category: Default

--English--
Decrypt or encrypt the files of MU client.
Supported formats:
Bmd <-> smd
ozj <-> jpg
ozt <-> tga
ozb <-> bmp
Copy MUFileDecrypt.exe to be decrypted or encrypted files directory, run MUFileDecrypt.exe.
Generates two directories dec and enc:
dec for the decrypted files.
enc for the encrypted files.

--Chinese--
解密或加密MU客户端文件。
支持格式:
Bmd<->smd
ozj<->jpg
ozt<->tga
ozb<->bmp
把MUFileDecrypt.exe拷贝到要解密或加密的文件目录,运行MUFileDecrypt.exe。
生成两个目录 dec和enc:
dec为解密后的文件。
enc为加密后的文件。

MUFileDecrypt.zip

MUWorldEditor 0.7.1

Author: admin Publish: June 17, 2010 Category: Default

--English--
[0.7.1]
Add intelligent painting the second layer of tile.
Add painting the lightmap.
Add saving .att files with 64kb and 128kb.
Add new interface.
Add the guide int the tip of the interface.
Add the revocation and repeat in the terrain editor.
Add the multi-select operation in the object editor.
Improved the moving operation in the object editor.
Merge the MuModelView.

--Chinese--
[0.7.1]
增加智能画第二层地表的功能。
增加画光照图的功能。
增加att文件存储为64kb及128kb兼容性格式。
增加新的图形界面。
在控件的tip里增加了的户指南信息。
在地形编辑器里增加撤销和重复操作。
在对象编辑器里增加多选操作。
在对象编辑器里改进对象位移操作。
合并了mu模型查看器。

Download

70% repair the scene of TorchLight

Author: admin Publish: April 12, 2010 Category: Default

TorchLight.jpgTorchLight2.jpg

  1. 1