PVSnesLib  4.3.0
Documentation to code in C or ASM for the Nintendo SNES
scores.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------------
2 
3  Copyright (C) 2012-2020
4  Alekmaul
5 
6 
7  This software is provided 'as-is', without any express or implied
8  warranty. In no event will the authors be held liable for any
9  damages arising from the use of this software.
10 
11  Permission is granted to anyone to use this software for any
12  purpose, including commercial applications, and to alter it and
13  redistribute it freely, subject to the following restrictions:
14 
15  1. The origin of this software must not be misrepresented; you
16  must not claim that you wrote the original software. If you use
17  this software in a product, an acknowledgment in the product
18  documentation would be appreciated but is not required.
19 
20  2. Altered source versions must be plainly marked as such, and
21  must not be misrepresented as being the original software.
22 
23  3. This notice may not be removed or altered from any source
24  distribution.
25 
26 ---------------------------------------------------------------------------------*/
31 #ifndef SNES_SCORE_INCLUDE
32 #define SNES_SCORE_INCLUDE
33 
34 #include <snes/snestypes.h>
35 
36 typedef struct
37 {
38  u16 scolo;
39  u16 scohi;
40 } scoMemory;
41 
45 void scoreClear(scoMemory *source);
46 
51 void scoreAdd(scoMemory *source, u16 value);
52 
57 void scoreCpy(scoMemory *source, scoMemory *dest);
58 
64 u8 scoreCmp(scoMemory *source, scoMemory *dest);
65 
66 #endif // SNES_SCORE_INCLUDE
void scoreClear(scoMemory *source)
clear a score memory
void scoreAdd(scoMemory *source, u16 value)
add a value to a score memory
u8 scoreCmp(scoMemory *source, scoMemory *dest)
compare a score memory to another score memory
void scoreCpy(scoMemory *source, scoMemory *dest)
copy a score memory to another score memory
Custom types used by libsnes.