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

Method OutTitle

Libraries/unrar/cmdmix.cpp:1–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1void CommandData::OutTitle()
2{
3 if (BareOutput || DisableCopyright)
4 return;
5#if defined(__GNUC__) && defined(SFX_MODULE)
6 mprintf(St(MCopyrightS));
7#else
8#ifndef SILENT
9 static bool TitleShown=false;
10 if (TitleShown)
11 return;
12 TitleShown=true;
13
14 wchar Version[80];
15 if (RARVER_BETA!=0)
16 swprintf(Version,ASIZE(Version),L"%d.%02d %ls %d",RARVER_MAJOR,RARVER_MINOR,St(MBeta),RARVER_BETA);
17 else
18 swprintf(Version,ASIZE(Version),L"%d.%02d",RARVER_MAJOR,RARVER_MINOR);
19#if defined(_WIN_32) || defined(_WIN_64)
20 wcsncatz(Version,L" ",ASIZE(Version));
21#endif
22#ifdef _WIN_32
23 wcsncatz(Version,St(Mx86),ASIZE(Version));
24#endif
25#ifdef _WIN_64
26 wcsncatz(Version,St(Mx64),ASIZE(Version));
27#endif
28 if (PrintVersion)
29 {
30 mprintf(L"%s",Version);
31 exit(0);
32 }
33 mprintf(St(MUCopyright),Version,RARVER_YEAR);
34#endif
35#endif
36}
37
38
39inline bool CmpMSGID(MSGID i1,MSGID i2)

Callers 1

mainFunction · 0.80

Calls 3

StFunction · 0.85
wcsncatzFunction · 0.85
mprintfFunction · 0.70

Tested by

no test coverage detected