Jump to content
(Open Beta) HyperSpin 2 is now available for everyone ×

Mame compile Question


Recommended Posts

Posted

good morning, I have a question with the mame source code

do you know where the file in mame src for the no nag line to edit

I tried to patch with HeadKaze compiler but it just gives me a note

missing header for unified diff at line 4 of patch can't find file to patch at input line 4 

any idea why this is happening? 

 

Posted

I use my own patch. Simply edit ui.cpp, search for warn, and delete (comment out) the str two lines above that, and the if statement two lines below that. See included example.

ui.cpp

Posted

Nate67A000, No uso ese compilador, Siempre edito algunas lineas . 

Código fuente de Mame >> SRC >> M

 MODIFICACIÓN DE LA PANTALLAS DE INICIO

 ELIMINACIÓN DE MENSAJES EMERGENTES
 MODIFICACIÓN DEL MENSAJE DE EXCEPCIONES
 MODIFICACIÓN DEL RENDER

RUTA DEL ARCHIVO
mame/src/frontend/mame/ui/ui.cpp

Creo que esto ya lo sabes.?

RUTA DEL ARCHIVO
mame/src/emu/render.cpp

BUSCAR ESTAS LINEAS

render_primitive *prim = list.alloc(render_primitive::QUAD);

MODIFICACIONES EL SOURCE
*NOTA: (MOD_1) , (MOD_2) NO DEBEN ESTAR EN LOS CAMBIOS SOLO ES PARA QUE VEAN DONDE ESTÁN UBICADOS LOS CAMBIOS CIRCUNFERENCIALMENTE..

(MOD_1)
ADICIONAR UNA BARRA INCLINADA (/) Y ASTERISCO(*) ANTES DEL TEXTO "render_primitive"

(MOD_2)
ADICIONAR UN ASTERISCO (*) Y BARRA INCLINADA (/) DESPUÉS DE LA PENÚLTIMA LLAVE CURVA "}".

LINEAS MODIFICADAS DEL SOURCE

(MOD_1)
/*render_primitive *prim = list.alloc(render_primitive::QUAD);
set_render_bounds_xy(&prim->bounds, 0.0f, 0.0f, (float)m_width,
(float)m_height);
set_render_color(&prim->color, 1.0f, 1.0f, 1.0f, 1.0f);
prim->texture.base = nullptr;
prim->flags = PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA);
list.append(*prim);
if (m_width > 1 && m_height > 1)
{
prim = list.alloc(render_primitive::QUAD);
set_render_bounds_xy(&prim->bounds, 1.0f, 1.0f, (float)
(m_width - 1), (float)(m_height - 1));
set_render_color(&prim->color, 1.0f, 0.0f, 0.0f, 0.0f);
prim->texture.base = nullptr;
prim->flags = PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA);
list.append(*prim);
}*/ (MOD_2)
}

Posted
1 hour ago, nate67000 said:

 Gracias por una rápida respuesta 

Le voy a dar una oportunidad 

Gracias

 

Prueba y error por suerte hoy estaré todo el día conectado me avisas.

Posted

OK, I don't think I understand the process I know how to comment out a line

but, I'm not sure were to start to add a line to patch in render.cpp or ui.cpp

I want to have the option to turn on and off the nag screen 

I guess i got some learning to do.

Thank you for your help

 

 

 

 

Posted

 Thank you For a quick response 

I will give that a try 

Thank you

 

Do u have this tutorial in english 

Its hard to understand everything that is going 

Thank you for the video.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...