Added packaging functionality, added packaged exe support to filesystem

Adds package.c and package.h. Adds support for the `--pack` argument for
packing a project directory into an exe or tar file.
This commit is contained in:
rxi
2016-10-01 00:35:22 +01:00
parent 0506b3b0ca
commit cb61fa1ecd
4 changed files with 310 additions and 6 deletions

View File

@@ -19,6 +19,7 @@
#include "mouse.h"
#include "image.h"
#include "palette.h"
#include "package.h"
static lua_State *L;
@@ -45,6 +46,11 @@ int luaopen_love(lua_State *L);
int main(int argc, char **argv) {
/* Handle package command */
if ( package_run(argc, argv) == PACKAGE_ESUCCESS ) {
exit(EXIT_SUCCESS);
}
/* Init everything */
atexit(deinit);
vga_init();