mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-22 15:31:41 +00:00
Shut down adb when closing qrenderdoc if it's our adb
* This has some possible problems - e.g. if one copy of qrenderdoc is closed and kills the server used by another copy. However it seems impossible to reliably manage adb and we need to ensure we don't leave the process lingering around. * At the moment 95% of users don't use android, so it's most important that they have a smooth experience. * This was the cause of problems around updating versions because adb.exe would hang around and then be 'in use' and not able to be overwritten.
This commit is contained in:
@@ -577,6 +577,11 @@ extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_EnumerateAndroidDevices(rdc
|
||||
*deviceList = ret;
|
||||
}
|
||||
|
||||
extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_AndroidShutdown()
|
||||
{
|
||||
Android::shutdownAdb();
|
||||
}
|
||||
|
||||
extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_StartAndroidRemoteServer(const char *device)
|
||||
{
|
||||
int index = 0;
|
||||
|
||||
Reference in New Issue
Block a user