Minor changes in file type handling

This commit is contained in:
Eduardo Bart
2013-01-27 23:23:53 -02:00
parent 4536c68f00
commit 773837da98
18 changed files with 43 additions and 50 deletions

View File

@@ -38,7 +38,7 @@ void Mouse::terminate()
void Mouse::loadCursors(std::string filename)
{
filename = g_resources.guessFileType(filename, "otml");
filename = g_resources.guessFilePath(filename, "otml");
try {
OTMLDocumentPtr doc = OTMLDocument::parse(filename);
OTMLNodePtr cursorsNode = doc->at("Cursors");