|
@@ -531,15 +531,6 @@ namespace Chromium {
|
|
{
|
|
{
|
|
LogManager::getInstance().logEntityStageChange("OnPreStart_register", 0, "begin");
|
|
LogManager::getInstance().logEntityStageChange("OnPreStart_register", 0, "begin");
|
|
ErrorCodeEnum Error;
|
|
ErrorCodeEnum Error;
|
|
-
|
|
|
|
- //TODO: CrossPlaform [Gifur@2025730]
|
|
|
|
-#if defined(RVC_OS_LINUX)
|
|
|
|
- Error = GetFunction()->SubscribeLog(m_uuidAllFault, this, Log_Notify, Severity_High, Error_IgnoreAll, -2, NULL, false);
|
|
|
|
- if (Error_Succeed != Error) {
|
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("subscribe log for notify failed! %s", SpStrError(Error));
|
|
|
|
- }
|
|
|
|
-#endif //RVC_OS_LINUX
|
|
|
|
-
|
|
|
|
if (!ConfigManager::getInstance().m_withBrowser)
|
|
if (!ConfigManager::getInstance().m_withBrowser)
|
|
{
|
|
{
|
|
if (Error_Succeed == (Error = GetFunction()->SubscribeLog(m_uuidAccessAuth, this, Log_Event, Severity_None, Error_IgnoreAll, -1, "AccessAuthorization")))
|
|
if (Error_Succeed == (Error = GetFunction()->SubscribeLog(m_uuidAccessAuth, this, Log_Event, Severity_None, Error_IgnoreAll, -1, "AccessAuthorization")))
|
|
@@ -790,16 +781,9 @@ namespace Chromium {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
path = csHardwareCfg + SPLIT_SLASH_STR + "root.ini";
|
|
path = csHardwareCfg + SPLIT_SLASH_STR + "root.ini";
|
|
- //TODO: CrossPlaform [Gifur@2025730]
|
|
|
|
-#if defined(RVC_OS_WIN)
|
|
|
|
- if (_access(path.GetData(), 0) == 0) {
|
|
|
|
-#else
|
|
|
|
- if (access(path.GetData(), F_OK) == 0) {
|
|
|
|
-#endif
|
|
|
|
|
|
+ if (ExistsFileA(path)) {
|
|
return true;
|
|
return true;
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
|
|
+ } else {
|
|
DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_SYSTEM)("root.ini(%s) is not exist.", path.GetData());
|
|
DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_SYSTEM)("root.ini(%s) is not exist.", path.GetData());
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -808,8 +792,6 @@ namespace Chromium {
|
|
//if root.ini not exist
|
|
//if root.ini not exist
|
|
CSimpleString rootIni_path;
|
|
CSimpleString rootIni_path;
|
|
ConfigManager::getInstance().m_existRootIni = IsRootINIExist(rootIni_path);
|
|
ConfigManager::getInstance().m_existRootIni = IsRootINIExist(rootIni_path);
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
//the system info may be not complete.If the device is not install ,it can't not read the terminalNo.
|
|
//the system info may be not complete.If the device is not install ,it can't not read the terminalNo.
|
|
CSystemStaticInfo t_sysInfo;
|
|
CSystemStaticInfo t_sysInfo;
|