mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-08-16 23:59:49 +00:00
Burn down Linux fallback UI paths
This commit is contained in:
@@ -7,31 +7,14 @@ bool LinuxSimRuntimeRenderer::render(const LinuxSimRuntimeEntry& entry)
|
||||
{
|
||||
ready_ = false;
|
||||
primary_ = false;
|
||||
fallback_ = true;
|
||||
|
||||
if (entry.usingPrimaryScreenGraph())
|
||||
{
|
||||
ready_ = descriptor_renderer_.render(entry.adoption());
|
||||
primary_ = ready_;
|
||||
fallback_ = !ready_;
|
||||
return ready_;
|
||||
}
|
||||
|
||||
if (entry.fallbackUsed())
|
||||
{
|
||||
return renderFallback(entry);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool LinuxSimRuntimeRenderer::renderFallback(const LinuxSimRuntimeEntry&)
|
||||
{
|
||||
// Phase 11 fallback: old hardcoded ASCII rendering remains available only
|
||||
// when the runtime entry did not provide primary descriptors.
|
||||
ready_ = false;
|
||||
primary_ = false;
|
||||
fallback_ = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -50,16 +33,6 @@ bool LinuxSimRuntimeRenderer::usedPrimaryScreenGraph() const noexcept
|
||||
return primary_;
|
||||
}
|
||||
|
||||
bool LinuxSimRuntimeRenderer::fallbackUsed() const noexcept
|
||||
{
|
||||
return fallback_;
|
||||
}
|
||||
|
||||
bool LinuxSimRuntimeRenderer::usedFallback() const noexcept
|
||||
{
|
||||
return fallback_;
|
||||
}
|
||||
|
||||
std::size_t LinuxSimRuntimeRenderer::lineCount() const noexcept
|
||||
{
|
||||
return ready_ ? descriptor_renderer_.lineCount() : 0;
|
||||
|
||||
Reference in New Issue
Block a user