Results 1 to 5 of 5
Thread: [PluginSDK] getResourcesPath
-
30-06-2012, 13:57 #1
-= TeamSpeak Fanatic =-
- 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.
-
02-07-2012, 07:52 #2
-= TeamSpeak Team =-
- 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.
-
02-07-2012, 17:44 #3
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 2,038
Apple and its weirdo stuff :/
Thanks for the info though
-
22-10-2012, 22:14 #4
-= TeamSpeak Lover =-
- 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.
-
23-10-2012, 01:34 #5
-= TeamSpeak Addict =-
- 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
-
[PluginSDK] onClientIDsFinishedEvent
By SilentStorm in forum Suggestions and FeedbackReplies: 0Last Post: 26-06-2012, 16:22 -
[PluginSDK] requestMessageUpdateFlag
By SilentStorm in forum Suggestions and FeedbackReplies: 0Last Post: 29-05-2012, 21:31 -
PluginSDK requestClientIDFromUID
By SilentStorm in forum Suggestions and FeedbackReplies: 1Last Post: 30-01-2012, 07:36 -
[Resolved] [PLUGINSDK] public_errors_rare.h
By kubax in forum PluginsReplies: 4Last Post: 16-09-2011, 14:52 -
pluginSDK onChannelSubscribeFinishedEvent
By SilentStorm in forum Suggestions and FeedbackReplies: 0Last Post: 19-11-2010, 17:06


Reply With Quote