Previous Thread
Next Thread
Print Thread
Joined: Aug 2020
Posts: 10
F
Member
OP Offline
Member
F
Joined: Aug 2020
Posts: 10
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: 1,980
Likes: 24
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 1,980
Likes: 24
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: 10
F
Member
OP Offline
Member
F
Joined: Aug 2020
Posts: 10
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: 1,980
Likes: 24
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 1,980
Likes: 24
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,291
Likes: 19
Very Senior Member
Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,291
Likes: 19
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: 10
F
Member
OP Offline
Member
F
Joined: Aug 2020
Posts: 10
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: 1,980
Likes: 24
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 1,980
Likes: 24
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
0 members (), 33 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,993
Posts118,152
Members5,005
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com