MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / Msg

Method Msg

Libraries/unrar/uiconsole.cpp:84–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83
84void uiMsgStore::Msg()
85{
86 switch(Code)
87 {
88 case UIERROR_SYSERRMSG:
89 case UIERROR_GENERALERRMSG:
90 Log(NULL,L"\n%ls",Str[0]);
91 break;
92 case UIERROR_CHECKSUM:
93 Log(Str[0],St(MCRCFailed),Str[1]);
94 break;
95 case UIERROR_CHECKSUMENC:
96 Log(Str[0],St(MEncrBadCRC),Str[1]);
97 break;
98 case UIERROR_CHECKSUMPACKED:
99 Log(Str[0],St(MDataBadCRC),Str[1],Str[0]);
100 break;
101 case UIERROR_BADPSW:
102 Log(Str[0],St(MWrongFilePassword),Str[1]);
103 break;
104 case UIWAIT_BADPSW:
105 Log(Str[0],St(MWrongPassword));
106 break;
107 case UIERROR_MEMORY:
108 mprintf(L"\n");
109 Log(NULL,St(MErrOutMem));
110 break;
111 case UIERROR_FILEOPEN:
112 Log(Str[0],St(MCannotOpen),Str[1]);
113 break;
114 case UIERROR_FILECREATE:
115 Log(Str[0],St(MCannotCreate),Str[1]);
116 break;
117 case UIERROR_FILECLOSE:
118 Log(NULL,St(MErrFClose),Str[0]);
119 break;
120 case UIERROR_FILESEEK:
121 Log(NULL,St(MErrSeek),Str[0]);
122 break;
123 case UIERROR_FILEREAD:
124 Log(Str[0],St(MErrRead),Str[1]);
125 break;
126 case UIERROR_FILEWRITE:
127 Log(Str[0],St(MErrWrite),Str[1]);
128 break;
129#ifndef SFX_MODULE
130 case UIERROR_FILEDELETE:
131 Log(Str[0],St(MCannotDelete),Str[1]);
132 break;
133 case UIERROR_RECYCLEFAILED:
134 Log(Str[0],St(MRecycleFailed));
135 break;
136 case UIERROR_FILERENAME:
137 Log(Str[0],St(MErrRename),Str[1],Str[2]);
138 break;
139#endif
140 case UIERROR_FILEATTR:
141 Log(Str[0],St(MErrChangeAttr),Str[1]);

Callers

nothing calls this directly

Calls 3

StFunction · 0.85
LogFunction · 0.70
mprintfFunction · 0.70

Tested by

no test coverage detected