aboutsummaryrefslogtreecommitdiff
path: root/storm_dll
diff options
context:
space:
mode:
authorLadislav Zezula <E:\Ladik\Mail>2015-11-07 23:04:44 +0100
committerLadislav Zezula <E:\Ladik\Mail>2015-11-07 23:04:44 +0100
commitdae6c5e315445b0c25d6a500deb7e7e625d8df90 (patch)
treeea2c745ca2633a13fb859277ec73dc690a2565e4 /storm_dll
parent18dda26660660e7ceaf18524e3d5e3d611df8f20 (diff)
+ Hashing function no longer replaces slashes for backslashes (storm.dll v 2002 doesn't do that either)
+ Support for names beginning with slashes, like \/\BTNThoriumAmmunition.blp
Diffstat (limited to 'storm_dll')
-rw-r--r--storm_dll/Storm_dll.sln1
-rw-r--r--storm_dll/storm_test.cpp12
2 files changed, 8 insertions, 5 deletions
diff --git a/storm_dll/Storm_dll.sln b/storm_dll/Storm_dll.sln
index 3b323fa..2641f65 100644
--- a/storm_dll/Storm_dll.sln
+++ b/storm_dll/Storm_dll.sln
@@ -1,4 +1,3 @@
-
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Storm_dll", "Storm_dll.vcproj", "{BD600973-C6FA-4CE3-8821-67F6418B7F9C}"
diff --git a/storm_dll/storm_test.cpp b/storm_dll/storm_test.cpp
index e691776..4c69443 100644
--- a/storm_dll/storm_test.cpp
+++ b/storm_dll/storm_test.cpp
@@ -25,12 +25,16 @@
int main()
{
HANDLE hMpq = NULL;
+ HANDLE hFile = NULL;
- _asm int 3;
- StormOpenFileEx(NULL, NULL, 0, NULL);
+ if(StormOpenArchive("e:\\Multimedia\\MPQs\\1995 - Test MPQs\\MPQ_2015_v1_MessListFile.mpq", 0, 0, &hMpq))
+ {
+ _asm int 3;
+ if(StormOpenFileEx(hMpq, "\\\\\\*¹BTNGoblinPyrotechnician.blp", 0, &hFile))
+ {
+ StormCloseFile(hFile);
+ }
- if(StormOpenArchive("E:\\Multimedia\\MPQs\\1995 - Test MPQs\\MPQ_2014_v1_ProtectedMap_Spazzler3.w3x", 0, 0, &hMpq))
- {
StormCloseArchive(hMpq);
}