Mac os X port. Compiles and runs slowly

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@256 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-10-14 20:42:05 +00:00
parent 0794f573cb
commit 584c4696c1
10 changed files with 157 additions and 3 deletions

14
init.c
View File

@@ -52,10 +52,22 @@
#endif
#endif
#ifdef __macosx__
#import <corefoundation/corefoundation.h>
#import <sys/param.h>
#endif
// Chercher le répertoire contenant GFX2.EXE
void Chercher_repertoire_du_programme(char * Chaine)
{
Extraire_chemin(Repertoire_du_programme, Chaine);
#ifdef __macosx__
CFURLRef url = CFBundleCopyBundleURL(CFBundleGetMainBundle());
CFURLGetFileSystemRepresentation(url,true,(UInt8*)Repertoire_du_programme,MAXPATHLEN);
CFRelease(url);
strcat(Repertoire_du_programme,"Contents/Resources");
#else
Extraire_chemin(Repertoire_du_programme, Chaine);
#endif
}