Skip to content

Commit

Permalink
rename conlog gui file and set the logbuffer-consumed flag sooner
Browse files Browse the repository at this point in the history
  • Loading branch information
Bigpet committed Jun 27, 2014
1 parent 21da317 commit 1ad4380
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions rpcs3/Gui/ConLog.cpp → rpcs3/Gui/ConLogFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ struct wxWriter : Log::LogListener
std::vector<char> local_messages(size);
messages.popN(&local_messages.front(), size);
messages.unlockGet();
newLog = false;

u32 cursor = 0;
u32 removed = 0;
Expand Down Expand Up @@ -95,7 +96,6 @@ struct wxWriter : Log::LogListener
m_log->Remove(0, m_log->GetLastPosition() - (GUI_BUFFER_MAX_SIZE/2));
}
}
newLog = false;
}

//put message into the log buffer
Expand All @@ -114,7 +114,7 @@ struct wxWriter : Log::LogListener
std::vector<char> temp_buffer(size);
msg.serialize(temp_buffer.data());
messages.pushRange(temp_buffer.begin(), temp_buffer.end());
if (!newLog.load(std::memory_order_relaxed))
if (!newLog.load())
{
newLog = true;
m_log->GetEventHandler()->QueueEvent(new wxCommandEvent(EVT_LOG_COMMAND));
Expand Down
2 changes: 1 addition & 1 deletion rpcs3/rpcs3.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
<ClCompile Include="..\Utilities\Thread.cpp" />
<ClCompile Include="Emu\DbgCommand.cpp" />
<ClCompile Include="Gui\CompilerELF.cpp" />
<ClCompile Include="Gui\ConLog.cpp" />
<ClCompile Include="Gui\ConLogFrame.cpp" />
<ClCompile Include="Gui\Debugger.cpp" />
<ClCompile Include="Gui\DisAsmFrame.cpp" />
<ClCompile Include="Gui\GameViewer.cpp" />
Expand Down
6 changes: 3 additions & 3 deletions rpcs3/rpcs3.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
<ClCompile Include="Gui\MainFrame.cpp">
<Filter>Gui</Filter>
</ClCompile>
<ClCompile Include="Gui\ConLog.cpp">
<Filter>Gui</Filter>
</ClCompile>
<ClCompile Include="Gui\MemoryViewer.cpp">
<Filter>Gui</Filter>
</ClCompile>
Expand Down Expand Up @@ -102,6 +99,9 @@
<ClCompile Include="Emu\DbgCommand.cpp">
<Filter>Emu</Filter>
</ClCompile>
<ClCompile Include="Gui\ConLogFrame.cpp">
<Filter>Gui</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="rpcs3.rc" />
Expand Down

0 comments on commit 1ad4380

Please sign in to comment.