tomprince/gemrb — comment on commit 4a826879ef513376dd7997db0500841e3a8c6410
File: gemrb/core/Interface.cpp line 1626
By tomprince:

You probably want something like ExtractFileFromPath here.