Community Forums Today's Posts     Member List     Archive    
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,038

    [PluginSDK] getResourcesPath

    The Function is currently redundant as it gives the same result as getAppPath. Whatever it is supposed to return (Path the Client loads Resources like Images from maybe?) it doesn't do it right now.

  2. #2
    Join Date
    Jun 2008
    Location
    Krün, Germany
    Posts
    464
    On Mac OS X getResourcesPath returns a different location than getAppPath. On Windows and Linux they are indeed the same. However, if you want to get the path to gfx, sound etc., you should use getResourcesPath else things won't be found on Mac.

    Reason is the different file structure of a Mac application bundle, compared to Windows/Linux.

    Windows structure is:
    getAppPath() => <install_root>\ts3client_win32.exe
    getResourcesPath() => <install_root>\gfx (sound etc.)
    (same on Linux)

    Mac structure is:
    getAppPath() => <app_bundle_root>/MacOS/ts3client_mac
    getResourcesPath() => <app_bundle_root>/SharedSupport/gfx (sound etc.)

    As you can see, trying to find the e.g. gfx dir with getAppPath() on Mac will fail.

  3. #3
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,038
    Apple and its weirdo stuff :/

    Thanks for the info though

  4. #4
    Join Date
    Jan 2010
    Location
    Phoenix, AZ
    Posts
    85
    Is there a teamspeak lua function that will tell me where my config files are installed ?

    Shouldn't the resource path return the location of where the config file are located ?
    >>> C:\Documents and Settings\username\Application Data\TS3Client

    I have a lua script backing up my config files, but right now it only works if my config directory is installed in the same directory ts is installed.

  5. #5
    Join Date
    Oct 2012
    Location
    Germany
    Posts
    123
    That should be ts3.getConfigPath().

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [PluginSDK] onClientIDsFinishedEvent
    By SilentStorm in forum Suggestions and Feedback
    Replies: 0
    Last Post: 26-06-2012, 16:22
  2. [PluginSDK] requestMessageUpdateFlag
    By SilentStorm in forum Suggestions and Feedback
    Replies: 0
    Last Post: 29-05-2012, 21:31
  3. PluginSDK requestClientIDFromUID
    By SilentStorm in forum Suggestions and Feedback
    Replies: 1
    Last Post: 30-01-2012, 07:36
  4. [Resolved] [PLUGINSDK] public_errors_rare.h
    By kubax in forum Plugins
    Replies: 4
    Last Post: 16-09-2011, 14:52
  5. pluginSDK onChannelSubscribeFinishedEvent
    By SilentStorm in forum Suggestions and Feedback
    Replies: 0
    Last Post: 19-11-2010, 17:06

Posting Permissions

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