Background thread for icon loading, show in game list. Switch to GNU STL in Android port.

This commit is contained in:
Henrik Rydgard committed 2013-04-13 21:24:07 +02:00
1 parent 5828fe5728
commit e3fb88de68
16 files changed
+204 -118

No files matched your search

+12
View File
@@ -23,6 +23,12 @@
//
// Windows has its own code that bypasses the framework entirely.
// Background worker threads should be spawned in NativeInit and joined
// in NativeShutdown.
#include "base/logging.h"
#include "base/NativeApp.h"
#include "file/vfs.h"
@@ -51,6 +57,7 @@
#include "ui_atlas.h"
#include "EmuScreen.h"
#include "MenuScreens.h"
#include "GameInfoCache.h"
#include "UIShader.h"
#ifdef ARM
@@ -73,6 +80,7 @@ static std::string pendingMessage;
static std::string pendingValue;
static UIContext *uiContext;
std::thread *graphicsLoadThread;
class AndroidLogger : public LogListener
{
@@ -322,6 +330,8 @@ void NativeInit(int argc, const char *argv[], const char *savegame_directory, co
if (!boot_filename.empty() && stateToLoad != NULL)
SaveState::Load(stateToLoad);
g_gameInfoCache.Init();
}
void NativeInitGraphics()
@@ -466,6 +476,8 @@ void NativeShutdownGraphics()
void NativeShutdown()
{
g_gameInfoCache.Shutdown();
delete host;
host = 0;
g_Config.Save();