Windows: Show instance counter only with peers.

This commit is contained in:
Unknown W. Brackets committed 2020-08-18 06:59:49 -07:00
1 parent 09a3d1f7cb
commit b0ca635414
5 files changed
+29 -4

No files matched your search

+8
View File
@@ -105,6 +105,14 @@ static bool UpdateInstanceCounter(void (*callback)(volatile InstanceInfo *)) {
#endif
}
int GetInstancePeerCount() {
static int c = 0;
UpdateInstanceCounter([](volatile InstanceInfo *buf) {
c = buf->total;
});
return c;
}
// Get current number of instance of PPSSPP running.
// Must be called only once during init.
void InitInstanceCounter() {