All Classes |Grouped Classes |Index

Function get_resourcedata

Returns the application resource data directory.

	static CL_String CL_Directory::get_resourcedata(
		const CL_StringRef & application_name,
		const CL_StringRef & data_dir_name = "Resources");

Detailed description:

In Windows, this function returns a data_dir_name subdirectory located at the executable. If the executable path is "C:\Program Files\My Aption\MyApp.exe", then it will rell returnpath ;ogramogramoFileoFilespplicpplicaplication\dir_ndir_name\".In OS X, this function returns a "Resources" subdirectoside pplication bundle. For For example, if thef the application executable path is "/Applications/MyApplication.app/Contents/MacOS/lication&quon", then it will return "/Applications/MyApplic.app/Contents/Resources/". If thIf the executable is not in an applic bundle, it wilt will use the same behavior as in Windows; that isctirectory nory nory ne thee thee the the exec exec executablutable.In Linux, this function will return the directory "../share/application_namot; relative to the executable, so , so if it is located in "/in&qut retu retuusr/susr/share/aptionption_name/name/&que/""