예제 #1
0
 void beginConvertLegacySavegame(String const &sourcePath, String const &gameId)
 {
     LOG_AS("SaveGames");
     LOG_TRACE("Scheduling legacy savegame conversion for %s (gameId:%s)") << sourcePath << gameId;
     Loop::get().audienceForIteration() += this;
     convertSavegameTasks.start(new ConvertSavegameTask(sourcePath, gameId));
 }
예제 #2
0
    void rewrapCache()
    {
        if(cache.isEmpty()) return;

        if(isRewrapping())
        {
            // Cancel an existing rewrap.
            cancelRewrap++;
        }

        // Start a rewrapping task that goes through all the existing entries,
        // starting from the latest entry.
        rewrapPool.start(new RewrapTask(this, cache.size() - 1, contentWidth()));
    }