/
uisilent.cpp
86 lines (58 loc) · 1.35 KB
/
uisilent.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Purely user interface function. Gets and returns user input.
UIASKREP_RESULT uiAskReplace(std::wstring &Name,int64 FileSize,RarTime *FileTime,uint Flags)
{
return UIASKREP_R_REPLACE;
}
void uiStartArchiveExtract(bool Extract,const std::wstring &ArcName)
{
}
bool uiStartFileExtract(const std::wstring &FileName,bool Extract,bool Test,bool Skip)
{
return true;
}
void uiExtractProgress(int64 CurFileSize,int64 TotalFileSize,int64 CurSize,int64 TotalSize)
{
}
void uiProcessProgress(const char *Command,int64 CurSize,int64 TotalSize)
{
}
void uiMsgStore::Msg()
{
}
bool uiGetPassword(UIPASSWORD_TYPE Type,const std::wstring &FileName,
SecPassword *Password,CheckPassword *CheckPwd)
{
return false;
}
bool uiIsGlobalPasswordSet()
{
return false;
}
void uiAlarm(UIALARM_TYPE Type)
{
}
bool uiIsAborted()
{
return false;
}
void uiGiveTick()
{
}
bool uiDictLimit(CommandData *Cmd,const std::wstring &FileName,uint64 DictSize,uint64 MaxDictSize)
{
#ifdef RARDLL
if (Cmd->Callback!=nullptr &&
Cmd->Callback(UCM_LARGEDICT,Cmd->UserData,(LPARAM)(DictSize/1024),(LPARAM)(MaxDictSize/1024))==1)
return true; // Continue extracting if unrar.dll callback permits it.
#endif
return false; // Stop extracting.
}
#ifndef SFX_MODULE
const wchar *uiGetMonthName(uint Month)
{
return L"";
}
#endif
void uiEolAfterMsg()
{
}