summaryrefslogtreecommitdiff
path: root/libs/SSystem/SComponent/c_counter.cpp
blob: a52c9c91824c55a7e1b0abec14567919203c2c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// Generated By: dol2asm
// Translation Unit: c_counter
//

#include "SSystem/SComponent/c_counter.h"
#include "dol2asm.h"
#include "dolphin/types.h"

/* ############################################################################################## */
/* 80430CD8-80430CE8 000C+04 s=1 e=12 z=22  None .bss       g_Counter */
counter_class g_Counter;

/* 80265E1C-80265E64 0048+00 s=0 e=1 z=0  None .text      cCt_Counter__Fi */
void cCt_Counter(int resetCounter1) {
    if (resetCounter1 == 1) {
        g_Counter.mCounter1 = 0;
    } else {
        g_Counter.mCounter1++;
    }

    g_Counter.mCounter0++;
}