新增沧田
This commit is contained in:
parent
e687b1dc93
commit
85a339c2d9
|
@ -15,6 +15,7 @@ enum oem
|
|||
OEM_NONE = 0,
|
||||
OEM_HANWANG,
|
||||
OEM_LISICHENG,
|
||||
OEM_CANGTIAN,
|
||||
};
|
||||
#define GET_ENUM_NAME_W(e, v) \
|
||||
if(e == v) return L###e;
|
||||
|
@ -90,6 +91,8 @@ int main()
|
|||
vendor = OEM_HANWANG;
|
||||
else if (wcsicmp(cmd->parameter(L"-oem"), L"lsc") == 0)
|
||||
vendor = OEM_LISICHENG;
|
||||
else if (wcsicmp(cmd->parameter(L"-oem"), L"ct") == 0)
|
||||
vendor = OEM_CANGTIAN;
|
||||
else
|
||||
std::wcout << L" OEM '" << cmd->parameter(L"-oem") << L"' is not supported! set as OEM_NONE.\r\n";
|
||||
}
|
||||
|
@ -136,6 +139,7 @@ static std::wstring oem_str(oem o)
|
|||
GET_ENUM_NAME_W(OEM_NONE, o);
|
||||
GET_ENUM_NAME_W(OEM_HANWANG, o);
|
||||
GET_ENUM_NAME_W(OEM_LISICHENG, o);
|
||||
GET_ENUM_NAME_W(OEM_CANGTIAN, o);
|
||||
}
|
||||
static oem from_str(const wchar_t* str)
|
||||
{
|
||||
|
@ -143,7 +147,7 @@ static oem from_str(const wchar_t* str)
|
|||
GET_ENUM_VALUE_W(OEM_NONE, s);
|
||||
GET_ENUM_VALUE_W(OEM_HANWANG, s);
|
||||
GET_ENUM_VALUE_W(OEM_LISICHENG, s);
|
||||
|
||||
GET_ENUM_VALUE_W(OEM_CANGTIAN, s);
|
||||
return OEM_NOT;
|
||||
}
|
||||
static int oem_code(oem o)
|
||||
|
@ -152,6 +156,8 @@ static int oem_code(oem o)
|
|||
return 16;
|
||||
else if (o == OEM_LISICHENG)
|
||||
return 14;
|
||||
else if (o == OEM_CANGTIAN)
|
||||
return 18;
|
||||
else
|
||||
return 10;
|
||||
}
|
||||
|
@ -161,6 +167,8 @@ static oem oem_from_code(int code)
|
|||
return OEM_HANWANG;
|
||||
else if (code == 14)
|
||||
return OEM_LISICHENG;
|
||||
else if (code == 18)
|
||||
return OEM_CANGTIAN;
|
||||
else
|
||||
return OEM_NONE;
|
||||
}
|
||||
|
@ -483,6 +491,8 @@ namespace rc
|
|||
o = OEM_HANWANG;
|
||||
else if (line.find(oem_str(OEM_LISICHENG)) != std::wstring::npos)
|
||||
o = OEM_LISICHENG;
|
||||
else if (line.find(oem_str(OEM_CANGTIAN)) != std::wstring::npos)
|
||||
o = OEM_CANGTIAN;
|
||||
}
|
||||
|
||||
bool found = false, is_oem = false;
|
||||
|
@ -718,6 +728,8 @@ namespace rc
|
|||
os = L"hanvon";
|
||||
else if (o == OEM_LISICHENG)
|
||||
os = L"lanxum";
|
||||
else if (o == OEM_CANGTIAN)
|
||||
os = L"cts";
|
||||
|
||||
while (len > bgn)
|
||||
{
|
||||
|
@ -744,6 +756,8 @@ namespace rc
|
|||
os = L"hanvon";
|
||||
else if (o == OEM_LISICHENG)
|
||||
os = L"lanxum";
|
||||
else if (o == OEM_CANGTIAN)
|
||||
os = L"cumtenn";
|
||||
|
||||
while (len > bgn)
|
||||
{
|
||||
|
@ -911,6 +925,8 @@ namespace rc
|
|||
backend = L"hw";
|
||||
else if (o == OEM_LISICHENG)
|
||||
backend = L"lsc";
|
||||
else if (o == OEM_CANGTIAN)
|
||||
backend = L"cts";
|
||||
else
|
||||
backend = L"hg";
|
||||
backend += L"sane";
|
||||
|
@ -970,6 +986,8 @@ namespace rc
|
|||
backend.insert(0, L"_hw");
|
||||
else if (o == OEM_LISICHENG)
|
||||
backend.insert(0, L"_lsc");
|
||||
else if (o == OEM_CANGTIAN)
|
||||
backend.insert(0, L"_cts");
|
||||
else
|
||||
backend.insert(0, L"_hg");
|
||||
|
||||
|
@ -1006,6 +1024,8 @@ namespace rc
|
|||
backend.insert(0, L"hw");
|
||||
else if (o == OEM_LISICHENG)
|
||||
backend.insert(0, L"lsc");
|
||||
else if (o == OEM_CANGTIAN)
|
||||
backend.insert(0, L"cts");
|
||||
else
|
||||
backend.insert(0, L"hg");
|
||||
|
||||
|
@ -1044,6 +1064,8 @@ namespace rc
|
|||
target += L"hanvon\\";
|
||||
else if (o == OEM_LISICHENG)
|
||||
target += L"lanxum\\";
|
||||
else if (o == OEM_CANGTIAN)
|
||||
target += L"cumtenn\\";
|
||||
else
|
||||
target += L"huagao\\";
|
||||
|
||||
|
@ -1073,6 +1095,8 @@ namespace rc
|
|||
target = L"hanvon";
|
||||
else if (param->o == OEM_LISICHENG)
|
||||
target = L"lanxum";
|
||||
else if (param->o == OEM_CANGTIAN)
|
||||
target = L"cumtenn";
|
||||
target += tail;
|
||||
|
||||
while ((bgn = cont.find(first, bgn)) != std::wstring::npos)
|
||||
|
|
Loading…
Reference in New Issue