- Coded a resource package download GUI based on QWidget - Removed compilation warning on unused variable - Updated Maemo desktop file to start directly the binary - Updated .pro file - Updated version macros to be able to compose the resource package file - Updated QML interface for Android - Updated QML interface to not contain the name of the resource package - Updated the file downloader class to be able to get the resource package hash from the google code server - Updated the file downloaded class to verify the resource package hash from the remote server at each startup to be able to perform automatic update - Defined several JGE operation as static to clean up the wagic wrapper
58 lines
1.6 KiB
C++
58 lines
1.6 KiB
C++
//-------------------------------------------------------------------------------------
|
|
//
|
|
// JGE is a hardware accelerated 2D game SDK for PSP/Windows.
|
|
//
|
|
// Licensed under the BSD license, see LICENSE in JGE root for details.
|
|
//
|
|
// Copyright (c) 2007 James Hui (a.k.a. Dr.Watson) <jhkhui@gmail.com>
|
|
//
|
|
//-------------------------------------------------------------------------------------
|
|
|
|
#ifndef _GAME_LAUNCHER_H_
|
|
#define _GAME_LAUNCHER_H_
|
|
|
|
|
|
#include "JApp.h"
|
|
#include "JTypes.h"
|
|
#include "JFileSystem.h"
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// An interface for JGE to get the user defined JApp class.
|
|
///
|
|
//////////////////////////////////////////////////////////////////////////
|
|
class JGameLauncher
|
|
{
|
|
public:
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// Get user defined JApp instance. The function will be called when
|
|
/// JGE starts.
|
|
///
|
|
/// @return - User defined JApp instance.
|
|
///
|
|
//////////////////////////////////////////////////////////////////////////
|
|
static JApp* GetGameApp();
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// Get application name. Mainly for Windows build to setup the name
|
|
/// on the title bar.
|
|
///
|
|
/// @return - Application name.
|
|
///
|
|
//////////////////////////////////////////////////////////////////////////
|
|
static char *GetName();
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// Get initialization flags.
|
|
///
|
|
/// @return - Initialization flags.
|
|
///
|
|
//////////////////////////////////////////////////////////////////////////
|
|
static u32 GetInitFlags();
|
|
|
|
};
|
|
|
|
|
|
#endif
|