Skip to content

Commit

Permalink
Merge pull request #13 from chertov/master
Browse files Browse the repository at this point in the history
fix NetDb save bug, console cyrillic symbols, add files to project
  • Loading branch information
orignal committed Jan 25, 2014
2 parents ef7e81b + bc3bf83 commit a0dfd29
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion NetDb.cpp
Expand Up @@ -213,7 +213,7 @@ namespace data
{
if (it.second->IsUpdated ())
{
std::ofstream r (GetFilePath(directory, it.second));
std::ofstream r (GetFilePath(directory, it.second), std::ofstream::binary);
r.write ((char *)it.second->GetBuffer (), it.second->GetBufferLen ());
it.second->SetUpdated (false);
count++;
Expand Down
2 changes: 2 additions & 0 deletions Win32/i2pd.vcxproj
Expand Up @@ -24,6 +24,7 @@
<ClCompile Include="..\NTCPSession.cpp" />
<ClCompile Include="..\RouterContext.cpp" />
<ClCompile Include="..\RouterInfo.cpp" />
<ClCompile Include="..\SSU.cpp" />
<ClCompile Include="..\Streaming.cpp" />
<ClCompile Include="..\TransitTunnel.cpp" />
<ClCompile Include="..\Transports.cpp" />
Expand All @@ -48,6 +49,7 @@
<ClInclude Include="..\Queue.h" />
<ClInclude Include="..\RouterContext.h" />
<ClInclude Include="..\RouterInfo.h" />
<ClInclude Include="..\SSU.h" />
<ClInclude Include="..\Streaming.h" />
<ClInclude Include="..\Timestamp.h" />
<ClInclude Include="..\TransitTunnel.h" />
Expand Down
6 changes: 6 additions & 0 deletions Win32/i2pd.vcxproj.filters
Expand Up @@ -72,6 +72,9 @@
<ClCompile Include="..\I2PEndian.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\SSU.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\Identity.h">
Expand Down Expand Up @@ -149,5 +152,8 @@
<ClInclude Include="..\I2PEndian.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\SSU.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
8 changes: 8 additions & 0 deletions i2p.cpp
Expand Up @@ -13,6 +13,14 @@

int main( int, char** )
{

#ifdef _WIN32
setlocale(LC_CTYPE, "");
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
setlocale(LC_ALL, "Russian");
#endif

i2p::util::HTTPServer httpServer (7070);

httpServer.Start ();
Expand Down

0 comments on commit a0dfd29

Please sign in to comment.