mapport: merge DispatchMapPort into StartMapPort
This commit is contained in:
1 parent
9bd936fa34
commit
1b223cb19b
1 file changed
+2
-7
+2
-7
@@ -151,8 +151,9 @@ void StartThreadMapPort()
|
||||
}
|
||||
}
|
||||
|
||||
static void DispatchMapPort()
|
||||
void StartMapPort(bool enable)
|
||||
{
|
||||
g_mapport_enabled = enable;
|
||||
if (!g_mapport_current && g_mapport_enabled) {
|
||||
StartThreadMapPort();
|
||||
} else if (g_mapport_current && !g_mapport_enabled) {
|
||||
@@ -161,12 +162,6 @@ static void DispatchMapPort()
|
||||
}
|
||||
}
|
||||
|
||||
void StartMapPort(bool enable)
|
||||
{
|
||||
g_mapport_enabled = enable;
|
||||
DispatchMapPort();
|
||||
}
|
||||
|
||||
void InterruptMapPort()
|
||||
{
|
||||
g_mapport_enabled = false;
|
||||
|
||||
Reference in new issue
Block a user