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: MAMEWAH - Can you have a .PIF execute TWO programs?  (Read 1204 times)

0 Members and 1 Guest are viewing this topic.

sofakng

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 646
  • Last login:February 18, 2021, 04:19:21 pm
MAMEWAH - Can you have a .PIF execute TWO programs?
« on: January 04, 2005, 10:47:35 am »
This is regarding my other thread (using Daemon Tools on an arcade machine) -- it's been suggested that I only have two virtual drives and then load/unload CD's on-the-fly.

I'm using MAMEWAH which uses .PIF files to load PC Games.  Now as far as I know, a .PIF file can only load one program so how would I have it execute TWO programs? (eg. run a command-line command to have daemon tools switch CD's, and THEN execute the CD program)  I'm thinking I might need to use a .PIF to point a batch file but wouldn't the batch file window (eg. dos prompt) show on the screen before the game loads?

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: MAMEWAH - Can you have a .PIF execute TWO programs?
« Reply #1 on: January 04, 2005, 10:53:43 am »
Why PIF's?  You should use shortcuts (.LNK's)...or at least shortcuts to PIF's if they are DOS games...

To my knowledge you are right, you would need to use a batch file.  Depending on the game, show_dos_box no would prevent the dos window showing, although it *may* prevent the game from being launched properly.

jcrouse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1027
  • Last login:January 09, 2010, 05:53:51 pm
    • CPViewer
Re: MAMEWAH - Can you have a .PIF execute TWO programs?
« Reply #2 on: January 04, 2005, 10:54:59 am »
How about a batch file? You need to mount an image in the device, then launch your emulator. The image will be called using a %1 variable to reference the commandline parameter that is send from MameWAH.

John.

sofakng

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 646
  • Last login:February 18, 2021, 04:19:21 pm
Re: MAMEWAH - Can you have a .PIF execute TWO programs?
« Reply #3 on: January 04, 2005, 11:01:57 am »
Thanks for the replies...

I'm sorry, I confused .PIF and .LNK...  I did mean .LNK.

I'll try creating a .LNK file that runs a .BAT file (w/show_dos_box set to no) and see how that works -- hopefully it will work OK.  If that causes problems then maybe I'll just write a quick Delphi application that runs programs for me...  (there's a ShellExecute() parameter that hides any DOS windows)

By the way, MINWAH, what language is MAMEWAH written in?  (just curious)

zaphod

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 582
  • Last login:September 04, 2012, 11:11:38 am
    • ArcadeCab.com
Re: MAMEWAH - Can you have a .PIF execute TWO programs?
« Reply #4 on: January 04, 2005, 11:25:30 am »
I have a number of virtual drives (6) and the .lnk files work fine through Mamewah.  I think there is a limit to the number of drives you can have but that's not an issue for me currently.  I just have the drives mount on startup.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: MAMEWAH - Can you have a .PIF execute TWO programs?
« Reply #5 on: January 04, 2005, 11:34:30 am »
I'll try creating a .LNK file that runs a .BAT file (w/show_dos_box set to no) and see how that works -- hopefully it will work OK.

Hopefully it will be fine, but some games work differently to others, so keep your fingers crossed!

Quote
By the way, MINWAH, what language is MAMEWAH written in?  (just curious)

VB6.  I think ShellExecute is similar to the method I use...the problem is when apps switch to fullscreen mode, or use a launcher app of their own (which runs another .exe) - the initial dos box can always be hidden but sometimes this causes problems after the game has actually launched - as I say each game is different so hard to say...

BTW if you are using the latest beta version of MAMEWAH then set {safelaunch} for best compatibility...if not ignore that :)