Begin refactor.

This commit is contained in:
YourWishes committed 2021-09-18 23:13:05 -07:00
1 parent df53c646a2
commit 2b7446b818
143 files changed
+1706 -2345

No files matched your search

+23
View File
@@ -11,6 +11,29 @@
#include "../file/asset.h"
#include "../file/csv.h"
/** Column name for the KEY within the CSV */
#define LANGUAGE_HEADER_KEY "Key"
/** Column name for the VALUE within the CSV */
#define LANGUAGE_HEADER_VALUE "Value"
/** Definition for a Language */
typedef struct {
/** The buffer to read the asset from. */
assetbuffer_t *asset;
/** CSV Row for the header */
csvrow_t header;
/** The index in the header row that the key column is in. */
int32_t headerIndexKey;
/** The index in the header row that the value column is in. */
int32_t headerIndexValue;
} language_t;
typedef struct {
language_t *language;
csvrow_t *row;
char *key;
} languagecsvget_t;
/**
* Initializes a language.
* @param language Language to initialize.