Sfoglia il codice sorgente

Force exit fron android activity

Daniele Bartolini 11 anni fa
parent
commit
00a9ded2a4
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      engine/os/android/AndroidDevice.cpp

+ 4 - 1
engine/os/android/AndroidDevice.cpp

@@ -101,7 +101,7 @@ public:
 	}
 	}
 
 
 	//-----------------------------------------------------------------------------
 	//-----------------------------------------------------------------------------
-	void loop()
+	int32_t loop()
 	{
 	{
 		#if defined(CROWN_DEBUG) || defined(CROWN_DEVELOPMENT)
 		#if defined(CROWN_DEBUG) || defined(CROWN_DEVELOPMENT)
 			m_console = CE_NEW(default_allocator(), ConsoleServer)();
 			m_console = CE_NEW(default_allocator(), ConsoleServer)();
@@ -132,6 +132,9 @@ public:
 			m_console->shutdown();
 			m_console->shutdown();
 			CE_DELETE(default_allocator(), m_console);
 			CE_DELETE(default_allocator(), m_console);
 		#endif
 		#endif
+
+		exit(EXIT_SUCCESS);
+		return 0;
 	}
 	}
 
 
 	//-----------------------------------------------------------------------------
 	//-----------------------------------------------------------------------------