mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 00:03:37 +01:00
It's enough to call net::Init/Shutdown in NativeInit/Shutdown. Remove other calls.
This commit is contained in:
1 parent
7b0a942905
commit
a1941d8a81
7 files changed
+21
-41
No files matched your search
+8
-7
@@ -48,6 +48,7 @@
|
||||
#include "file/vfs.h"
|
||||
#include "file/zip_read.h"
|
||||
#include "net/http_client.h"
|
||||
#include "net/resolve.h"
|
||||
#include "gfx_es2/draw_text.h"
|
||||
#include "gfx_es2/gpu_features.h"
|
||||
#include "gfx/gl_lost_manager.h"
|
||||
@@ -299,6 +300,8 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
monstartup("ppsspp_jni.so");
|
||||
#endif
|
||||
|
||||
net::Init();
|
||||
|
||||
InitFastMath(cpu_info.bNEON);
|
||||
SetupAudioFormats();
|
||||
|
||||
@@ -1038,9 +1041,8 @@ void NativeShutdown() {
|
||||
delete host;
|
||||
host = 0;
|
||||
g_Config.Save();
|
||||
#ifndef _WIN32
|
||||
LogManager::Shutdown();
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID_NDK_PROFILER
|
||||
moncleanup();
|
||||
#endif
|
||||
@@ -1048,16 +1050,15 @@ void NativeShutdown() {
|
||||
ILOG("NativeShutdown called");
|
||||
|
||||
System_SendMessage("finish", "");
|
||||
|
||||
net::Shutdown();
|
||||
|
||||
// This means that the activity has been completely destroyed. PPSSPP does not
|
||||
// boot up correctly with "dirty" global variables currently, so we hack around that
|
||||
// by simply exiting.
|
||||
#ifdef __ANDROID__
|
||||
#if PPSSPP_PLATFORM(ANDROID)
|
||||
exit(0);
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && !PPSSPP_PLATFORM(UWP)
|
||||
RemoveFontResourceEx(L"assets/Roboto-Condensed.ttf", FR_PRIVATE, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
void NativePermissionStatus(SystemPermission permission, PermissionStatus status) {
|
||||
|
||||
Reference in new issue
Block a user