Skip to content

Commit

Permalink
compilable for vs
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenpham committed Jul 18, 2019
1 parent 1f5ad20 commit def1688
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Binary file modified demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions projects/Banksia.vcxproj.user
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LocalDebuggerCommandArguments>-u -c 2 -d c:\match\engines</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>-jsonpath c:\match\tour.json</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerWorkingDirectory>c:\match</LocalDebuggerWorkingDirectory>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LocalDebuggerCommandArguments>-u -c 2 -d c:\match\engines</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>-jsonpath c:\match\tour.json</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerWorkingDirectory>c:\match</LocalDebuggerWorkingDirectory>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerCommandArguments>-u -c 2 -d c:\match\engines</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>-jsonpath c:\match\tour.json</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerWorkingDirectory>c:\match</LocalDebuggerWorkingDirectory>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LocalDebuggerCommandArguments>-u -c 2 -d c:\match\engines</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>-jsonpath c:\match\tour.json</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerWorkingDirectory>c:\match</LocalDebuggerWorkingDirectory>
</PropertyGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/game/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ void Engine::parseLine(const std::string& line)
void Engine::deleteThread()
{
if (pThread && pThread->joinable()) {
#ifndef _WIN32
pthread_cancel(pThread->native_handle());
#endif
pThread = nullptr;
std::cout << "Warning: thread is still resident " << name << std::endl;
}
Expand Down

0 comments on commit def1688

Please sign in to comment.