mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-02-19 06:33:39 +00:00
Updated to Visual C++ 2015 but kept old vcxproj files
This commit is contained in:
parent
524dd4b205
commit
015a9f4dc8
3 changed files with 8 additions and 6 deletions
|
|
@ -399,9 +399,9 @@ bool reMatch(Linker::SimObject* obj, S32 argc, const char* argv[])
|
|||
try
|
||||
{
|
||||
std::smatch match;
|
||||
|
||||
std::string tmps = std::string(argv[2]);
|
||||
std::regex sequence(argv[1], std::regex::extended);
|
||||
std::regex_match(std::string(argv[2]), match, sequence);
|
||||
std::regex_match(tmps, match, sequence);
|
||||
|
||||
return !match.empty() && match.size() != 0;
|
||||
}
|
||||
|
|
@ -421,7 +421,8 @@ bool reSearch(Linker::SimObject* obj, S32 argc, const char* argv[])
|
|||
std::smatch match;
|
||||
|
||||
std::regex sequence(argv[1], std::regex::extended);
|
||||
std::regex_search(std::string(argv[2]), match, sequence);
|
||||
std::string tmps = std::string(argv[2]);
|
||||
std::regex_search(tmps, match, sequence);
|
||||
|
||||
return !match.empty() && match.size() != 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ bool conTSExtensionUpdate(Linker::SimObject *obj, S32 argc, const char *argv[])
|
|||
}
|
||||
|
||||
connectionInfo->is_connected = false;
|
||||
disconnections.insert(disconnections.end(), currentConnection.get());
|
||||
disconnections.insert(disconnections.end(), std::unique_ptr<DX::TCPObject>(currentConnection.get()));
|
||||
Con::errorf(0,"Got a send error! SimID: %u - Error %u", currentConnection->identifier, wsa_error);
|
||||
|
||||
break;
|
||||
|
|
@ -276,14 +276,14 @@ bool conTSExtensionUpdate(Linker::SimObject *obj, S32 argc, const char *argv[])
|
|||
{
|
||||
Con::errorf(0, "Got an error! %u - SimID %u", currentError, currentConnection.get()->identifier);
|
||||
|
||||
disconnections.insert(disconnections.end(), currentConnection.get());
|
||||
disconnections.insert(disconnections.end(), std::unique_ptr<DX::TCPObject>(currentConnection.get()));
|
||||
}
|
||||
else if (data_length == 0)
|
||||
{
|
||||
Con::errorf(0, "Finished receiving?");
|
||||
|
||||
// Put us on the D/C list
|
||||
disconnections.insert(disconnections.end(), currentConnection.get());
|
||||
disconnections.insert(disconnections.end(), std::unique_ptr<DX::TCPObject>(currentConnection.get()));
|
||||
|
||||
// Stream the data into ::onLine
|
||||
unsigned int current_start = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue