This commit is contained in:
Brian Matzon 2005-05-29 22:16:56 +00:00
parent 05c762be22
commit fd36f96df9
1 changed files with 6 additions and 0 deletions

View File

@ -441,6 +441,12 @@ public class IL {
public static native boolean ilSaveData(String FileName);
/**
* Determines the IL type for file passed
*
* @param filename File to determine type for
* @return IL type, or IL_TYPE_UNKNOWN if undeterminable
*/
public static int getILType(String filename) {
int index = filename.lastIndexOf('.');
if (index != -1) {