Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    EmuTalk Member
    Join Date
    May 2005
    Posts
    28

    Mupen 0.4 Command Line Version

    If compiled the Command Line Version of Mupen64 because i want to use it within from another Program, and the other Version didnt start the emulation automatic. So I've made some chanches to mupen64_nogui, so that the emulation parameters can be set on the command line!

    I've uploaded the changes! Wold be nice if you could include them and if you allow binary nogui download!


    If you look for my patch file, It's in one of my last posts!!!

    Last edited by jogibear9988; May 25th, 2005 at 06:39.


    • Advertising

      advertising
      EmuTalk.net
      has no influence
      on the ads that
      are displayed
        
       

  2. #2
    Whatever Tillmann's Avatar
    Join Date
    Apr 2005
    Posts
    116
    cool this could be nice for multi front-ends devs...
    My english is really poor... So Please hehehe help me to improve it ok!?
    --------------------------
    Sys specs: Debian testing (always testing), NVidia GeForceFX 5200, AtlhonXP 2.6 (1150), 1gb Ram, Asus A7v8x-x, Onboard sound device (via chipset).
    ---------------------------

  3. #3
    EmuTalk Member blight's Avatar
    Join Date
    Feb 2002
    Location
    Austria
    Posts
    360
    Your patch looks like a dirty hack... Better use something like http://www.emutalk.net/showthread.php?t=27254 which works just as well, until someone properly implements argument parsing.
    <A HREF="http://petition.eurolinux.org"><img src="http://aful.org/images/patent_banner.gif" border="0"></A>

  4. #4
    EmuTalk Member
    Join Date
    May 2005
    Posts
    28

    dirty hack??

    dirty hack??
    i now have created a new version. and with the other, you can't set fullscreen mode on startup.

    i now have created 5 command line switches and if not useed the emulator will start as he was before!

  5. #5
    EmuTalk Member
    Join Date
    May 2005
    Posts
    28

    heres the new version

    he rmy new version:

    changes:

    fullscreen selectable!
    command line parameters now work!

    please test



    !!! Atachment removed, it was obsolete!!!
    Last edited by jogibear9988; May 24th, 2005 at 06:44.

  6. #6
    EmuTalk Member ciruZ's Avatar
    Join Date
    Nov 2003
    Location
    /root
    Posts
    220
    Even your new version look like a dirty hackfor me, too.
    You're not using a good way of command line argument parsing.
    Something like that would be better:
    ./mupen64 --fullscreen --video Glide64.so --audio jttl_audio.so --input cip.so --rsp mupen64_hle_rsp_azimer.so --dynarec Mario64.v64
    If --video / --audio / --input / --rsp isn't specified, the one specified in the config file should be used.

    You should try to completly rewrite the main.c instead of doing dirty things like this:
    Code:
    int somefoo()
    {
       //lot
       //of
       //outcommented
       //code
       return 1;
    }
    Commenting the warning about a hacked rom out is also a bad idea. You should write a small notice to stdout.
    You should avoid german messages like "Eingegebene Parameter", also. Better write "Given parameters".

    Ok, that was everything I can say about it after a _VERY_ short look at it .
    Last edited by ciruZ; May 21st, 2005 at 23:35.

  7. #7
    EmuTalk Member
    Join Date
    May 2005
    Posts
    28

    ok...

    ok, i'm trying to programing this...

    ut in the current version the plugins from the ini files are not used too!

    i'm looking now for inventing a good comand line interface for my next patch

  8. #8
    EmuTalk Member
    Join Date
    May 2005
    Posts
    28

    command line parsing

    a good command line parsing is no implemented! now im working on the config file!
    i think i copy the config.c function from the gui gtk version. and i think i use the same config file.

    so, the new patches from me will be ready tommorow!

    Testers???

  9. #9
    EmuTalk Member
    Join Date
    May 2005
    Posts
    28

    help please...

    @ciruZ or others who could help

    if made now a patch wich sould be able to use better command line parameters and config file reading!

    therefor i have copied the config.c and .h from the gui-gtk and changed the includes. also i've made some changes to my main.c to support it.

    also i have changed the makefile to compile with the config.c

    but after running my mupen_nogui i get only the error "Speicherzugriffsfehler" (I think it's "memory access error" in english).

    any help???


    !!! Atachment removed, it was obsolete!!!
    Last edited by jogibear9988; May 24th, 2005 at 06:44.

  10. #10
    EmuTalk Member
    Join Date
    May 2005
    Posts
    28

    New Version ready....

    So, Now I hope this Version has the full functionality.

    It uses the Config File from teh Gui Version.

    Commandline Parameters override the InI settings!
    I have also added 3 Ini Parameters:
    No Ask
    Fullscreen
    and
    Emulation Mode

    To Compile copy my 4 files in the sourcecode main directory and edit your makefile so tha config.o is the OBJ list:

    Bevore editing:
    ...
    main/mupenIniApi.o \
    main/savesates.o
    ...

    After:
    ...
    main/mupenIniApi.o \
    main/svestates.o \
    main/config.o
    ...


    So please test...
    It would be nice if this patch could find his way to the offical sources...


    !!! Atachment removed, it was obsolete!!!
    Last edited by jogibear9988; May 24th, 2005 at 06:44.

Page 1 of 2 12 LastLast

Similar Threads

  1. Mupen 0.4 under Linux and Zelda OoT
    By Xake in forum Mupen64
    Replies: 10
    Last Post: January 8th, 2005, 15:45
  2. Mupen 0.4 + Linux issues
    By robbinshomer in forum Mupen64
    Replies: 8
    Last Post: August 17th, 2004, 05:30
  3. Mupen 0.4 + Linux issues
    By robbinshomer in forum Mupen64
    Replies: 1
    Last Post: August 12th, 2004, 18:12
  4. Mupen 0.4 review
    By utopianfiat in forum Mupen64
    Replies: 4
    Last Post: August 8th, 2004, 21:26
  5. Mupen 0.4!!! We wants!
    By Rented Mule in forum Mupen64
    Replies: 30
    Last Post: May 21st, 2004, 02:14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •