#include "C4Include.h"
#include "c4group/C4Group.h"
#include "C4Version.h"
#include "c4group/C4Update.h"
#include "platform/StdRegistry.h"
#include "C4Licenses.h"
Go to the source code of this file.
Functions | |
bool | EraseItemSafe (const char *szFilename) |
void | DisplayGroup (C4Group &grp, const char *filter=nullptr) |
void | PrintGroupInternals (C4Group &grp, int indent_level=0) |
bool | ProcessGroup (const char *FilenamePar) |
int | RegisterShellExtensions () |
int | UnregisterShellExtensions () |
int | main (int argc, char *argv[]) |
Variables | |
int | globalArgC |
char ** | globalArgV |
int | iFirstCommand = 0 |
bool | fQuiet |
bool | fRecursive = false |
bool | fRegisterShell = false |
bool | fUnregisterShell = false |
char | strExecuteAtEnd [_MAX_PATH_LEN] = "" |
int | iResult = 0 |
void DisplayGroup | ( | C4Group & | grp, |
const char * | filter = nullptr |
||
) |
Definition at line 47 of file C4GroupMain.cpp.
References C4Group::EntryCRC32(), StdStrBuf::getData(), GetFileCRC(), C4Group::GetFirstEntry(), C4Group::GetFullName(), C4Group::GetHeader(), C4GroupEntry::Next, C4GroupHeader::Ver1, C4GroupHeader::Ver2, and WildcardMatch().
Referenced by ProcessGroup().
bool EraseItemSafe | ( | const char * | szFilename | ) |
Definition at line 42 of file C4GroupMain.cpp.
Referenced by C4Group_DeleteItem(), and C4Group::DeleteEntry().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 439 of file C4GroupMain.cpp.
References _MAX_PATH, C4CFN_FLS, C4Group_SetSortList(), ForEachFile(), fQuiet, fRecursive, fRegisterShell, fUnregisterShell, GetWideChar(), globalArgC, globalArgV, iFirstCommand, iResult, Log(), LogF(), OCLicenses, ProcessGroup(), RegisterShellExtensions(), SCharCount(), SCopy(), strExecuteAtEnd, UnregisterShellExtensions(), and ZeroMem().
Referenced by C4ScriptGuiWindowAction::Execute(), and C4ScriptGuiWindowAction::ExecuteCommand().
void PrintGroupInternals | ( | C4Group & | grp, |
int | indent_level = 0 |
||
) |
Definition at line 95 of file C4GroupMain.cpp.
References C4GroupHeader::Entries, C4Group::GetFirstEntry(), C4Group::GetHeader(), C4GroupHeader::Id, C4GroupEntry::Next, C4Group::OpenAsChild(), C4GroupHeader::Ver1, and C4GroupHeader::Ver2.
Referenced by ProcessGroup().
bool ProcessGroup | ( | const char * | FilenamePar | ) |
Definition at line 122 of file C4GroupMain.cpp.
References C4Group_ApplyUpdate(), C4Group_ExplodeDirectory(), C4Group_PackDirectory(), C4Group_PackDirectoryTo(), C4Group_SetSortList(), C4Group_UnpackDirectory(), C4Group::Close(), DirectorySeparator, DisplayGroup(), EraseItem(), fQuiet, C4Group::GetError(), GetFilename(), globalArgC, globalArgV, iFirstCommand, Log(), LogF(), C4UpdatePackage::MakeUpdate(), C4Group::Open(), PrintGroupInternals(), SEqual(), C4Group::SetStdOutput(), and C4Group::Sort().
Referenced by main().
int RegisterShellExtensions | ( | ) |
Definition at line 373 of file C4GroupMain.cpp.
References GetWideChar(), and SCopySegment().
Referenced by main().
int UnregisterShellExtensions | ( | ) |
Definition at line 409 of file C4GroupMain.cpp.
References SCopySegment().
Referenced by main().
|
extern |
Definition at line 25 of file C4SimpleLog.cpp.
Referenced by Log(), main(), and ProcessGroup().
bool fRecursive = false |
Definition at line 35 of file C4GroupMain.cpp.
Referenced by main().
bool fRegisterShell = false |
Definition at line 36 of file C4GroupMain.cpp.
Referenced by main().
bool fUnregisterShell = false |
Definition at line 37 of file C4GroupMain.cpp.
Referenced by main().
int globalArgC |
Definition at line 30 of file C4GroupMain.cpp.
Referenced by main(), and ProcessGroup().
char** globalArgV |
Definition at line 31 of file C4GroupMain.cpp.
Referenced by main(), and ProcessGroup().
int iFirstCommand = 0 |
Definition at line 32 of file C4GroupMain.cpp.
Referenced by main(), and ProcessGroup().
int iResult = 0 |
Definition at line 40 of file C4GroupMain.cpp.
Referenced by C4PlayerList::AverageScoreGain(), C4Effect::Check(), C4GUI::Screen::GetMouseControlledDialogCount(), C4DefList::Load(), main(), C4SoundSystem::RemoveEffect(), C4TransferZones::RemoveNullZones(), SCharCount(), and SCharCountEx().
char strExecuteAtEnd[_MAX_PATH_LEN] = "" |
Definition at line 38 of file C4GroupMain.cpp.
Referenced by main().