mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2025-02-22 04:37:17 +01:00
146 lines
7.6 KiB
HTML
146 lines
7.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>N64FlashcartMenu: Developer documentation</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">N64FlashcartMenu
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div><!-- top -->
|
|
<div><div class="header">
|
|
<div class="headertitle"><div class="title">Developer documentation</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><p><a class="anchor" id="autotoc_md52"></a> You can use a dev container in VSCode to ease development.</p>
|
|
<h2><a class="anchor" id="autotoc_md53"></a>
|
|
A quickstart video tutorial on how to set up your environment</h2>
|
|
<p><a href="http://www.youtube.com/watch?v=h05ufOsRgZU" title="Devcontainer quickstart guide"><img src="http://img.youtube.com/vi/h05ufOsRgZU/0.jpg" alt="Devcontainer quickstart guide" class="inline"/></a>.</p>
|
|
<h2><a class="anchor" id="autotoc_md54"></a>
|
|
How to deploy</h2>
|
|
<h3><a class="anchor" id="autotoc_md55"></a>
|
|
SC64</h3>
|
|
<ul>
|
|
<li>Download the deployer <a href="https://github.com/Polprzewodnikowy/SummerCart64/releases/download/v2.20.0/sc64-deployer-windows-v2.20.0.zip">here</a>.</li>
|
|
<li>Extract and place <code>sc64deployer.exe</code> in the <code>tools/sc64</code> directory.</li>
|
|
</ul>
|
|
<p>Make sure that your firmware is compatible (currently v2.20.0+). See: <a href="https://github.com/Polprzewodnikowy/SummerCart64/blob/v2.20.0/docs/00_quick_startup_guide.md#firmware-backupupdate">here</a></p>
|
|
<h4><a class="anchor" id="autotoc_md56"></a>
|
|
From the devcontainer</h4>
|
|
<p>It is not currently possible to directly communicate with USB devices. BUT, you can use a proxy TCP/IP connection as a workaround. <br />
|
|
To set up a proxy, open a terminal window, <code>cd ./tools/sc64</code> and then <code>./sc64deployer.exe server</code>.</p>
|
|
<p>Then, in the dev container, use <code>make run</code> or <code>make run-debug</code>.</p>
|
|
<h4><a class="anchor" id="autotoc_md57"></a>
|
|
From your host (Windows) OS</h4>
|
|
<ul>
|
|
<li>Run <code>./localdeploy.bat</code> from the terminal.</li>
|
|
</ul>
|
|
<p>Toggle the N64 POWER switch to load the ROM.</p>
|
|
<p><code>ms-vscode.makefile-tools</code> will help (installed automatically in dev container). <br />
|
|
NOTE: it does not yet work with <code>F5</code>: see <a href="https://devblogs.microsoft.com/cppblog/now-announcing-makefile-support-in-visual-studio-code/">this blog post</a>. <br />
|
|
WORKAROUND: in the dev container terminal, use make directly, i.e.: <code>make</code>. <br />
|
|
The ROM can be found in the <code>output</code> directory.</p>
|
|
<p>NOTE: a "release" version of the SC64 menu is called <code>sc64menu.n64</code> and can be created for when you want to add it directly to the SDCard. This is generated by running <code>make all</code> or running <code>make sc64</code>.</p>
|
|
<h3><a class="anchor" id="autotoc_md58"></a>
|
|
Ares Emulator</h3>
|
|
<p>For ease of development and debugging, the menu ROM can run in the <a href="https://ares-emu.net/">Ares emulator</a> (without most flashcart features).</p>
|
|
<ul>
|
|
<li>Ensure you have the Ares emulator on your computer.</li>
|
|
<li>Load the <code>N64FlashcartMenu.n64</code> ROM.</li>
|
|
</ul>
|
|
<h3><a class="anchor" id="autotoc_md59"></a>
|
|
Others</h3>
|
|
<ul>
|
|
<li>Add the required file to the correct folder on your SD card.</li>
|
|
</ul>
|
|
<h1><a class="anchor" id="autotoc_md60"></a>
|
|
Update submodules</h1>
|
|
<p>To update to the latest version, use <code>git submodule update --remote</code> from the terminal.</p>
|
|
<h2><a class="anchor" id="autotoc_md61"></a>
|
|
libdragon</h2>
|
|
<p>This repo currently uses the <code>preview</code> branch as a submodule at a specific commit.</p><ul>
|
|
<li>To ensure your local instance is building against it, use <code>cd ./libdragon && make clobber -j && make libdragon tools -j && make install tools-install -j && cd ..</code></li>
|
|
</ul>
|
|
<h1><a class="anchor" id="autotoc_md62"></a>
|
|
Generate documentation</h1>
|
|
<p>Run <code>doxygen</code> from the dev container terminal. Make sure you fix the warnings before creating a PR! <br />
|
|
Generated documentation is located in the <code>output/docs</code> folder and auto-published to the <code>gh-pages</code> branch when merged with <code>main</code>.</p>
|
|
<p>Once merged, they can be viewed <a href="https://polprzewodnikowy.github.io/N64FlashcartMenu/">here</a>.</p>
|
|
<h2><a class="anchor" id="autotoc_md63"></a>
|
|
Test generated docs in the dev-container</h2>
|
|
<p>Testing the documentation locally allows you to preview changes and ensure everything renders correctly before submitting your changes.</p>
|
|
<p>Install Prerequisites: </p><div class="fragment"><div class="line">apt-get install ruby-full build-essential zlib1g-dev</div>
|
|
<div class="line">gem install jekyll bundler</div>
|
|
</div><!-- fragment --><p>You can then serve the webpage: </p><div class="fragment"><div class="line">cd output/docs && jekyll serve</div>
|
|
</div><!-- fragment --><h2><a class="anchor" id="autotoc_md64"></a>
|
|
Test ability to Customize the font</h2>
|
|
<p>Add a <code>font64</code> file to the <code>menu</code> directory called "custom.font64". You can build a font64 file with the <code>libdragon</code> tools. </p>
|
|
</div></div><!-- contents -->
|
|
</div><!-- PageDoc -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Sat Jan 25 2025 00:07:04 for N64FlashcartMenu by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|