Compila en Windows. Ja no necessita OpenGL

This commit is contained in:
2016-02-18 18:45:23 +01:00
parent 4a359c46f5
commit ea9d51f78a
15 changed files with 295 additions and 60 deletions

View File

@@ -5,16 +5,24 @@
#include "modulegame.h"
#include "modulesequence.h"
#include "time.h"
#include <string>
#ifndef WIN32
#include <libgen.h>
#endif
int main( int argc, char* args[] ) {
#ifdef WIN32
JF_SetResourceFile("data.jrf");
#else
char res_file[255] = "";
strcpy(res_file, dirname(args[0]));
strcat(res_file, "/data.jrf");
printf("ARXIU DE RECURSOS: %s\n", res_file);
JF_SetResourceFile(res_file);
#endif
srand( time(NULL) );
JG_Init();