Fixed DynOS saving/loading with spaces in pack name

This commit is contained in:
MysterD 2022-03-31 00:21:48 -07:00
parent 6a384a3039
commit 36c1d52e1f

View file

@ -256,7 +256,7 @@ static void ban_write(FILE* file) {
}
}
static void dynos_pack_read(char** tokens, UNUSED int numTokens) {
static void dynos_pack_read(char** tokens, int numTokens) {
if (numTokens < 3) { return; }
char fullPackName[256] = { 0 };
for (int i = 1; i < numTokens-1; i++) {
@ -389,7 +389,7 @@ void configfile_load(const char *filename) {
// Go through each line in the file
while ((line = read_file_line(file)) != NULL) {
char *p = line;
char *tokens[1 + MAX_BINDS];
char *tokens[20];
int numTokens;
// skip whitespace