Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -191,24 +191,24 @@ DWORD ProcessCommand(const std::wstring& cmd, DWORD pid) | ... | @@ -191,24 +191,24 @@ DWORD ProcessCommand(const std::wstring& cmd, DWORD pid) |
191 | if (Parse(m[1].str(), hp)) | 191 | if (Parse(m[1].str(), hp)) |
192 | IHF_InsertHook(pid, &hp); | 192 | IHF_InsertHook(pid, &hp); |
193 | } | 193 | } |
194 | - else if (regex_match(cmd, m, wregex(L":l([[:xdigit:]]+)-([[:xdigit:]]+)", wregex::icase))) | 194 | + else if (regex_match(cmd, m, wregex(L"(?::|)(?:ㅇ|연|l|)([[:xdigit:]]+)(?:-| )([[:xdigit:]]+)", wregex::icase))) |
195 | { | 195 | { |
196 | DWORD from = std::stoul(m[1].str(), NULL, 16); | 196 | DWORD from = std::stoul(m[1].str(), NULL, 16); |
197 | DWORD to = std::stoul(m[2].str(), NULL, 16); | 197 | DWORD to = std::stoul(m[2].str(), NULL, 16); |
198 | IHF_AddLink(from, to); | 198 | IHF_AddLink(from, to); |
199 | } | 199 | } |
200 | - else if (regex_match(cmd, m, wregex(L":u([[:xdigit:]]+)", wregex::icase))) | 200 | + else if (regex_match(cmd, m, wregex(L"(?::|)(?:ㅎ|해|해제|u)([[:xdigit:]]+)", wregex::icase))) |
201 | { | 201 | { |
202 | DWORD from = std::stoul(m[1].str(), NULL, 16); | 202 | DWORD from = std::stoul(m[1].str(), NULL, 16); |
203 | IHF_UnLink(from); | 203 | IHF_UnLink(from); |
204 | } | 204 | } |
205 | - else if (regex_match(cmd, m, wregex(L":(?:h|help)", wregex::icase))) | 205 | + else if (regex_match(cmd, m, wregex(L"(?::|)(?:ㄷ|도|도움|도움말|h|help)", wregex::icase))) |
206 | { | 206 | { |
207 | ConsoleOutput(Usage); | 207 | ConsoleOutput(Usage); |
208 | } | 208 | } |
209 | else | 209 | else |
210 | { | 210 | { |
211 | - ConsoleOutput(L"Unknown command. Type :h or :help for help."); | 211 | + ConsoleOutput(L"알 수 없는 명령어. 도움말을 보시려면, :h 나 :help를 입력하세요."); |
212 | } | 212 | } |
213 | return 0; | 213 | return 0; |
214 | } | 214 | } | ... | ... |
-
Please register or login to post a comment