mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-17 23:00:55 -04:00
Split lib_12dc0.c into rng.c and args.c
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user