forked from n64decomp/perfect_dark
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port: add basic mod directory support with config files for custom st…
…ages select mod directory with --moddir whatever these should contain a modconfig.txt that can specify replacements for some stage table fields, etc
- Loading branch information
Showing
10 changed files
with
598 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef _IN_MOD_H | ||
#define _IN_MOD_H | ||
|
||
#include <PR/ultratypes.h> | ||
|
||
#define MOD_CONFIG_FNAME "modconfig.txt" | ||
|
||
s32 modConfigLoad(const char *path); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef _IN_UTILS_H | ||
#define _IN_UTILS_H | ||
|
||
#define UTIL_MAX_TOKEN 1024 | ||
|
||
#include <PR/ultratypes.h> | ||
|
||
char *strRightTrim(char *str); | ||
char *strTrim(char *str); | ||
char *strUnquote(char *str); | ||
char *strParseToken(char *str, char *out, s32 *outCount); | ||
char *strFmt(const char *fmt, ...); | ||
char *strDuplicate(const char *str); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.