Previous Thread
Next Thread
Print Thread
Joined: Aug 2020
Posts: 13
F
Member
OP Offline
Member
F
Joined: Aug 2020
Posts: 13
PREMISE:

I've built a bartop on which there is mounted a miniPC to run MAME.

Since I need to upgrade mame without having to deal with keyboard too much, I've created a set of scripts to automatically accomplish the installation task.

Here are some features:

  • Download mame from given url
  • Extract mame archived file to output directory
  • Generate mame executable shortcut file
  • Generate mame.ini and write entries taken from paths.lua
  • Generate ui.ini and write entries taken from paths.lua
  • Copy default.cfg (if exists) from script directory to mame dir


Link here

There are also other scripts for downloading useful data.

I'd appreciate any feedback, thank you smile

Joined: May 2009
Posts: 2,120
Likes: 152
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,120
Likes: 152
Just to make sure, does the script extract all of the relevant files from the archive? There are a number of support files that are sometimes updated along with the executable, so you need to be sure to extract and copy all of them. smile

Joined: Aug 2020
Posts: 13
F
Member
OP Offline
Member
F
Joined: Aug 2020
Posts: 13
Originally Posted by Just Desserts
Just to make sure, does the script extract all of the relevant files from the archive? There are a number of support files that are sometimes updated along with the executable, so you need to be sure to extract and copy all of them. smile

Sorry I'm not sure of understand what you mean, what are these support files?
By the way the script use 7za to extraxt mame, which hopefully extract all the needed stuff.
To ensure mame.ini and ui.ini are all up-to-date, instead of simply copying from some old ones, they are generated by mame itself and then entries modifies are applied once created.

Joined: May 2009
Posts: 2,120
Likes: 152
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,120
Likes: 152
I'll put it more simply: Do you copy all of the files from the archive, or just the executable?

Joined: Feb 2004
Posts: 2,477
Likes: 170
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,477
Likes: 170
You could just look at the script – it attempts to download an official release archive and extract it. There’s no filtering of paths in the 7za command: https://github.com/fstarred/mame-scripts/blob/main/getmame.bat#L21

I’m a bit more uncomfortable about the script for downloading ROMs from mamedev.org without showing the user the “for personal use only” notice.

Joined: Aug 2020
Posts: 13
F
Member
OP Offline
Member
F
Joined: Aug 2020
Posts: 13
As Vas Crabb says, it download all the content archive.

Originally Posted by Vas Crabb
I’m a bit more uncomfortable about the script for downloading ROMs from mamedev.org without showing the user the “for personal use only” notice.

Ok I'll modify the script so a warning will be displayed, any suggestion will be appreciated smile

Last edited by Fstarred; 11/19/21 02:44 PM.
Joined: May 2009
Posts: 2,120
Likes: 152
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,120
Likes: 152
Originally Posted by Vas Crabb
You could just look at the script

I could, if I knew anything about scripting. I'd rather just ask a clear-cut question and hopefully get a reasonable answer. I don't think there's anything wrong with that.


Link Copied to Clipboard
Who's Online Now
2 members (Alegend45, Kale), 36 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,189
Posts120,331
Members5,044
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com