Skip to content

Commit 1b223cb

Browse files
committed
mapport: merge DispatchMapPort into StartMapPort
1 parent 9bd936f commit 1b223cb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/mapport.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ void StartThreadMapPort()
151151
}
152152
}
153153

154-
static void DispatchMapPort()
154+
void StartMapPort(bool enable)
155155
{
156+
g_mapport_enabled = enable;
156157
if (!g_mapport_current && g_mapport_enabled) {
157158
StartThreadMapPort();
158159
} else if (g_mapport_current && !g_mapport_enabled) {
@@ -161,12 +162,6 @@ static void DispatchMapPort()
161162
}
162163
}
163164

164-
void StartMapPort(bool enable)
165-
{
166-
g_mapport_enabled = enable;
167-
DispatchMapPort();
168-
}
169-
170165
void InterruptMapPort()
171166
{
172167
g_mapport_enabled = false;

0 commit comments

Comments
 (0)