[Sugar-devel] [PATCH] Maze: fix to make activity start again

Rafael Ortiz rafael at activitycentral.com
Thu Sep 1 17:07:22 EDT 2011


On Wed, Aug 31, 2011 at 7:00 PM, Manuel Quiñones <manuq at laptop.org> wrote:

> The game_name attribute of PyGameActivity seems to be changed
> accidentally from 'game' to 'maze'.  As the docstring of
> PyGameActivity class states, game_name needs to match the name of a
> module that contains the game loop in a function called main.
>
> TIP: please test at least if the activity start before commit :)
>
> Signed-off-by: Manuel Quiñones <manuq at laptop.org>
> ---
>  activity.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/activity.py b/activity.py
> index dbf6940..f21efdd 100755
> --- a/activity.py
> +++ b/activity.py
> @@ -4,6 +4,6 @@ from gettext import gettext as _
>
>
>  class MazeActivity(olpcgames.PyGameActivity):
> -    game_name = 'maze'
> +    game_name = 'game'
>     game_title = _('Maze')
>     game_size = None    # let olpcgames pick a nice size for us
> --
> 1.7.4.4
>
> Thanks manu for looking into this.

pushed as:

http://git.sugarlabs.org/maze/mainline/commit/a79312b22f5701fd804b711157ff3ac0bcfb0515

Just tested this in an xo 1.75, will be in next release.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110901/effff0e4/attachment.html>


More information about the Sugar-devel mailing list