Skip to content

Commit

Permalink
Resource System|Server: Server should not attempt to convert legacy s…
Browse files Browse the repository at this point in the history
…avegames

Saving in a networked game is presently disabled so there is no point
converting savegames on server side at this time.
  • Loading branch information
danij-deng committed Mar 27, 2014
1 parent 798ca3d commit f18d1fa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doomsday/client/src/resource/resourcesystem.cpp
Expand Up @@ -162,7 +162,9 @@ static detailvariantspecification_t &configureDetailTextureSpec(
#endif // __CLIENT__

DENG2_PIMPL(ResourceSystem)
#ifdef __CLIENT__
, DENG2_OBSERVES(Games, Addition) // Saved session repository population
#endif
, DENG2_OBSERVES(MaterialScheme, ManifestDefined)
, DENG2_OBSERVES(MaterialManifest, MaterialDerived)
, DENG2_OBSERVES(MaterialManifest, Deletion)
Expand Down Expand Up @@ -375,6 +377,7 @@ DENG2_PIMPL(ResourceSystem)
createFontScheme("Game");
#endif

#ifdef __CLIENT__
App_Games().audienceForAddition += this;

// Determine the root directory of the saved session repository.
Expand All @@ -388,11 +391,14 @@ DENG2_PIMPL(ResourceSystem)

// Create the user's saved game folder if it doesn't yet exist.
App::fileSystem().makeFolder("/home/savegames");
#endif
}

~Instance()
{
#ifdef __CLIENT__
App_Games().audienceForAddition -= this;
#endif

qDeleteAll(resClasses);
self.clearAllAnimGroups();
Expand Down Expand Up @@ -1911,8 +1917,6 @@ DENG2_PIMPL(ResourceSystem)
}
}

#endif // __CLIENT__

/**
* Utility for initiating a legacy savegame conversion.
*
Expand Down Expand Up @@ -2019,6 +2023,8 @@ DENG2_PIMPL(ResourceSystem)
}
}
}

#endif // __CLIENT__
};

ResourceSystem::ResourceSystem() : d(new Instance(this))
Expand Down

0 comments on commit f18d1fa

Please sign in to comment.