You've already forked rdsspy-lua-host
mirror of
https://github.com/KubaPro010/rdsspy-lua-host.git
synced 2026-02-26 18:35:01 +01:00
cosmetic: make the hide/show more consistent with rds spy
This commit is contained in:
5
plugin.c
5
plugin.c
@@ -564,9 +564,8 @@ __declspec(dllexport) void WINAPI Command(const char* Cmd, const char* Param) {
|
|||||||
lua_close(L);
|
lua_close(L);
|
||||||
L = NULL;
|
L = NULL;
|
||||||
}
|
}
|
||||||
} else if (_stricmp(Cmd, "CONFIGURE") == 0 || _stricmp(Cmd, "SHOW") == 0) ShowWindow(hWnd, SW_SHOW);
|
} else if (_stricmp(Cmd, "CONFIGURE") == 0 || _stricmp(Cmd, "SHOW") == 0 || _stricmp(Cmd, "RESTORE") == 0) ShowWindow(hWnd, SW_SHOW);
|
||||||
else if (_stricmp(Cmd, "MINIMIZE") == 0) ShowWindow(hWnd, SW_MINIMIZE);
|
else if (_stricmp(Cmd, "MINIMIZE") == 0) ShowWindow(hWnd, SW_HIDE);
|
||||||
else if (_stricmp(Cmd, "RESTORE") == 0) ShowWindow(hWnd, SW_RESTORE);
|
|
||||||
else if (_stricmp(Cmd, "OPENWORKSPACE") == 0) {
|
else if (_stricmp(Cmd, "OPENWORKSPACE") == 0) {
|
||||||
if(hWnd != NULL) {
|
if(hWnd != NULL) {
|
||||||
int value = GetPrivateProfileIntA("luahost", "Visible", 0, Param);
|
int value = GetPrivateProfileIntA("luahost", "Visible", 0, Param);
|
||||||
|
|||||||
Reference in New Issue
Block a user