Skip to content

Commit 1f7d84e

Browse files
committed
Change for Mac
- Add Mac binaries + minor changes for Mac compatability
1 parent ea55a14 commit 1f7d84e

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed
Binary file not shown.
Binary file not shown.

Binaries/4_12/Mac/UE4Editor.modules

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"Changelist" : 3039270,
3+
"BuildId" : "7e528244-4b20-4e2a-93de-e7249d8fdf0c",
4+
"Modules" :
5+
{
6+
"SpeechRecognition" : "UE4Editor-SpeechRecognition.dylib"
7+
}
8+
}

Plugins/SpeechRecognition/Source/SpeechRecognition/Private/SpeechRecognitionWorker.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ FSpeechRecognitionWorker::FSpeechRecognitionWorker() {}
88

99
vector<string> FSpeechRecognitionWorker::Split(string s) {
1010
std::locale loc;
11-
regex r("\\s+");
11+
const char* regexStr = (char*)"\\s+";
12+
regex r(regexStr);
1213
auto words_begin = std::sregex_iterator(s.begin(), s.end(), r);
1314
auto words_end = std::sregex_iterator();
1415

@@ -203,11 +204,11 @@ void FSpeechRecognitionWorker::InitConfig() {
203204
}
204205
if (param.type == ESpeechRecognitionParamType::VE_BOOLEAN)
205206
{
206-
if (stricmp(param.value, "0") == 0)
207+
if (strcmp(param.value, "0") == 0)
207208
{
208209
cmd_ln_set_boolean_r(config, param.name, false);
209210
}
210-
if (stricmp(param.value, "1") == 0)
211+
if (strcmp(param.value, "1") == 0)
211212
{
212213
cmd_ln_set_boolean_r(config, param.name, true);
213214
}
@@ -247,13 +248,13 @@ bool FSpeechRecognitionWorker::SetConfigParam(FString param, ESpeechRecognitionP
247248
if (type == ESpeechRecognitionParamType::VE_BOOLEAN)
248249
{
249250
if (value.Equals("true", ESearchCase::IgnoreCase)) {
250-
paramValue = "1";
251+
paramValue = (char*)"1";
251252
FSpeechRecognitionParam sphinxParam(paramName, type, paramValue);
252253
sphinxParams.Add(sphinxParam);
253254
return true;
254255
}
255256
if (value.Equals("false", ESearchCase::IgnoreCase)) {
256-
paramValue = "0";
257+
paramValue = (char*)"0";
257258
FSpeechRecognitionParam sphinxParam(paramName, type, paramValue);
258259
sphinxParams.Add(sphinxParam);
259260
return true;

0 commit comments

Comments
 (0)