- MacOS Bundle compilation included

This commit is contained in:
2023-01-13 17:50:29 +01:00
parent a42641653f
commit 4cf3987dc3
2 changed files with 13 additions and 0 deletions

View File

@@ -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));