Results 1 to 10 of 11

Thread: FPC + Mac file handling

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Ah... But wouldnt that be the folder where the bin file is? Just like in Win and Linux?
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  2. #2
    Try to see if the .app isn't in reality a symbolic link

    You should never assume starting directory on any platform
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  3. #3
    Quote Originally Posted by code_glitch
    Ah... But wouldnt that be the folder where the bin file is? Just like in Win and Linux?
    Yes, it's just a folder, but you can't work with files using relative paths

  4. #4
    Quote Originally Posted by code_glitch View Post
    You wouldnt be using a \ for folders coming from the winows world would you? a \ on unix like systems is an 'ignore next character' type thing... I would double check that they are all / . I had a very similar problem when I first moved to linux
    Nope, you can see in my Tutorial source I use "map_csv.tmx" and the only thing else I tried was "./map_csv.tmx"
    Quote Originally Posted by JSoftware View Post
    Try to see if the .app isn't in reality a symbolic link

    You should never assume starting directory on any platform
    The default way Lazarus produces apps under OS X is a bit strange, but no that was not the problem I had to create the package myself though.

    What Andru suggested (using a ZenGL function to get a var DIRECTORY_APP) has worked for me in this instance, at least. (Nice of you to include that!)

    Victory!

    As you can see, things are just a tad slow in the VM, and with no hardware acceleration it goes even slower. (It's a nice touch having a software renderer in this instance though) But, the good news is now I can compile to Win/Lin/Mac with a little effort. I only have one other project I'm working on aside from my Isolated Empire remake and port to ZenGL, so I'll post about that in a few weeks most likely.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •