Author Topic: GB Emu - easy add  (Read 8429 times)

davhuit

  • Full Member
  • ***
  • Posts: 173
Re: GB Emu - easy add
« Reply #8 on: August 23, 2013, 10:37:24 AM »
Thanks.

The second script work, but not the first one, at least, on my computer.

Though I replaced the line in the "systems.xml" file :

Code: [Select]
<Name>GameBoy</Name>
    <AppPath>F:\Jeux PC [Downloads]\Emulation\GameBoy\GameBoy_AutoIt.exe</AppPath>
    <RomPath>F:\Jeux PC [Downloads]\Emulation\GameBoy\Roms\GameBoy</RomPath>
    <SnapPath>F:\Jeux PC [Downloads]\Emulation\GameBoy\Previews\GameBoy</SnapPath>
    <VidPath />
    <Emu selected="1">
      <Cmd id="0" name="VisualBoyAdvance" value="&quot;%path\%file%ext&quot;" />
      <Cmd id="1" name="Gambatte (AutoIt)" value="-f &quot;%path\%file%ext&quot;" />
    </Emu>
« Last Edit: August 23, 2013, 10:38:59 AM by mgalaxy »

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1167
    • Email
Re: GB Emu - easy add
« Reply #7 on: August 23, 2013, 10:06:33 AM »
It appears that the command line for full screen is '-f'

Just try this and see if it helps (with value="&quot;%path\%file%ext&quot;" in 'systems.xml'):

Code: (autoit) [Select]
HotKeySet("{ESC}", "Terminate")
$path = "F:\Jeux PC [Downloads]\Emulation\GameBoy\"
$app = "gambatte_qt_win32-r537.exe"
 
If $CmdLine[0] > 0 Then
    $PID = Run( $path & $app & ' -f ' & $CmdLineRaw)
    While 1
          Sleep(100)
    WEnd
EndIf
 
exit 0
 
Func Terminate()
    While ProcessExists ( $PID )
        ProcessClose ( $PID )
    WEnd
    Exit 0
EndFunc

OR (with value="-f &quot;%path\%file%ext&quot;" in 'systems.xml', that's what will officialy be added to mGalaxy)

Code: (autoit) [Select]
HotKeySet("{ESC}", "Terminate")
$path = "C:\Users\jmd_000\Desktop\Gambatte\"
$app = "gambatte_qt_win32-r537.exe"
 
If $CmdLine[0] > 0 Then
    $PID = Run( $path & $app & ' ' & $CmdLineRaw )
    While 1
          Sleep(100)
    WEnd
EndIf
 
exit 0
 
Func Terminate()
    While ProcessExists ( $PID )
        ProcessClose ( $PID )
    WEnd
    Exit 0
EndFunc
« Last Edit: August 23, 2013, 10:12:40 AM by mgalaxy »

davhuit

  • Full Member
  • ***
  • Posts: 173
Re: GB Emu - easy add
« Reply #6 on: August 23, 2013, 09:43:52 AM »
Code: (AutoIt) [Select]
HotKeySet("{ESC}", "Terminate")
$path = "F:\Jeux PC [Downloads]\Emulation\GameBoy\"
$app = "gambatte_qt_win32-r537.exe"

If $CmdLine[0] > 0 Then
    $PID = Run( $path & $app & ' -fullscreen', $path)
    While 1
          Sleep(100)
    WEnd
EndIf

exit 0

Func Terminate()
    While ProcessExists ( $PID )
ProcessClose ( $PID )
    WEnd
    Exit 0
EndFunc

or

Code: (AutoIt) [Select]
HotKeySet("{ESC}", "Terminate")
$path = "F:\Jeux PC [Downloads]\Emulation\GameBoy\"
$app = "gambatte_qt_win32-r537.exe"

If $CmdLine[0] > 0 Then
    $PID = Run( $path & $app & ' -fullscreen' & $CmdLineRaw)
    While 1
          Sleep(100)
    WEnd
EndIf

exit 0

Func Terminate()
    While ProcessExists ( $PID )
ProcessClose ( $PID )
    WEnd
    Exit 0
EndFunc

Run the emulator in full screen, but don't load the rom anymore.
« Last Edit: August 23, 2013, 10:01:58 AM by davhuit »

davhuit

  • Full Member
  • ***
  • Posts: 173
Re: GB Emu - easy add
« Reply #5 on: August 23, 2013, 09:36:49 AM »
It's working with this script :

Code: (AutoIt) [Select]
HotKeySet("{ESC}", "Terminate")
$path = "F:\Jeux PC [Downloads]\Emulation\GameBoy\"
$app = "gambatte_qt_win32-r537.exe"

If $CmdLine[0] > 0 Then
    $PID = Run( $path & $app & ' ' & $CmdLineRaw )
    While 1
          Sleep(100)
    WEnd
EndIf

exit 0

Func Terminate()
    While ProcessExists ( $PID )
ProcessClose ( $PID )
    WEnd
    Exit 0
EndFunc

Now, just need to manage to add the -fullscreen option and it will be okay.

davhuit

  • Full Member
  • ***
  • Posts: 173
Re: GB Emu - easy add
« Reply #4 on: August 22, 2013, 01:48:32 PM »
I tried to add the support of "Gambatte" in "mGalaxy" but didn't got any luck with it (I'm really bad at those kind of things  :-[).

Last version can be found here, if needed : http://sourceforge.net/projects/gambatte/files/latest/download

The command-line is :

gambatte_qt_win32-r537.exe name-of-the-game.gb -fullscreen

First, I just tried to add the load rom support with that command :

Code: [Select]
<Cmd id="1" name="Gambatte" value="&quot;%path\%file%ext&quot;" />
But it don't seem to load anything.

I supposed the full screen parameter would require that command :

Code: [Select]
<Cmd id="1" name="Gambatte" value="&quot;%path\%file%ext&quot; -fullscreen" />
But can't test it yet as the first command don't work.

It would also need an AutoIt script for the quit on the "ESC" button, but it's not required yet as I can't load a rom yet.
« Last Edit: August 22, 2013, 06:22:13 PM by davhuit »

Stefan

  • Full Member
  • ***
  • Posts: 143
  • BORN TO PLAY
Re: GB Emu - easy add
« Reply #3 on: February 20, 2013, 01:54:14 PM »
nice, i have near the same icon for my test  :D
---------------
Greetings from Austria

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1167
    • Email
Re: GB Emu - easy add
« Reply #2 on: February 20, 2013, 11:46:19 AM »
Thanks very much for your feedback..and for sharing with others!!
I've added this system to mGalaxy, based on your infos. It will be included in the next release.

Please find here the "official" icon ;-)
« Last Edit: February 20, 2013, 11:48:03 AM by mgalaxy »

Stefan

  • Full Member
  • ***
  • Posts: 143
  • BORN TO PLAY
GB Emu - easy add
« Reply #1 on: February 20, 2013, 10:24:45 AM »
Hi,

there is an easy and fast way, to add GB (Gameboy 1) - Emu and Games,
if you have already GBA included.

In AppData/Roaming/mGalaxy ..., copy the "Nintendo GBA" Folder to a second "Nintendo GB", and put in any Gameboy-Icon.png (icon.png). Should find someone at Google.
Systems.xml File: Copy the <system> Part of "Nintendo GBA" in a second XML Part "Nintendo GB",
at the bottom of the Block, edit the File Extensions value to ? .gb, if you have gamename.gb Files.

Put a Folder "gb" includes Games (.gb Files) into your GBA Folder.

At mGalaxy_runway, only set the App to: VisualboyAdvance (as in GBA)
Path to your new "gb" Folder, maybe .png Pics inside too, for the "Snap" Path.

Ready - now you can play Gameboy One - Games  :D
---------------
Greetings from Austria