We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bd936f commit 1b223cbCopy full SHA for 1b223cb
src/mapport.cpp
@@ -151,8 +151,9 @@ void StartThreadMapPort()
151
}
152
153
154
-static void DispatchMapPort()
+void StartMapPort(bool enable)
155
{
156
+ g_mapport_enabled = enable;
157
if (!g_mapport_current && g_mapport_enabled) {
158
StartThreadMapPort();
159
} else if (g_mapport_current && !g_mapport_enabled) {
@@ -161,12 +162,6 @@ static void DispatchMapPort()
161
162
163
164
-void StartMapPort(bool enable)
165
-{
166
- g_mapport_enabled = enable;
167
- DispatchMapPort();
168
-}
169
-
170
void InterruptMapPort()
171
172
g_mapport_enabled = false;
0 commit comments