Changeset 343


Ignore:
Timestamp:
Feb 28, 2010, 1:32:42 PM (15 years ago)
Author:
maron
Message:

Funkční balení souboru MPQarchiver

Location:
tools/MPQarchiver
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tools/MPQarchiver

    • Property svn:ignore
      •  

        old new  
        11bin
        22obj
         3MPQarchiver.layout
  • tools/MPQarchiver/MPQarchiver.cbp

    r342 r343  
    3737                        <Add option="-fexceptions" />
    3838                </Compiler>
     39                <Linker>
     40                        <Add library="/var/www/html/tools/MPQarchiver/Storm.lib" />
     41                </Linker>
    3942                <Unit filename="main.cpp" />
    4043                <Extensions>
  • tools/MPQarchiver/MPQarchiver.depend

    r342 r343  
    11# depslib dependency file v1.0
    2 1267310639 source:/var/www/html/tools/MPQarchiver/main.cpp
     21267356754 source:/var/www/html/tools/MPQarchiver/main.cpp
    33        <iostream>
    44        "StormLib.h"
  • tools/MPQarchiver/main.cpp

    r342 r343  
    2929    {
    3030        printf("Creating %s ...\n", szMpqCopyName);
    31        // SFileSetLocale(LANG_CZECH);
     31  //      SFileSetLocale(LANG_CZECH);
    3232        if(!SFileCreateArchiveEx(szMpqCopyName,
    3333                                 MPQ_CREATE_ARCHIVE_V2 | OPEN_ALWAYS,
     
    3939
    4040    // Add the same file multiple times to make archive bigger than 4 GB
    41     if(nError == ERROR_SUCCESS)
    42     {
     41    if(nError == ERROR_SUCCESS) {
    4342        for(int i = 1; i < 4; i++)
    4443        {
     
    6059int main()
    6160{
    62     TestCreateArchiveV2("test2.mpq","test.mpq");
     61
     62    HANDLE hMpq = NULL;                 // Handle of created archive
     63
     64
     65    if(!SFileCreateArchiveEx("new.mpq", MPQ_CREATE_ATTRIBUTES | CREATE_ALWAYS, 0x100, &hMpq)) {
     66      printf("Cannot create archive");
     67    }
     68
     69    if(!SFileAddFile(hMpq, "GameTips.dbc", "GameTips.dbc", MPQ_FILE_ENCRYPTED | MPQ_FILE_HAS_EXTRA | MPQ_FILE_IMPLODE)) {
     70      printf("Cannot add the file");
     71    }
     72
     73    //TODO: listfile, parametry, help
     74
     75
     76    SFileCloseArchive(hMpq);
     77
     78  //TestCreateArchiveV2("test2.mpq","GameTips.dbc");
    6379    return 0;
    6480}
Note: See TracChangeset for help on using the changeset viewer.