mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 09:19:17 +01:00
44 lines
1.5 KiB
C++
44 lines
1.5 KiB
C++
|
/****************************************************************************
|
||
|
* Copyright (C) 2012 Dimok
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation, either version 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
****************************************************************************/
|
||
|
#include "SystemMenu/SystemMenuResources.h"
|
||
|
#include "GCBanner.h"
|
||
|
|
||
|
bool GCBanner::Load( const U8Archive &GCBannArc )
|
||
|
{
|
||
|
// read layout data
|
||
|
const u8 *brlytFile = GCBannArc.GetFile("/arc/blyt/my_GCTop_a.brlyt");
|
||
|
if( !brlytFile )
|
||
|
return false;
|
||
|
|
||
|
if(!Layout::Load(brlytFile))
|
||
|
return false;
|
||
|
|
||
|
u32 length_start = 0, length_loop = 0;
|
||
|
|
||
|
const u8 *brlan_loop = GCBannArc.GetFile("/arc/anim/my_GCTop_a_BackLoop.brlan");
|
||
|
if (brlan_loop)
|
||
|
length_loop = Animator::LoadAnimators((const RLAN_Header *)brlan_loop, *this, 1);
|
||
|
|
||
|
LoadTextures(GCBannArc);
|
||
|
SetLanguage("ENG");
|
||
|
SetLoopStart(length_start);
|
||
|
SetLoopEnd(length_start + length_loop);
|
||
|
SetFrame(0);
|
||
|
|
||
|
return true;
|
||
|
}
|