mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-27 00:00:07 -06:00
add warning when starting LAN game while having multiple instances open
also make the instance/window close code suck less (so that deleting an instance cleans up everything properly)
This commit is contained in:
@ -124,12 +124,25 @@ void deleteEmuInstance(int id)
|
||||
emuInstances[id] = nullptr;
|
||||
}
|
||||
|
||||
void deleteAllEmuInstances()
|
||||
void deleteAllEmuInstances(int first)
|
||||
{
|
||||
for (int i = 0; i < kMaxEmuInstances; i++)
|
||||
for (int i = first; i < kMaxEmuInstances; i++)
|
||||
deleteEmuInstance(i);
|
||||
}
|
||||
|
||||
int numEmuInstances()
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
for (int i = 0; i < kMaxEmuInstances; i++)
|
||||
{
|
||||
if (emuInstances[i])
|
||||
ret++;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
void pathInit()
|
||||
{
|
||||
|
Reference in New Issue
Block a user