rtengine/src/runtime/packages.c
Kevin Trogant 5a4177c4dc assetc complete "lifetime"
- Add unchanged assets to packages
- Allows re-runs without messing up the data
- Inefficient: unchanged assets need to be loaded & kept in memory
2023-12-22 00:25:27 +01:00

20 lines
359 B
C

#include <stdio.h>
#include "file_tab.h"
vy_result LoadPackageNames(void) {
FILE *f = fopen("data/packages.txt", "r");
if (!f) {
return VY_UNKNOWN_ERROR;
}
while (!feof(f)) {
char line[256];
fscanf(f, "%255s\n", line);
line[255] = '\0';
vyAddFile(line);
}
fclose(f);
return VY_SUCCESS;
}