Skip to content

Commit

Permalink
Merge branch 'master' into stagging
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickNovelab committed Aug 17, 2023
2 parents 31d1a4c + b7d500e commit dd07fee
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 302 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ public JSBSim(ReadOnlyTargetRules Target) : base(Target)
Target.Platform == UnrealTargetPlatform.Linux ||
Target.Platform == UnrealTargetPlatform.Android;

if (!bJSBSimSupported) return;

if (Target.Platform == UnrealTargetPlatform.Win64)
SetupWindowsPlatform();
else
Expand Down
17 changes: 9 additions & 8 deletions src/input_output/FGInputSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ FGInputSocket::FGInputSocket(FGFDMExec* fdmex) :

FGInputSocket::~FGInputSocket()
{
delete socket;
//delete socket;
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

bool FGInputSocket::Load(Element* el)
{
{/*
if (!FGInputType::Load(el))
return false;
Expand All @@ -87,13 +87,14 @@ bool FGInputSocket::Load(Element* el)
if (to_upper(action) == "BLOCKING_INPUT")
BlockingInput = true;
return true;
return true;*/
return false;
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

bool FGInputSocket::InitModel(void)
{
{/*
if (FGInputType::InitModel()) {
delete socket;
socket = new FGfdmSocket(SockPort, SockProtocol);
Expand All @@ -103,15 +104,15 @@ bool FGInputSocket::InitModel(void)
return true;
}

*/
return false;
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

void FGInputSocket::Read(bool Holding)
{
if (!socket) return;
/*if (!socket) return;
if (!socket->GetConnectStatus()) return;
if (BlockingInput)
Expand Down Expand Up @@ -270,7 +271,7 @@ void FGInputSocket::Read(bool Holding)
" info\n\r\n");
} else {
socket->Reply(string("Unknown command: ") + command + "\r\n");
//socket->Reply(string("Unknown command: ") + command + "\r\n");
}
start = string_end;
Expand All @@ -284,7 +285,7 @@ void FGInputSocket::Read(bool Holding)
else
data.clear();
}
}
}*/

}

Expand Down

0 comments on commit dd07fee

Please sign in to comment.