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

372 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.c File Reference</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="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">bookkeeping.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Bookkeeping functions for history and favorites.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ad9968f711d1ae4242a54fdeb2ff629e5" id="r_ad9968f711d1ae4242a54fdeb2ff629e5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad9968f711d1ae4242a54fdeb2ff629e5">bookkeeping_init</a> (char *path)</td></tr>
<tr class="memdesc:ad9968f711d1ae4242a54fdeb2ff629e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the bookkeeping system with the specified path. <br /></td></tr>
<tr class="separator:ad9968f711d1ae4242a54fdeb2ff629e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7d2fe881c1551302555675e2ef1e179" id="r_af7d2fe881c1551302555675e2ef1e179"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af7d2fe881c1551302555675e2ef1e179">bookkeeping_ini_load_list</a> (<a class="el" href="bookkeeping_8h.html#structbookkeeping__item__t">bookkeeping_item_t</a> *list, int count, mini_t *ini, const char *group)</td></tr>
<tr class="memdesc:af7d2fe881c1551302555675e2ef1e179"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a list of bookkeeping items from an INI file. <br /></td></tr>
<tr class="separator:af7d2fe881c1551302555675e2ef1e179"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ab2c51cc842cbbedbc43871b60513e7" id="r_a5ab2c51cc842cbbedbc43871b60513e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5ab2c51cc842cbbedbc43871b60513e7">bookkeeping_load</a> (<a class="el" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *history)</td></tr>
<tr class="memdesc:a5ab2c51cc842cbbedbc43871b60513e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load the bookkeeping history and favorites from the history file. <br /></td></tr>
<tr class="separator:a5ab2c51cc842cbbedbc43871b60513e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd7da0ed70a9e1a59973ec2156bc54fe" id="r_abd7da0ed70a9e1a59973ec2156bc54fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abd7da0ed70a9e1a59973ec2156bc54fe">bookkeeping_save</a> (<a class="el" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *history)</td></tr>
<tr class="memdesc:abd7da0ed70a9e1a59973ec2156bc54fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the bookkeeping history and favorites to the history file. <br /></td></tr>
<tr class="separator:abd7da0ed70a9e1a59973ec2156bc54fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb8fb0bd64919b6b9a948b8838ff0993" id="r_abb8fb0bd64919b6b9a948b8838ff0993"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abb8fb0bd64919b6b9a948b8838ff0993">bookkeeping_history_add</a> (<a class="el" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *bookkeeping, <a class="el" href="path_8h.html#structpath__t">path_t</a> *primary_path, <a class="el" href="path_8h.html#structpath__t">path_t</a> *secondary_path, <a class="el" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0c">bookkeeping_item_types_t</a> type)</td></tr>
<tr class="memdesc:abb8fb0bd64919b6b9a948b8838ff0993"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a new item to the bookkeeping history. <br /></td></tr>
<tr class="separator:abb8fb0bd64919b6b9a948b8838ff0993"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4729ade7b26c4d18e80a9fe382c5dc4" id="r_ad4729ade7b26c4d18e80a9fe382c5dc4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad4729ade7b26c4d18e80a9fe382c5dc4">bookkeeping_favorite_add</a> (<a class="el" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *bookkeeping, <a class="el" href="path_8h.html#structpath__t">path_t</a> *primary_path, <a class="el" href="path_8h.html#structpath__t">path_t</a> *secondary_path, <a class="el" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0c">bookkeeping_item_types_t</a> type)</td></tr>
<tr class="memdesc:ad4729ade7b26c4d18e80a9fe382c5dc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a new item to the bookkeeping favorites. <br /></td></tr>
<tr class="separator:ad4729ade7b26c4d18e80a9fe382c5dc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a611107925e1473aecfa405373b101b36" id="r_a611107925e1473aecfa405373b101b36"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a611107925e1473aecfa405373b101b36">bookkeeping_favorite_remove</a> (<a class="el" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *bookkeeping, int selection)</td></tr>
<tr class="memdesc:a611107925e1473aecfa405373b101b36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove an item from the bookkeeping favorites. <br /></td></tr>
<tr class="separator:a611107925e1473aecfa405373b101b36"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Bookkeeping functions for history and favorites. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="ad9968f711d1ae4242a54fdeb2ff629e5" name="ad9968f711d1ae4242a54fdeb2ff629e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9968f711d1ae4242a54fdeb2ff629e5">&#9670;&#160;</a></span>bookkeeping_init()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void bookkeeping_init </td>
<td>(</td>
<td class="paramtype">char *</td> <td class="paramname"><span class="paramname"><em>path</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize the bookkeeping system with the specified path. </p>
<p>Initialize ROM bookkeeping path.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">path</td><td>Path to the history file. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="af7d2fe881c1551302555675e2ef1e179" name="af7d2fe881c1551302555675e2ef1e179"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7d2fe881c1551302555675e2ef1e179">&#9670;&#160;</a></span>bookkeeping_ini_load_list()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void bookkeeping_ini_load_list </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bookkeeping_8h.html#structbookkeeping__item__t">bookkeeping_item_t</a> *</td> <td class="paramname"><span class="paramname"><em>list</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>count</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">mini_t *</td> <td class="paramname"><span class="paramname"><em>ini</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>group</em></span>&#160;)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Load a list of bookkeeping items from an INI file. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">list</td><td>Pointer to the list of bookkeeping items. </td></tr>
<tr><td class="paramname">count</td><td>Number of items in the list. </td></tr>
<tr><td class="paramname">ini</td><td>Pointer to the INI file structure. </td></tr>
<tr><td class="paramname">group</td><td>Name of the group in the INI file. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a5ab2c51cc842cbbedbc43871b60513e7" name="a5ab2c51cc842cbbedbc43871b60513e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ab2c51cc842cbbedbc43871b60513e7">&#9670;&#160;</a></span>bookkeeping_load()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void bookkeeping_load </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *</td> <td class="paramname"><span class="paramname"><em>history</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Load the bookkeeping history and favorites from the history file. </p>
<p>Load ROM bookkeeping.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">history</td><td>Pointer to the bookkeeping structure. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="abd7da0ed70a9e1a59973ec2156bc54fe" name="abd7da0ed70a9e1a59973ec2156bc54fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd7da0ed70a9e1a59973ec2156bc54fe">&#9670;&#160;</a></span>bookkeeping_save()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void bookkeeping_save </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *</td> <td class="paramname"><span class="paramname"><em>history</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Save the bookkeeping history and favorites to the history file. </p>
<p>Save ROM bookkeeping.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">history</td><td>Pointer to the bookkeeping structure. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="abb8fb0bd64919b6b9a948b8838ff0993" name="abb8fb0bd64919b6b9a948b8838ff0993"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb8fb0bd64919b6b9a948b8838ff0993">&#9670;&#160;</a></span>bookkeeping_history_add()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void bookkeeping_history_add </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *</td> <td class="paramname"><span class="paramname"><em>bookkeeping</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="path_8h.html#structpath__t">path_t</a> *</td> <td class="paramname"><span class="paramname"><em>primary_path</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="path_8h.html#structpath__t">path_t</a> *</td> <td class="paramname"><span class="paramname"><em>secondary_path</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0c">bookkeeping_item_types_t</a></td> <td class="paramname"><span class="paramname"><em>type</em></span>&#160;)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a new item to the bookkeeping history. </p>
<p>Add a ROM to the history.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bookkeeping</td><td>Pointer to the bookkeeping structure. </td></tr>
<tr><td class="paramname">primary_path</td><td>Pointer to the primary path. </td></tr>
<tr><td class="paramname">secondary_path</td><td>Pointer to the secondary path. </td></tr>
<tr><td class="paramname">type</td><td>The type of the bookkeeping item. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ad4729ade7b26c4d18e80a9fe382c5dc4" name="ad4729ade7b26c4d18e80a9fe382c5dc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4729ade7b26c4d18e80a9fe382c5dc4">&#9670;&#160;</a></span>bookkeeping_favorite_add()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void bookkeeping_favorite_add </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *</td> <td class="paramname"><span class="paramname"><em>bookkeeping</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="path_8h.html#structpath__t">path_t</a> *</td> <td class="paramname"><span class="paramname"><em>primary_path</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="path_8h.html#structpath__t">path_t</a> *</td> <td class="paramname"><span class="paramname"><em>secondary_path</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="bookkeeping_8h.html#ade37f681e61c6928afe2582458650d0c">bookkeeping_item_types_t</a></td> <td class="paramname"><span class="paramname"><em>type</em></span>&#160;)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a new item to the bookkeeping favorites. </p>
<p>Add a ROM to the favorites.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bookkeeping</td><td>Pointer to the bookkeeping structure. </td></tr>
<tr><td class="paramname">primary_path</td><td>Pointer to the primary path. </td></tr>
<tr><td class="paramname">secondary_path</td><td>Pointer to the secondary path. </td></tr>
<tr><td class="paramname">type</td><td>The type of the bookkeeping item. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a611107925e1473aecfa405373b101b36" name="a611107925e1473aecfa405373b101b36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a611107925e1473aecfa405373b101b36">&#9670;&#160;</a></span>bookkeeping_favorite_remove()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void bookkeeping_favorite_remove </td>
<td>(</td>
<td class="paramtype"><a class="el" href="bookkeeping_8h.html#structbookkeeping__t">bookkeeping_t</a> *</td> <td class="paramname"><span class="paramname"><em>bookkeeping</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>selection</em></span>&#160;)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Remove an item from the bookkeeping favorites. </p>
<p>Remove a ROM from the favorites.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bookkeeping</td><td>Pointer to the bookkeeping structure. </td></tr>
<tr><td class="paramname">selection</td><td>Index of the item to remove. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</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>