- MacOS Bundle compilation included
This commit is contained in:
10
mini.cpp
10
mini.cpp
@@ -5,6 +5,10 @@
|
||||
#include "gif.c"
|
||||
#include "SDL2/SDL_mixer.h"
|
||||
|
||||
#ifdef MACOS_BUNDLE
|
||||
#include <libgen.h>
|
||||
#endif
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
struct surface_t {
|
||||
@@ -213,6 +217,12 @@ int main(int argc,char*argv[]){
|
||||
bi += 5;
|
||||
}
|
||||
|
||||
#ifdef MACOS_BUNDLE
|
||||
char res_file[255] = "";
|
||||
strcpy(res_file, dirname(argv[0]));
|
||||
strcat(res_file, "/../Resources/data.jrf");
|
||||
file_setresourcefilename(res_file);
|
||||
#endif
|
||||
read_ini();
|
||||
setdest(newsurf(screen_width, screen_height));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user