mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Windows: Show instance counter only with peers.
This commit is contained in:
1 parent
09a3d1f7cb
commit
b0ca635414
5 files changed
+29
-4
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user