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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user