• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] How to export a file with ShadowFlare MPQ

Status
Not open for further replies.
Level 9
Joined
Jun 21, 2012
Messages
432
Can anyone show me how to use SFmpq.dll functions in c#? I tried with this but I do not know if I'm doing it right:

Code:
        [DllImport("SFmpq.dll")]
        static extern bool MpqOpenArchiveForUpdate(string lpFileName, uint dwFlags);

        [DllImport("SFmpq.dll")]
        static extern bool SFileOpenFile(string szMpqName, uint phMPQ);

        [DllImport("SFmpq.dll")]
        static extern bool SFileCloseFile(uint hFile);

Ok forgot the above I found a solutions for this at Работа с MPQ посредством SFmpq.dll [C#] [Архив] - Форумы Blizzard.GG
 
Last edited:
Status
Not open for further replies.
Top