Changeset 343 for tools/MPQarchiver/main.cpp
- Timestamp:
- Feb 28, 2010, 1:32:42 PM (15 years ago)
- Location:
- tools/MPQarchiver
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/MPQarchiver
- Property svn:ignore
-
old new 1 1 bin 2 2 obj 3 MPQarchiver.layout
-
- Property svn:ignore
-
tools/MPQarchiver/main.cpp
r342 r343 29 29 { 30 30 printf("Creating %s ...\n", szMpqCopyName); 31 //SFileSetLocale(LANG_CZECH);31 // SFileSetLocale(LANG_CZECH); 32 32 if(!SFileCreateArchiveEx(szMpqCopyName, 33 33 MPQ_CREATE_ARCHIVE_V2 | OPEN_ALWAYS, … … 39 39 40 40 // Add the same file multiple times to make archive bigger than 4 GB 41 if(nError == ERROR_SUCCESS) 42 { 41 if(nError == ERROR_SUCCESS) { 43 42 for(int i = 1; i < 4; i++) 44 43 { … … 60 59 int main() 61 60 { 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"); 63 79 return 0; 64 80 }
Note:
See TracChangeset
for help on using the changeset viewer.