diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 17:13:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-17 17:13:24 +0300 |
commit | a0a1fc89387f0f1396b5e4320c2dd4a6fedd1c25 (patch) | |
tree | bc5afe62e3b23d19cf5dbe21ee9e87839a88827d /source/gameengine | |
parent | 6453814ec033feb4549a9d565efc4ac968b2ac13 (diff) |
Cleanup: BLI path extension API
Use BLI_path_extension_* prefix.
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Ketsji/KX_PythonInit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp index 5540aad7a3f..8870224da83 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.cpp +++ b/source/gameengine/Ketsji/KX_PythonInit.cpp @@ -650,7 +650,7 @@ static PyObject *gPyGetBlendFileList(PyObject *, PyObject *args) } while ((dirp = readdir(dp)) != NULL) { - if (BLI_testextensie(dirp->d_name, ".blend")) { + if (BLI_path_extension_check(dirp->d_name, ".blend")) { value = PyC_UnicodeFromByte(dirp->d_name); PyList_Append(list, value); Py_DECREF(value); @@ -2926,7 +2926,7 @@ void pathGamePythonConfig(char *path) BLI_strncpy(path, gp_GamePythonPathOrig, sizeof(gp_GamePythonPathOrig)); /* replace extension */ - if (BLI_testextensie(path, ".blend")) { + if (BLI_path_extension_check(path, ".blend")) { strcpy(path+(len-6), ".bgeconf"); } else { strcpy(path+len, ".bgeconf"); |