The NEW Build Your Own Arcade Controls
Main => Software Forum => Topic started by: bionictoothpick on April 02, 2016, 01:50:16 pm
-
This code worked on rendlay.c, but with the move to rendlay.cpp it no longer works.
// Tapule & LordHiryu mod ----------------------------------------------------------
+ // Use %dfX as file name to let the layout use arwork/definableX/gamename.png as image
+ if(m_imagefile[0][0] == '%' && m_imagefile[0][1] == 'd' && m_imagefile[0][2] == 'f'){
+ const char *l_img = xml_get_attribute_string_with_subst(machine, compnode, "file", "");
+ int l_definable = 0;
+ char l_temp[100];
+
+ sscanf(&l_img[3], "%d", &l_definable);
+ sprintf(l_temp, "definable%d", l_definable);
+ m_imagefile[0].cpy(l_temp).cat(PATH_SEPARATOR).cat(machine.basename()).cat(".png");
+ // Reset dirname to force arwork folder as default for the definables
+ m_dirname.reset();
+ }
+ // Tapule & LordHiryu mod ----------------------------------------------------------
+
It's from mamelay plus. Anyone know how to make it work with render.cpp?
-
maybe?
if (m_imagefile[0].compare(0, 3, "%df") == 0)
{
m_imagefile[0].replace(0, 3, "definable");
m_imagefile[0] += PATH_SEPARATOR;
m_imagefile[0] += machine.basename();
m_imagefile[0] += ".png";
}
-
Bored, in bed, sick... Updated patch for 0.172:
https://playground.btolab.com/sandbox/kb/arcade/emulation/mame/mods/
-
As a side not, I have to do diff/patch files manually because I don't have a working patch.exe tool I am willing to read about it, but seem to get conflicting instructions via google....is there a definitive guide, or at least one place where if I stay with those instructions someone will be good to go?
I'm not interested in everything being automated...
-
For windows, I highly recommend following the official instructions.
http://mamedev.org/tools/ (http://mamedev.org/tools/)
To apply any patches I post try:
git apply <patchname>.patch
If that doesn't work, this usually does:
git apply --recount --inaccurate-eof --ignore-whitespace <patchname>.patch
BTW, I moved the patches to: https://playground.btolab.com/sandbox/kb/arcade/emulation/mame/mods/ (https://playground.btolab.com/sandbox/kb/arcade/emulation/mame/mods/)