Ejemplo n.º 1
0
void rho_conf_Init_from_shared_path(const char* szSharedRootPath)
{
    rho::common::CFilePath oRhoPath( szSharedRootPath );
    rho::common::CFilePath oUserPath( szSharedRootPath );
    
    RHOCONF().setAppConfFilePath(oRhoPath.makeFullPath(CONF_SHARED_FILENAME).c_str());
    RHOCONF().setAppConfUserFilePath(oUserPath.makeFullPath(CONF_SHARED_FILENAME).c_str());
    RHOCONF().setConfFilePath(oRhoPath.makeFullPath(CONF_SHARED_FILENAME).c_str());

    RHOCONF().loadFromFile();
}
Ejemplo n.º 2
0
void  rho_conf_Init_with_separate_user_path(const char* szRootPath, const char* szUserPath)
{
	rho::common::CFilePath oRhoPath( szRootPath );
	rho::common::CFilePath oUserPath( szUserPath );
    
    RHOCONF().setAppConfFilePath(oRhoPath.makeFullPath(CONF_FILENAME).c_str());
    RHOCONF().setAppConfUserFilePath(oUserPath.makeFullPath(CONF_FILENAME).c_str());
#ifdef RHODES_EMULATOR
    rho::String strPath = rho::common::CFilePath::join( szRootPath, RHO_EMULATOR_DIR);
    strPath = rho::common::CFilePath::join( strPath, CONF_FILENAME);
    RHOCONF().setConfFilePath(strPath.c_str());
#else
    RHOCONF().setConfFilePath(oRhoPath.makeFullPath(CONF_FILENAME).c_str());
#endif
    
    RHOCONF().loadFromFile();
}
Ejemplo n.º 3
0
void rho_conf_Init(const char* szRootPath){
	rho::common::CFilePath oRhoPath( szRootPath );

    RHOCONF().setConfFilePath(oRhoPath.makeFullPath(CONF_FILENAME).c_str());
    RHOCONF().loadFromFile();
}