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 it rell returnpath ;ogramogramsFilesFilesationation\dir_ndir_ndir_ndir_name\".In OS X, this function returns a "Resources" subdirectory inside the application bundle. For ex, if thef the application executable path is "/Applications/MyAption.app/Contents/MacOS/MyApplication&quon", then it will returnt;/Applications/MyApplication.app/Cont/Contents/Resources/". If xecutable is not in an application bundle, it will usel use the same behavior as in Windows; that isnta_dita_dir__dir__dir_nameinameirectirectory ne the the executable.In Linux, this function will return the directory "../share/application_name/" relative to the execu, so , so if it is located in "/in&qut return &qun &qun &qusr/share/aare/aption_tion_name/""