Split lib_12dc0.c into rng.c and args.c

This commit is contained in:
Ryan Dwyer
2021-01-30 19:42:22 +10:00
parent f262c23324
commit 36f092e775
67 changed files with 156 additions and 134 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
#include "types.h"
extern s32 g_StageNum;
extern u64 rand_seed;
extern u64 g_RngSeed;
extern struct chrdata *g_ChrSlots; // pointer to first element of chrs array
extern s32 g_NumChrSlots;
@@ -1,15 +1,12 @@
#ifndef _IN_LIB_LIB_12DC0_H
#define _IN_LIB_LIB_12DC0_H
#ifndef _IN_LIB_ARGS_H
#define _IN_LIB_ARGS_H
#include <ultra64.h>
#include "types.h"
void rngSetSeed(u32 amount);
u32 func00012e1c(u64 *value);
char *argParseString(char *str);
void argSetString(char *string);
s32 argsParseDebugArgs(void);
char *argFindByPrefix(s32 occurrence, char *string);
void argGetLevel(s32 *stagenum);
u32 random(void);
#endif
+10
View File
@@ -0,0 +1,10 @@
#ifndef _IN_LIB_RNG_H
#define _IN_LIB_RNG_H
#include <ultra64.h>
#include "types.h"
u32 random(void);
void rngSetSeed(u32 seed);
u32 func00012e1c(u64 *value);
#endif