diff --git a/doomsday/client/include/resource/savegameconverter.h b/doomsday/client/include/resource/savegameconverter.h index 093ea40d7b..92f2bf919e 100644 --- a/doomsday/client/include/resource/savegameconverter.h +++ b/doomsday/client/include/resource/savegameconverter.h @@ -30,6 +30,9 @@ namespace de { * @param inputFilePath Path to the savegame file to be converted. * @param session SavedSession to update if conversion is successful. * + * @return @c true if conversion completed successfully. Note that this is not a + * guarantee that the given @a session is now loadable, however. + * * @ingroup resource */ bool convertSavegame(de::Path inputFilePath, de::game::SavedSession &session); diff --git a/doomsday/client/src/resource/savegameconverter.cpp b/doomsday/client/src/resource/savegameconverter.cpp index b1c174095a..4bce233807 100644 --- a/doomsday/client/src/resource/savegameconverter.cpp +++ b/doomsday/client/src/resource/savegameconverter.cpp @@ -20,6 +20,7 @@ #include "resource/savegameconverter.h" #include "dd_main.h" +#include #include #include #include @@ -34,15 +35,15 @@ static void tryConversion(Path const &inputFilePath, Path const &outputFilePath) Str_Set(Str_InitStd(&parm.inputFilePath), NativePath(inputFilePath).expand().asText().toUtf8().constData()); Str_Set(Str_InitStd(&parm.outputFilePath), NativePath(outputFilePath).expand().asText().toUtf8().constData()); - // Try to converter the savegame via each plugin in turn. + // Try to convert the savegame via each plugin in turn. dd_bool success = DD_CallHooks(HOOK_MAP_CONVERT, 0, &parm); Str_Free(&parm.inputFilePath); - Str_Free(&parm.inputFilePath); + Str_Free(&parm.outputFilePath); if(!success) { - /// @throw Error Seemingly no converter was able to fulfill our request. + /// @throw Error Seemingly no plugin was able to fulfill our request. throw Error("SavegameConverter", "Savegame file format was not recognized"); } }