mirror of
https://github.com/wiiu-env/homebrew_launcher.git
synced 2024-06-24 09:56:05 +02:00
![dimok789](/assets/img/avatar_default.png)
- the RPX file can now be used in a channel with for example the NUSPacker (HBL works now as a standalone channel with no PPC exploit pre-requisite like the browser exploit) - adaptions in sd_launcher - fixed listing ELF files - fix launching of ELF files from HBL channel - since HBL RPX does not use 0x0080000 area anymore, the maximum homebrew size is increased to 0x800000 - 0x2000 bytes - removed browser installer from RPX branch as it is of no use here NOTE: A channel will not yet be provided. app.xml, cos.xml, meta.xml and the icons/splash images will be provided later. Possible title id choice 00050000-13371337 :P.
79 lines
2.0 KiB
C++
79 lines
2.0 KiB
C++
/****************************************************************************
|
|
* Copyright (C) 2015 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/>.
|
|
****************************************************************************/
|
|
#ifndef _APPLICATION_H
|
|
#define _APPLICATION_H
|
|
|
|
#include "menu/MainWindow.h"
|
|
#include "video/CVideo.h"
|
|
#include "system/CThread.h"
|
|
|
|
// forward declaration
|
|
class FreeTypeGX;
|
|
|
|
class Application : public CThread
|
|
{
|
|
public:
|
|
static Application * instance() {
|
|
if(!applicationInstance)
|
|
applicationInstance = new Application();
|
|
return applicationInstance;
|
|
}
|
|
static void destroyInstance() {
|
|
if(applicationInstance) {
|
|
delete applicationInstance;
|
|
applicationInstance = NULL;
|
|
}
|
|
}
|
|
|
|
CVideo *getVideo(void) const {
|
|
return video;
|
|
}
|
|
MainWindow *getMainWindow(void) const {
|
|
return mainWindow;
|
|
}
|
|
|
|
GuiSound *getBgMusic(void) const {
|
|
return bgMusic;
|
|
}
|
|
|
|
int exec(void);
|
|
void fadeOut(void);
|
|
|
|
void quit(int code);
|
|
|
|
private:
|
|
Application();
|
|
virtual ~Application();
|
|
|
|
bool procUI(void);
|
|
|
|
static Application *applicationInstance;
|
|
static bool exitApplication;
|
|
static bool quitRequest;
|
|
|
|
void executeThread(void);
|
|
|
|
GuiSound *bgMusic;
|
|
CVideo *video;
|
|
MainWindow *mainWindow;
|
|
FreeTypeGX *fontSystem;
|
|
GuiController *controller[5];
|
|
int exitCode;
|
|
};
|
|
|
|
#endif //_APPLICATION_H
|