Files
N64FlashcartMenu/bookkeeping_8h_source.html
2025-06-13 18:36:11 +00:00

165 lines
20 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.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>N64FlashcartMenu: bookkeeping.h Source File</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>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.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.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @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&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search',false);
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_1a56cc8cdc1689899910be5fa4716ee4.html">menu</a></li> </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
<div class="headertitle"><div class="title">bookkeeping.h</div></div>
</div><!--header-->
<div class="contents">
<a href="bookkeeping_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#ifndef BOOKKEEPING_H__</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#define BOOKKEEPING_H__</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &quot;<a class="code" href="path_8h.html">path.h</a>&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html#a67fb759223d2326d5cb4987a8207aa29"> 12</a></span><span class="preprocessor">#define FAVORITES_COUNT 8 </span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html#a9b84680666acc1ecc4e9f9fb551e2793"> 13</a></span><span class="preprocessor">#define HISTORY_COUNT 8 </span></div>
<div class="foldopen" id="foldopen00016" data-start="{" data-end="};">
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0c"> 16</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0cadd80b8ed37b599f4be79db1c234e166c"> 17</a></span> <a class="code hl_enumvalue" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0cadd80b8ed37b599f4be79db1c234e166c">BOOKKEEPING_TYPE_EMPTY</a>, </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0cac2039a88f166e523080a44faa6b95c80"> 18</a></span> <a class="code hl_enumvalue" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0cac2039a88f166e523080a44faa6b95c80">BOOKKEEPING_TYPE_ROM</a>, </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0cac8b929008019a4f85c08580457a35179"> 19</a></span> <a class="code hl_enumvalue" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0cac8b929008019a4f85c08580457a35179">BOOKKEEPING_TYPE_DISK</a>, </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span>} <a class="code hl_enumeration" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0c">bookkeeping_item_types_t</a>;</div>
</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="foldopen" id="foldopen00023" data-start="{" data-end="};">
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html"> 23</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html#a4c263fa0661f89e907e4a5b302e7ef7a"> 24</a></span> <a class="code hl_struct" href="path_8h.html#structpath__t">path_t</a> *<a class="code hl_variable" href="bookkeeping_8h.html#a4c263fa0661f89e907e4a5b302e7ef7a">primary_path</a>; </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html#aa4366742c44c10fa6d51e6f5b570d07b"> 25</a></span> <a class="code hl_struct" href="path_8h.html#structpath__t">path_t</a> *<a class="code hl_variable" href="bookkeeping_8h.html#aa4366742c44c10fa6d51e6f5b570d07b">secondary_path</a>; </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html#a11e15bf6d7a757395b65182d9020a49e"> 26</a></span> <a class="code hl_enumeration" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0c">bookkeeping_item_types_t</a> <a class="code hl_variable" href="bookkeeping_8h.html#a11e15bf6d7a757395b65182d9020a49e">bookkeeping_type</a>; </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span>} <a class="code hl_struct" href="bookkeeping_8h.html#structbookkeeping__item__t">bookkeeping_item_t</a>;</div>
</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="foldopen" id="foldopen00030" data-start="{" data-end="};">
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html"> 30</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html#ae3c2f929ccfe4534dc071cde336285f3"> 31</a></span> <a class="code hl_struct" href="bookkeeping_8h.html#structbookkeeping__item__t">bookkeeping_item_t</a> history_items[<a class="code hl_define" href="bookkeeping_8h.html#a9b84680666acc1ecc4e9f9fb551e2793">HISTORY_COUNT</a>]; </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="bookkeeping_8h.html#a46c6385ac0aae23c588cc83bfd8a5e1c"> 32</a></span> <a class="code hl_struct" href="bookkeeping_8h.html#structbookkeeping__item__t">bookkeeping_item_t</a> favorite_items[<a class="code hl_define" href="bookkeeping_8h.html#a67fb759223d2326d5cb4987a8207aa29">FAVORITES_COUNT</a>]; </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span>} <a class="code hl_struct" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a>;</div>
</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keywordtype">void</span> <a class="code hl_function" href="bookkeeping_8h.html#ad9968f711d1ae4242a54fdeb2ff629e5">bookkeeping_init</a>(<span class="keywordtype">char</span> *path);</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="keywordtype">void</span> <a class="code hl_function" href="bookkeeping_8h.html#a5ab2c51cc842cbbedbc43871b60513e7">bookkeeping_load</a>(<a class="code hl_struct" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *history);</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="keywordtype">void</span> <a class="code hl_function" href="bookkeeping_8h.html#abd7da0ed70a9e1a59973ec2156bc54fe">bookkeeping_save</a>(<a class="code hl_struct" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *history);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="keywordtype">void</span> <a class="code hl_function" href="bookkeeping_8h.html#abb8fb0bd64919b6b9a948b8838ff0993">bookkeeping_history_add</a>(<a class="code hl_struct" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *bookkeeping, <a class="code hl_struct" href="path_8h.html#structpath__t">path_t</a> *primary_path, <a class="code hl_struct" href="path_8h.html#structpath__t">path_t</a> *secondary_path, <a class="code hl_enumeration" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0c">bookkeeping_item_types_t</a> type);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="keywordtype">void</span> <a class="code hl_function" href="bookkeeping_8h.html#ad4729ade7b26c4d18e80a9fe382c5dc4">bookkeeping_favorite_add</a>(<a class="code hl_struct" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *bookkeeping, <a class="code hl_struct" href="path_8h.html#structpath__t">path_t</a> *primary_path, <a class="code hl_struct" href="path_8h.html#structpath__t">path_t</a> *secondary_path, <a class="code hl_enumeration" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0c">bookkeeping_item_types_t</a> type);</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span><span class="keywordtype">void</span> <a class="code hl_function" href="bookkeeping_8h.html#a611107925e1473aecfa405373b101b36">bookkeeping_favorite_remove</a>(<a class="code hl_struct" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *bookkeeping, <span class="keywordtype">int</span> selection);</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="preprocessor">#endif </span><span class="comment">/* BOOKKEEPING_H__ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="abookkeeping_8h_html_a11e15bf6d7a757395b65182d9020a49e"><div class="ttname"><a href="bookkeeping_8h.html#a11e15bf6d7a757395b65182d9020a49e">bookkeeping_item_t::bookkeeping_type</a></div><div class="ttdeci">bookkeeping_item_types_t bookkeeping_type</div><div class="ttdef"><b>Definition</b> bookkeeping.h:26</div></div>
<div class="ttc" id="abookkeeping_8h_html_a4c263fa0661f89e907e4a5b302e7ef7a"><div class="ttname"><a href="bookkeeping_8h.html#a4c263fa0661f89e907e4a5b302e7ef7a">bookkeeping_item_t::primary_path</a></div><div class="ttdeci">path_t * primary_path</div><div class="ttdef"><b>Definition</b> bookkeeping.h:24</div></div>
<div class="ttc" id="abookkeeping_8h_html_a5ab2c51cc842cbbedbc43871b60513e7"><div class="ttname"><a href="bookkeeping_8h.html#a5ab2c51cc842cbbedbc43871b60513e7">bookkeeping_load</a></div><div class="ttdeci">void bookkeeping_load(bookkeeping_t *history)</div><div class="ttdoc">Load ROM bookkeeping.</div><div class="ttdef"><b>Definition</b> bookkeeping.c:58</div></div>
<div class="ttc" id="abookkeeping_8h_html_a611107925e1473aecfa405373b101b36"><div class="ttname"><a href="bookkeeping_8h.html#a611107925e1473aecfa405373b101b36">bookkeeping_favorite_remove</a></div><div class="ttdeci">void bookkeeping_favorite_remove(bookkeeping_t *bookkeeping, int selection)</div><div class="ttdoc">Remove a ROM from the favorites.</div><div class="ttdef"><b>Definition</b> bookkeeping.c:283</div></div>
<div class="ttc" id="abookkeeping_8h_html_a67fb759223d2326d5cb4987a8207aa29"><div class="ttname"><a href="bookkeeping_8h.html#a67fb759223d2326d5cb4987a8207aa29">FAVORITES_COUNT</a></div><div class="ttdeci">#define FAVORITES_COUNT</div><div class="ttdef"><b>Definition</b> bookkeeping.h:12</div></div>
<div class="ttc" id="abookkeeping_8h_html_a9b84680666acc1ecc4e9f9fb551e2793"><div class="ttname"><a href="bookkeeping_8h.html#a9b84680666acc1ecc4e9f9fb551e2793">HISTORY_COUNT</a></div><div class="ttdeci">#define HISTORY_COUNT</div><div class="ttdef"><b>Definition</b> bookkeeping.h:13</div></div>
<div class="ttc" id="abookkeeping_8h_html_aa4366742c44c10fa6d51e6f5b570d07b"><div class="ttname"><a href="bookkeeping_8h.html#aa4366742c44c10fa6d51e6f5b570d07b">bookkeeping_item_t::secondary_path</a></div><div class="ttdeci">path_t * secondary_path</div><div class="ttdef"><b>Definition</b> bookkeeping.h:25</div></div>
<div class="ttc" id="abookkeeping_8h_html_abb8fb0bd64919b6b9a948b8838ff0993"><div class="ttname"><a href="bookkeeping_8h.html#abb8fb0bd64919b6b9a948b8838ff0993">bookkeeping_history_add</a></div><div class="ttdeci">void bookkeeping_history_add(bookkeeping_t *bookkeeping, path_t *primary_path, path_t *secondary_path, bookkeeping_item_types_t type)</div><div class="ttdoc">Add a ROM to the history.</div><div class="ttdef"><b>Definition</b> bookkeeping.c:247</div></div>
<div class="ttc" id="abookkeeping_8h_html_abd7da0ed70a9e1a59973ec2156bc54fe"><div class="ttname"><a href="bookkeeping_8h.html#abd7da0ed70a9e1a59973ec2156bc54fe">bookkeeping_save</a></div><div class="ttdeci">void bookkeeping_save(bookkeeping_t *history)</div><div class="ttdoc">Save ROM bookkeeping.</div><div class="ttdef"><b>Definition</b> bookkeeping.c:99</div></div>
<div class="ttc" id="abookkeeping_8h_html_ad4729ade7b26c4d18e80a9fe382c5dc4"><div class="ttname"><a href="bookkeeping_8h.html#ad4729ade7b26c4d18e80a9fe382c5dc4">bookkeeping_favorite_add</a></div><div class="ttdeci">void bookkeeping_favorite_add(bookkeeping_t *bookkeeping, path_t *primary_path, path_t *secondary_path, bookkeeping_item_types_t type)</div><div class="ttdoc">Add a ROM to the favorites.</div><div class="ttdef"><b>Definition</b> bookkeeping.c:266</div></div>
<div class="ttc" id="abookkeeping_8h_html_ad9968f711d1ae4242a54fdeb2ff629e5"><div class="ttname"><a href="bookkeeping_8h.html#ad9968f711d1ae4242a54fdeb2ff629e5">bookkeeping_init</a></div><div class="ttdeci">void bookkeeping_init(char *path)</div><div class="ttdoc">Initialize ROM bookkeeping path.</div><div class="ttdef"><b>Definition</b> bookkeeping.c:23</div></div>
<div class="ttc" id="abookkeeping_8h_html_ade37f681e61c6928afe2582458650d0c"><div class="ttname"><a href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0c">bookkeeping_item_types_t</a></div><div class="ttdeci">bookkeeping_item_types_t</div><div class="ttdoc">Bookkeeping item types enumeration.</div><div class="ttdef"><b>Definition</b> bookkeeping.h:16</div></div>
<div class="ttc" id="abookkeeping_8h_html_ade37f681e61c6928afe2582458650d0cac2039a88f166e523080a44faa6b95c80"><div class="ttname"><a href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0cac2039a88f166e523080a44faa6b95c80">BOOKKEEPING_TYPE_ROM</a></div><div class="ttdeci">@ BOOKKEEPING_TYPE_ROM</div><div class="ttdef"><b>Definition</b> bookkeeping.h:18</div></div>
<div class="ttc" id="abookkeeping_8h_html_ade37f681e61c6928afe2582458650d0cac8b929008019a4f85c08580457a35179"><div class="ttname"><a href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0cac8b929008019a4f85c08580457a35179">BOOKKEEPING_TYPE_DISK</a></div><div class="ttdeci">@ BOOKKEEPING_TYPE_DISK</div><div class="ttdef"><b>Definition</b> bookkeeping.h:19</div></div>
<div class="ttc" id="abookkeeping_8h_html_ade37f681e61c6928afe2582458650d0cadd80b8ed37b599f4be79db1c234e166c"><div class="ttname"><a href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0cadd80b8ed37b599f4be79db1c234e166c">BOOKKEEPING_TYPE_EMPTY</a></div><div class="ttdeci">@ BOOKKEEPING_TYPE_EMPTY</div><div class="ttdef"><b>Definition</b> bookkeeping.h:17</div></div>
<div class="ttc" id="abookkeeping_8h_html_structbookkeeping__item__t"><div class="ttname"><a href="bookkeeping_8h.html#structbookkeeping__item__t">bookkeeping_item_t</a></div><div class="ttdoc">Bookkeeping item structure.</div><div class="ttdef"><b>Definition</b> bookkeeping.h:23</div></div>
<div class="ttc" id="abookkeeping_8h_html_structbookkeeping__t"><div class="ttname"><a href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a></div><div class="ttdoc">ROM bookkeeping structure.</div><div class="ttdef"><b>Definition</b> bookkeeping.h:30</div></div>
<div class="ttc" id="apath_8h_html"><div class="ttname"><a href="path_8h.html">path.h</a></div><div class="ttdoc">Menu Path.</div></div>
<div class="ttc" id="apath_8h_html_structpath__t"><div class="ttname"><a href="path_8h.html#structpath__t">path_t</a></div><div class="ttdoc">Path Structure.</div><div class="ttdef"><b>Definition</b> path.h:16</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Jun 13 2025 18:36:09 for N64FlashcartMenu by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>