Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: vertical.ini and horizont.ini in MAME  (Read 6016 times)

0 Members and 1 Guest are viewing this topic.

krick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2006
  • Last login:May 23, 2025, 03:48:36 am
  • Gotta have blue hair.
vertical.ini and horizont.ini in MAME
« on: May 23, 2009, 07:02:19 pm »
I was thinking that having a dedicated vertical.ini and/or horizont.ini (depending on which way you have your monitor mounted) would be useful so that you could set global settings that apply to all vertical or horizontal games at one shot.

I looked into implementing it in the latest MAME build and you can implement it with just a few lines of code in mame.c down in the section where it parses the ini files...

Code: [Select]
/* parse "vertical.ini" or "horizont.ini" */
if (driver->flags & ORIENTATION_SWAP_XY)
parse_ini_file(options, "vertical");
else
parse_ini_file(options, "horizont");

I'd really like to see this added to the next CabMAME build.   SailorSat?


EDIT:  I changed horizontal.ini to horizont.ini to make sure that it fits within 8.3 filename guidelines.  I also decided that it probably should go before vector.ini since there may be vector-specific options that you want to override one or both of these new ini files.  I've submitted it to MAMEDev, but for some reason, I feel that they may reject it.
« Last Edit: May 26, 2009, 12:38:03 am by krick »
Hantarex Polo 15KHz
Sapphire Radeon HD 7750 2GB (GCN)
GroovyMAME 0.197.017h_d3d9ex
CRT Emudriver & CRT Tools 2.0 beta 13 (Crimson 16.2.1 for GCN cards)
Windows 7 Home Premium 64-bit
Intel Core i7-4790K @ 4.8GHz
ASUS Z87M-PLUS Motherboard

krick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2006
  • Last login:May 23, 2025, 03:48:36 am
  • Gotta have blue hair.
Re: vertical.ini and horizont.ini in MAME
« Reply #1 on: May 28, 2009, 03:07:46 pm »
Success!  Added in MAME 0.131u3.  Hopefully, nobody objects and it makes it into 0.132.

http://mamedev.org/updates/whatsnew_0131u3.txt
Quote
Added support for parsing horizont.ini or vertical.ini based on the
game's orientation. [Krick]
Hantarex Polo 15KHz
Sapphire Radeon HD 7750 2GB (GCN)
GroovyMAME 0.197.017h_d3d9ex
CRT Emudriver & CRT Tools 2.0 beta 13 (Crimson 16.2.1 for GCN cards)
Windows 7 Home Premium 64-bit
Intel Core i7-4790K @ 4.8GHz
ASUS Z87M-PLUS Motherboard

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: vertical.ini and horizont.ini in MAME
« Reply #2 on: May 29, 2009, 05:12:39 pm »
As well, via my noticing this effort of krick's, and my desire for these features to be in MameUI (actually since last year), they are available there, too. (Or maybe it would've been automatic, but I encouraged krick to submit this, in any case.)
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.