mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
No saving if there's no file selector.
This commit is contained in:
parent
2195e032a6
commit
1c8aece53c
@ -1721,11 +1721,13 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
|
|||||||
m_selectedAddresses.clear();
|
m_selectedAddresses.clear();
|
||||||
m_selectedAddresses.emplace( v.first );
|
m_selectedAddresses.emplace( v.first );
|
||||||
}
|
}
|
||||||
|
#ifndef TRACY_NO_FILESELECTOR
|
||||||
else if( ImGui::IsMouseClicked( 1 ) )
|
else if( ImGui::IsMouseClicked( 1 ) )
|
||||||
{
|
{
|
||||||
ImGui::OpenPopup( "jumpPopup" );
|
ImGui::OpenPopup( "jumpPopup" );
|
||||||
m_jumpPopupAddr = v.first;
|
m_jumpPopupAddr = v.first;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
selJumpStart = v.second.min;
|
selJumpStart = v.second.min;
|
||||||
selJumpEnd = v.second.max;
|
selJumpEnd = v.second.max;
|
||||||
selJumpTarget = v.first;
|
selJumpTarget = v.first;
|
||||||
@ -1756,6 +1758,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef TRACY_NO_FILESELECTOR
|
||||||
if( m_font ) ImGui::PopFont();
|
if( m_font ) ImGui::PopFont();
|
||||||
if( ImGui::BeginPopup( "jumpPopup" ) )
|
if( ImGui::BeginPopup( "jumpPopup" ) )
|
||||||
{
|
{
|
||||||
@ -1791,6 +1794,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
|
|||||||
ImGui::EndPopup();
|
ImGui::EndPopup();
|
||||||
}
|
}
|
||||||
if( m_font ) ImGui::PushFont( m_font );
|
if( m_font ) ImGui::PushFont( m_font );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
auto win = ImGui::GetCurrentWindow();
|
auto win = ImGui::GetCurrentWindow();
|
||||||
|
@ -168,7 +168,9 @@ private:
|
|||||||
void CheckRead( int line, RegsX86 reg, int limit );
|
void CheckRead( int line, RegsX86 reg, int limit );
|
||||||
void CheckWrite( int line, RegsX86 reg, int limit );
|
void CheckWrite( int line, RegsX86 reg, int limit );
|
||||||
|
|
||||||
|
#ifndef TRACY_NO_FILESELECTOR
|
||||||
void Save( const Worker& worker, size_t start = 0, size_t stop = std::numeric_limits<size_t>::max() );
|
void Save( const Worker& worker, size_t start = 0, size_t stop = std::numeric_limits<size_t>::max() );
|
||||||
|
#endif
|
||||||
|
|
||||||
struct TokenizerState
|
struct TokenizerState
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user