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: A simple tool I wrote, maybe you will find it usefull. quitBit  (Read 2081 times)

0 Members and 1 Guest are viewing this topic.

pnpbios

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:March 26, 2015, 10:56:52 pm
  • I want to build my own arcade controls!
I've lurked this site for quite a while. It's been very helpful in putting together a machine for my kids to play on. I made something that I found useful and I would like to give back.

I made a little program that sits between the front-end and the emulator. It sits there waiting for an input sequence from a game-pad it can use to kill the emulator and return to the front-end.

https://github.com/longjoel/quitbit

If you think this might be useful to you, I would appreciate feedback or a bug report. Thanks!

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: A simple tool I wrote, maybe you will find it usefull. quitBit
« Reply #1 on: March 21, 2015, 08:48:50 am »
No offense but I don't download lurker-ware. If you want to provide code that the community could benefit from you need to make yourself a part of that community.

Get involved on the boards and Id feel a lot better about giving this a chance.

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: A simple tool I wrote, maybe you will find it usefull. quitBit
« Reply #2 on: March 21, 2015, 10:32:22 am »
No offense but I don't download lurker-ware. If you want to provide code that the community could benefit from you need to make yourself a part of that community.

Get involved on the boards and Id feel a lot better about giving this a chance.

Luker-ware? He posted the source code, which is dead ---smurfing--- simple to interpret with any sort of comprehension of programming structure.

bulbousbeard

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 522
  • Last login:August 25, 2015, 11:58:25 pm
  • I want to build my own arcade controls!
Re: A simple tool I wrote, maybe you will find it usefull. quitBit
« Reply #3 on: March 21, 2015, 11:13:56 am »
pnp, my advice? Don't immediately try to kill the program. It is not the way to do it.

For example, MAME actually saves cfg/nvram changes on exit. With the way you're nuking the program, programs won't close properly and do the file IO that they're supposed to.

if (!runProgram.CloseMainWindow())
{
          runProgram.Kill();
}

This way, if the emulator is nice enough to just let you close it, you can do it without ---smurfing--- up its behavior, but if it isn't nice enough, you nuke it from orbit.

I have experience with this because I built the same feature into Big Blue.

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: A simple tool I wrote, maybe you will find it usefull. quitBit
« Reply #4 on: March 21, 2015, 01:12:22 pm »
No offense but I don't download lurker-ware. If you want to provide code that the community could benefit from you need to make yourself a part of that community.

Get involved on the boards and Id feel a lot better about giving this a chance.

Luker-ware? He posted the source code, which is dead ---smurfing--- simple to interpret with any sort of comprehension of programming structure.

Lurker not luker.  And yeah, I don't download from users who provide software - of any sort - as their first post.  Consider me risk averse.  Feel free tho man, I can only speak for my self. 

pnpbios

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:March 26, 2015, 10:56:52 pm
  • I want to build my own arcade controls!
Re: A simple tool I wrote, maybe you will find it usefull. quitBit
« Reply #5 on: March 21, 2015, 04:50:20 pm »
bulbousbeard:

Thanks for the feedback. Next version will definitely try to politely tell it to close it's window, then kill it off at the end in case that didn't take. I took a look at Big Blue, and I might have to give that a try after a while.

Le Chuck:

I understand not everybody is a programmer, and if you don't know how to read the code, I can understand why it might be difficult to decipher it. If you are actually interested in using it, I would be happy to answer any of your questions or help you read the code.