Main > Lightguns

Removing the crosshairs in mame lightgun games

(1/3) > >>

Magnet_Eye:
I know you can hit F1 to hide the crosshairs, but can you permanently hide them instead of having to hit F1 everytime?

Howard_Casto:
Not currently... but come to think of it, it would be easy to add a command line switch in mame.  I'll look into it. :)

Magnet_Eye:

--- Quote from: Howard_Casto on April 18, 2004, 12:33:07 am ---Not currently... but come to think of it, it would be easy to add a command line switch in mame.  I'll look into it. :)

--- End quote ---


cool. let me know what you come up with.  ;)

Howard_Casto:
ok this should work, I haven't tested it yet as i'm waiting for the next official mame build before I recompile (hate dealing with diff files)

Howard_Casto:
if src/drawgfx.c:


change
===============================================
static int crosshair_enable=1;

void drawgfx_toggle_crosshair(void)
{
   crosshair_enable^=1;
}

void draw_crosshair(struct mame_bitmap *bitmap,int x,int y,const struct rectangle *clip)
{
   unsigned short black,white;
   int i;

   if (!crosshair_enable)
===============================================
to
===============================================
/* static int crosshair_enable=1; */

void drawgfx_toggle_crosshair(void)
{
   options.crosshairs^=1;
}

void draw_crosshair(struct mame_bitmap *bitmap,int x,int y,const struct rectangle *clip)
{
   unsigned short black,white;
   int i;

   if (!options.crosshairs)
================================================

 

In /src/windows/config.c:
Add

{ "crosshairs", "ch", rc_bool, &options.crosshairs, "0", 0, 0, NULL, "draw crosshairs for lightgun games" },

Navigation

[0] Message Index

[#] Next page

Go to full version