private void _events_GamePostLoad()
{
Game game = Factory.AGSEditor.CurrentGame;
// Convert absolute paths to relative paths. This is an automatic fixup from when the
// editor stored absolute paths only
foreach (Sprite sprite in game.RootSpriteFolder.GetAllSpritesFromAllSubFolders())
{
sprite.SourceFile = Utilities.GetRelativeToProjectPath(sprite.SourceFile);
}
foreach (Types.Font font in game.Fonts)
{
font.SourceFilename = Utilities.GetRelativeToProjectPath(font.SourceFilename);
}
foreach (AudioClip audio in game.RootAudioClipFolder.GetAllAudioClipsFromAllSubFolders())
{
audio.SourceFileName = Utilities.GetRelativeToProjectPath(audio.SourceFileName);
}
}