diff options
Diffstat (limited to 'apps/plugins/sokoban.c')
-rw-r--r-- | apps/plugins/sokoban.c | 57 |
1 files changed, 4 insertions, 53 deletions
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c index 62812e0237..3cc1555e83 100644 --- a/apps/plugins/sokoban.c +++ b/apps/plugins/sokoban.c | |||
@@ -64,11 +64,7 @@ | |||
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | /* size of code+bss */ | 66 | /* size of code+bss */ |
67 | #if CONFIG_CPU == SH7034 | ||
68 | #define CODE_SIZE 0x3000 /* 12k */ | ||
69 | #else | ||
70 | #define CODE_SIZE 0x5000 /* 20k */ | 67 | #define CODE_SIZE 0x5000 /* 20k */ |
71 | #endif | ||
72 | 68 | ||
73 | #define CODE_AND_UNDO_SIZE (CODE_SIZE+0x1000) /* + 4k */ | 69 | #define CODE_AND_UNDO_SIZE (CODE_SIZE+0x1000) /* + 4k */ |
74 | 70 | ||
@@ -104,39 +100,8 @@ | |||
104 | #define SOKOBAN_MOVE_MIN SOKOBAN_MOVE_DOWN | 100 | #define SOKOBAN_MOVE_MIN SOKOBAN_MOVE_DOWN |
105 | 101 | ||
106 | /* variable button definitions */ | 102 | /* variable button definitions */ |
107 | #if (CONFIG_KEYPAD == RECORDER_PAD) | 103 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ |
108 | #define SOKOBAN_LEFT BUTTON_LEFT | 104 | (CONFIG_KEYPAD == IRIVER_H300_PAD) |
109 | #define SOKOBAN_RIGHT BUTTON_RIGHT | ||
110 | #define SOKOBAN_UP BUTTON_UP | ||
111 | #define SOKOBAN_DOWN BUTTON_DOWN | ||
112 | #define SOKOBAN_MENU BUTTON_OFF | ||
113 | #define SOKOBAN_UNDO BUTTON_ON | ||
114 | #define SOKOBAN_REDO BUTTON_PLAY | ||
115 | #define SOKOBAN_LEVEL_DOWN BUTTON_F1 | ||
116 | #define SOKOBAN_LEVEL_REPEAT BUTTON_F2 | ||
117 | #define SOKOBAN_LEVEL_UP BUTTON_F3 | ||
118 | #define SOKOBAN_PAUSE BUTTON_PLAY | ||
119 | #define BUTTON_SAVE BUTTON_ON | ||
120 | #define BUTTON_SAVE_NAME "ON" | ||
121 | |||
122 | #elif CONFIG_KEYPAD == ONDIO_PAD | ||
123 | #define SOKOBAN_LEFT BUTTON_LEFT | ||
124 | #define SOKOBAN_RIGHT BUTTON_RIGHT | ||
125 | #define SOKOBAN_UP BUTTON_UP | ||
126 | #define SOKOBAN_DOWN BUTTON_DOWN | ||
127 | #define SOKOBAN_MENU BUTTON_OFF | ||
128 | #define SOKOBAN_UNDO_PRE BUTTON_MENU | ||
129 | #define SOKOBAN_UNDO (BUTTON_MENU | BUTTON_REL) | ||
130 | #define SOKOBAN_REDO (BUTTON_MENU | BUTTON_DOWN) | ||
131 | #define SOKOBAN_LEVEL_DOWN (BUTTON_MENU | BUTTON_LEFT) | ||
132 | #define SOKOBAN_LEVEL_REPEAT (BUTTON_MENU | BUTTON_UP) | ||
133 | #define SOKOBAN_LEVEL_UP (BUTTON_MENU | BUTTON_RIGHT) | ||
134 | #define SOKOBAN_PAUSE BUTTON_MENU | ||
135 | #define BUTTON_SAVE BUTTON_MENU | ||
136 | #define BUTTON_SAVE_NAME "MENU" | ||
137 | |||
138 | #elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ | ||
139 | (CONFIG_KEYPAD == IRIVER_H300_PAD) | ||
140 | #define SOKOBAN_LEFT BUTTON_LEFT | 105 | #define SOKOBAN_LEFT BUTTON_LEFT |
141 | #define SOKOBAN_RIGHT BUTTON_RIGHT | 106 | #define SOKOBAN_RIGHT BUTTON_RIGHT |
142 | #define SOKOBAN_UP BUTTON_UP | 107 | #define SOKOBAN_UP BUTTON_UP |
@@ -1642,22 +1607,8 @@ static int sokoban_menu(void) | |||
1642 | rb->screens[i]->clear_display(); | 1607 | rb->screens[i]->clear_display(); |
1643 | rb->lcd_setfont(SOKOBAN_FONT); | 1608 | rb->lcd_setfont(SOKOBAN_FONT); |
1644 | 1609 | ||
1645 | #if (CONFIG_KEYPAD == RECORDER_PAD) | 1610 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ |
1646 | rb->lcd_putsxy(3, 6, "[OFF] Menu"); | 1611 | (CONFIG_KEYPAD == IRIVER_H300_PAD) |
1647 | rb->lcd_putsxy(3, 16, "[ON] Undo"); | ||
1648 | rb->lcd_putsxy(3, 26, "[PLAY] Redo"); | ||
1649 | rb->lcd_putsxy(3, 36, "[F1] Down a Level"); | ||
1650 | rb->lcd_putsxy(3, 46, "[F2] Restart Level"); | ||
1651 | rb->lcd_putsxy(3, 56, "[F3] Up a Level"); | ||
1652 | #elif CONFIG_KEYPAD == ONDIO_PAD | ||
1653 | rb->lcd_putsxy(3, 6, "[OFF] Menu"); | ||
1654 | rb->lcd_putsxy(3, 16, "[MODE] Undo"); | ||
1655 | rb->lcd_putsxy(3, 26, "[MODE+DOWN] Redo"); | ||
1656 | rb->lcd_putsxy(3, 36, "[MODE+LEFT] Previous Level"); | ||
1657 | rb->lcd_putsxy(3, 46, "[MODE+UP] Restart Level"); | ||
1658 | rb->lcd_putsxy(3, 56, "[MODE+RIGHT] Up Level"); | ||
1659 | #elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ | ||
1660 | (CONFIG_KEYPAD == IRIVER_H300_PAD) | ||
1661 | rb->lcd_putsxy(3, 6, "[STOP] Menu"); | 1612 | rb->lcd_putsxy(3, 6, "[STOP] Menu"); |
1662 | rb->lcd_putsxy(3, 16, "[REC] Undo"); | 1613 | rb->lcd_putsxy(3, 16, "[REC] Undo"); |
1663 | rb->lcd_putsxy(3, 26, "[MODE] Redo"); | 1614 | rb->lcd_putsxy(3, 26, "[MODE] Redo"); |