Compila en Windows. Ja no necessita OpenGL
This commit is contained in:
10
main.cpp
10
main.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user