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 will rell returnpath "ogramogram Filespplicpplicaplication\dir_ndir_name\".In OS X, this function returns a "Resources" subdirectory inside the applin bunFor For example, if thef the application executable path is "/Aations/MyApplication.app/Contents/MacOS/MyApplication&quon", thewill return "/Applications/MyApplication.app/Cont/Contents/Resou". ot;. If the executable is not in an application bundle, it will use the same behavior as in Windows; that ismeirectirectory tory tory ne the exee exee executabcutabcutable.able.In Linux, this function will return the directory "../share/application_name/" relative t executable, so , so if it is located in "/in&qut retu return &qrn &qusr/share/aare/aption_tion_name/""