diff options
-rw-r--r-- | apps/plugins/pacbox/arcade.c | 14 | ||||
-rw-r--r-- | apps/plugins/pacbox/arcade.h | 3 |
2 files changed, 10 insertions, 7 deletions
diff --git a/apps/plugins/pacbox/arcade.c b/apps/plugins/pacbox/arcade.c index bd108c75aa..426a81d487 100644 --- a/apps/plugins/pacbox/arcade.c +++ b/apps/plugins/pacbox/arcade.c | |||
@@ -45,7 +45,7 @@ static fb_data rgb_to_gray(unsigned int r, unsigned int g, unsigned int b) | |||
45 | } | 45 | } |
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | unsigned char color_data_[256] = { | 48 | static unsigned char color_data_[256] = { |
49 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x01, | 49 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x01, |
50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x03, | 50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x03, |
51 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x05, | 51 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x05, |
@@ -80,7 +80,7 @@ unsigned char color_data_[256] = { | |||
80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | 80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 |
81 | }; | 81 | }; |
82 | 82 | ||
83 | unsigned char palette_data_[0x20] = { | 83 | static unsigned char palette_data_[0x20] = { |
84 | 0x00, 0x07, 0x66, 0xef, 0x00, 0xf8, 0xea, 0x6f, | 84 | 0x00, 0x07, 0x66, 0xef, 0x00, 0xf8, 0xea, 0x6f, |
85 | 0x00, 0x3f, 0x00, 0xc9, 0x38, 0xaa, 0xaf, 0xf6, | 85 | 0x00, 0x3f, 0x00, 0xc9, 0x38, 0xaa, 0xaf, 0xf6, |
86 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 86 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
@@ -238,7 +238,7 @@ int run(void) | |||
238 | } | 238 | } |
239 | 239 | ||
240 | /** Returns the status of the coin lockout door. */ | 240 | /** Returns the status of the coin lockout door. */ |
241 | unsigned char getCoinLockout(void) { | 241 | static unsigned char getCoinLockout(void) { |
242 | return output_devices_ & CoinLockout ? 1 : 0; | 242 | return output_devices_ & CoinLockout ? 1 : 0; |
243 | } | 243 | } |
244 | 244 | ||
@@ -355,7 +355,7 @@ void decodeROMs(void) | |||
355 | #endif | 355 | #endif |
356 | } | 356 | } |
357 | 357 | ||
358 | void getDeviceInfo( enum InputDevice device, unsigned char * mask, unsigned char ** port ) | 358 | static void getDeviceInfo( enum InputDevice device, unsigned char * mask, unsigned char ** port ) |
359 | { | 359 | { |
360 | static unsigned char MaskInfo[] = { | 360 | static unsigned char MaskInfo[] = { |
361 | 0x01 , // Joy1_Up | 361 | 0x01 , // Joy1_Up |
@@ -405,7 +405,7 @@ void getDeviceInfo( enum InputDevice device, unsigned char * mask, unsigned char | |||
405 | } | 405 | } |
406 | } | 406 | } |
407 | 407 | ||
408 | enum InputDeviceMode getDeviceMode( enum InputDevice device ) | 408 | static enum InputDeviceMode getDeviceMode( enum InputDevice device ) |
409 | { | 409 | { |
410 | unsigned char mask; | 410 | unsigned char mask; |
411 | unsigned char * port; | 411 | unsigned char * port; |
@@ -500,7 +500,7 @@ static inline void drawChar( unsigned char * buffer, int index, int ox, int oy, | |||
500 | } | 500 | } |
501 | #endif | 501 | #endif |
502 | 502 | ||
503 | inline void drawSprite( unsigned char * buffer, int index ) | 503 | static inline void drawSprite( unsigned char * buffer, int index ) |
504 | { | 504 | { |
505 | struct PacmanSprite ps = sprites_[index]; | 505 | struct PacmanSprite ps = sprites_[index]; |
506 | int x,y; | 506 | int x,y; |
@@ -654,6 +654,7 @@ void playSound( int16_t * buf, int len ) | |||
654 | } | 654 | } |
655 | 655 | ||
656 | /* Enables/disables the speed hack. */ | 656 | /* Enables/disables the speed hack. */ |
657 | /* rockbox: not used | ||
657 | int setSpeedHack( int enabled ) | 658 | int setSpeedHack( int enabled ) |
658 | { | 659 | { |
659 | int result = 0; | 660 | int result = 0; |
@@ -679,3 +680,4 @@ int setSpeedHack( int enabled ) | |||
679 | 680 | ||
680 | return result; | 681 | return result; |
681 | } | 682 | } |
683 | */ | ||
diff --git a/apps/plugins/pacbox/arcade.h b/apps/plugins/pacbox/arcade.h index 33f79e1d53..4207d2c7ce 100644 --- a/apps/plugins/pacbox/arcade.h +++ b/apps/plugins/pacbox/arcade.h | |||
@@ -189,8 +189,9 @@ void renderSprites( unsigned char * buffer ); | |||
189 | @return 0 if successful, otherwise the patch could not be applied | 189 | @return 0 if successful, otherwise the patch could not be applied |
190 | (probably because the loaded ROM set does not support it) | 190 | (probably because the loaded ROM set does not support it) |
191 | */ | 191 | */ |
192 | /* rockbox: not used | ||
192 | int setSpeedHack( int enabled ); | 193 | int setSpeedHack( int enabled ); |
193 | 194 | */ | |
194 | /* Implementation of the Z80 Environment interface */ | 195 | /* Implementation of the Z80 Environment interface */ |
195 | unsigned char readByteHigh( unsigned addr ); | 196 | unsigned char readByteHigh( unsigned addr ); |
196 | 197 | ||