shift content around to make backtrace more apparent

This commit is contained in:
Corwin 2024-04-19 23:55:41 +01:00
parent 853c008ff7
commit 162bc17add
No known key found for this signature in database
2 changed files with 14 additions and 14 deletions

View file

@ -31,6 +31,8 @@ export function BacktracePage() {
game you are playing.
</em>
</p>
<h2>Backtrace</h2>
{backtrace && <Debug encodedBacktrace={backtrace} />}
<h2>For game developers</h2>
<p>If you don&apos;t want players to be sent to this page, you can:</p>
<ol>
@ -38,8 +40,6 @@ export function BacktracePage() {
<li>Configure the backtrace page to not point to a site at all</li>
<li>Not use the backtrace feature</li>
</ol>
<h2>Backtrace</h2>
{backtrace && <Debug encodedBacktrace={backtrace} />}
</ContentBlock>
);
}

View file

@ -51,6 +51,18 @@ function DebugBacktraceDecode({
return (
<>
<BacktraceListWrapper>
<BacktraceList>
{backtraceAddresses.map((x, idx) => (
<li key={x}>
<BacktraceAddressInfo
address={x}
info={backtraceLocations[idx]}
/>
</li>
))}
</BacktraceList>
</BacktraceListWrapper>
<p>
If you add the elf file used to make the GBA file, or the GBA file
itself if it was made with <NonWrapCode>agb-gbafix --debug</NonWrapCode>
@ -72,18 +84,6 @@ function DebugBacktraceDecode({
}}
/>
</label>
<BacktraceListWrapper>
<BacktraceList>
{backtraceAddresses.map((x, idx) => (
<li key={x}>
<BacktraceAddressInfo
address={x}
info={backtraceLocations[idx]}
/>
</li>
))}
</BacktraceList>
</BacktraceListWrapper>
</>
);
}