Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: pnpbios on March 20, 2015, 11:17:06 pm

Title: A simple tool I wrote, maybe you will find it usefull. quitBit
Post by: pnpbios on March 20, 2015, 11:17:06 pm
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!
Title: Re: A simple tool I wrote, maybe you will find it usefull. quitBit
Post by: Le Chuck 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.
Title: Re: A simple tool I wrote, maybe you will find it usefull. quitBit
Post by: keilmillerjr 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.
Title: Re: A simple tool I wrote, maybe you will find it usefull. quitBit
Post by: bulbousbeard 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.
Title: Re: A simple tool I wrote, maybe you will find it usefull. quitBit
Post by: Le Chuck 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. 
Title: Re: A simple tool I wrote, maybe you will find it usefull. quitBit
Post by: pnpbios 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.