Results 1 to 10 of 11

Thread: FPC + Mac file handling

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Quote Originally Posted by dazappa
    While ZenGL doesn't complain about whether or not it can find the other resources (which are loaded before this map file is opened)
    Emm... You can get path to YourApp.app/ via zgl_Get and constant DIRECTORY_APP(see demo01). ZenGL by itself will look for resources in YourApp.app/Contents/Resources/, if you set relative paths for textures/etc.

    Quote Originally Posted by dazappa
    If I specify a full path to the file, it will run happily, but I would much prefer relative paths for actual distribution.
    You can try to use Chdir with path to YourApp.app, but I don't remember if it works. Also you can try to use ZenGL file_* functions
    Last edited by Andru; 18-04-2011 at 03:23 PM.

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
  •