android_mt6572_jiabo/external/unrar/orig/resource.cpp
2025-09-05 16:56:03 +08:00

27 lines
391 B
C++

#include "rar.hpp"
#ifndef RARDLL
const char *St(MSGID StringId)
{
return(StringId);
}
#endif
#ifndef RARDLL
const wchar *StW(MSGID StringId)
{
static wchar StrTable[8][512];
static int StrNum=0;
if (++StrNum >= sizeof(StrTable)/sizeof(StrTable[0]))
StrNum=0;
wchar *Str=StrTable[StrNum];
*Str=0;
CharToWide(StringId,Str,ASIZE(StrTable[0]));
return(Str);
}
#endif