Beispiel #1
0
bool LoadSkin()
{
    wchar_t szPath[MAX_PATH];
    ::GetModuleFileName(_Module.GetModuleInstance(), szPath, MAX_PATH);

    ::PathCombine(szPath, szPath, L"..\\..\\samples\\Wizard\\skin\\skin.xml");
    if (CSkinManager::GetInstance()->LoadSkinXml(szPath))
    {
        return true;
    }
    return false;
}
Beispiel #2
0
// 加载主xar
bool LoadXAR()
{
	wchar_t szPath[MAX_PATH];
	::GetModuleFileName(_Module.GetModuleInstance(), szPath, MAX_PATH);

	::PathCombine(szPath, szPath, L"..\\..\\samples\\Wizard\\xar\\");

	XLUE_AddXARSearchPath(szPath);

	if(XLUE_LoadXAR("wizard") != 0)
	{
		::MessageBox(0, L"Load XAR failed!", 0 , 0);
		return false;
	}

	return true;
}