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 Application\MyApp.exe", then ll rell returnpath ;ogramogramsFilesFilesationation\dir_ndir_ndir_ndir_name\".In OS X, this function returns a "Resources" subdirectory inside the application bundle Forple, if thef the application executable path is "/Applications/Mication.app/Contents/MacOS/MyApplication&quon", then it will retquot;/Applications/MyApplication.app/Cont/Contents/Resources/". e executable is not in an application bundle, it will usel use the same behavior as in Windows; that isir_nair_namr_namr_nameiremeirectory nory ne the execuexecutable.able.In Linux, this function will return the directory "../share/application_name/" relative to the exble, so , so if it is located in "/in&qut return turn &qrn &qusr/share/aare/aption_tion_name/""