예제 #1
0
 void loopIteration()
 {
     /// @todo Refactor: TaskPool has a signal (or audience) when all tasks are complete.
     /// No need to check on every loop iteration.
     if (convertSavegameTasks.isDone())
     {
         LOG_AS("SaveGames");
         Loop::get().audienceForIteration() -= this;
         try
         {
             // The newly converted savegame(s) should now be somewhere in /home/savegames
             FileSystem::get().root().locate<Folder>("/home/savegames").populate();
         }
         catch (Folder::NotFoundError const &)
         {} // Ignore.
     }
 }
예제 #2
0
 bool isRewrapping() const
 {
     return !rewrapPool.isDone();
 }