找回密码
 点一下
查看: 2899|回复: 9

dll'less MPQ library

[复制链接]
发表于 2008-6-22 16:44:49 | 显示全部楼层 |阅读模式
原文,不知道該说啥好..
I'm finally ready to present my [opensource] MPQ library that requires no additional dll's and is cross-platform (you just need to change file system functions to work for your platform).

The only things that are missing are compression/decompression functions other than zlib (I'm not sure inserting the huge pkzip, huffman and wave compression code is worth it because it isn't used in WC3, and bzip2 is easy to add but the bzip2 library requires a dll to work).
I haven't tested it with wow's MPQ archives but I suppose it would work if you add bzip2 library.

So, all you need is a few source files and the zlib library (http://zlib.net/ - build it for your system) which is a .lib and still doesn't require additional dll's).

If you ask why not just use sfmpq, you can customize this library to add your features that would be much harder to do with sfmpq (also you don't need to bother with dll imports).

Included are the library source files (rmpq.h rmpq.cpp filesys.cpp mpqcompress.h mpqcompress.cpp), test (test.cpp) and zlib compiled for Visual C++ 2008.

RMPQ.zip

61 KB, 下载次数: 164

发表于 2008-6-22 17:30:35 | 显示全部楼层
看不懂
能给点中文介绍吗?
回复

使用道具 举报

发表于 2008-6-22 17:54:45 | 显示全部楼层

有前途
可惜SF用习惯了
回复

使用道具 举报

 楼主| 发表于 2008-6-22 18:08:44 | 显示全部楼层
給開發者用的不用額外DLL的MPQ庫
回复

使用道具 举报

发表于 2008-6-22 18:52:47 | 显示全部楼层
貌似那stormlib也是不用dll的
回复

使用道具 举报

发表于 2008-6-22 22:02:47 | 显示全部楼层
stormlib不能编辑。
这个东西好哦。看了源代码。
回复

使用道具 举报

发表于 2008-6-22 22:04:25 | 显示全部楼层
话说偶自己想做的LIB已经发霉了.......
回复

使用道具 举报

发表于 2008-6-22 22:09:17 | 显示全部楼层
已经没兴趣了,
等待星际2的出现。
回复

使用道具 举报

发表于 2008-6-22 22:28:28 | 显示全部楼层
引用第5楼离不开电脑于2008-06-22 22:02发表的  :
stormlib不能编辑。
这个东西好哦。看了源代码。
貌似可以的丫
还支持MPQ2呢
不是storm.dll那个额
回复

使用道具 举报

发表于 2008-6-23 08:23:55 | 显示全部楼层
搜索了一下stormlib,还不错,也是开源的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-11-22 01:16 , Processed in 0.035684 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表