Ignore:
Timestamp:
Jul 18, 2008, 4:54:11 AM (13 years ago)
Author:
livings124
Message:

the mac app now includes and works with the web ui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r6338 r6355  
    3333  #include <shlobj.h> /* for CSIDL_APPDATA, CSIDL_PROFILE */
    3434#else
     35  #ifdef SYS_DARWIN
     36    #include <CoreFoundation/CoreFoundation.h>
     37  #endif
     38   
    3539  #define _XOPEN_SOURCE 500 /* needed for recursive locks. */
    3640  #ifndef __USE_UNIX98
     
    541545        {
    542546#ifdef SYS_DARWIN
    543 
    544             #warning hey BentMyWookie can this be implemented here without passing anything into initFull()
     547           
     548            CFURLRef appURL = CFBundleCopyBundleURL( CFBundleGetMainBundle() );
     549            CFStringRef appRef = CFURLCopyPath( appURL );
     550            const char * appString = CFStringGetCStringPtr( appRef, CFStringGetFastestEncoding( appRef ) );
     551           
     552            /*CFURLRef resourcesDirURL = CFBundleCopyResourcesDirectoryURL( CFBundleGetMainBundle() );
     553            CFStringRef resourcesDirRef = CFURLCopyPath( resourcesDirURL );
     554            const char * resourcesDirString = CFStringGetCStringPtr( resourcesDirRef, CFStringGetFastestEncoding( resourcesDirRef ) );*/
     555           
     556            sprintf( path, "%s%s", appString, "Contents/Resources/web" );
    545557
    546558#elif defined(WIN32)
Note: See TracChangeset for help on using the changeset viewer.