Giter Club home page Giter Club logo

Comments (10)

neuromancer avatar neuromancer commented on May 18, 2024

I recently revisited this issue. I tried to use some SCUMMVM games with the custom emulator feature. It's promising, but it won't work as expected with SCUMMVM since it requires to change the directory to the game directory, for every game. The custom emulator feature does not allow that (or at least, I don't know how to do it without creating a custom script).

Moreover, maybe could be a good idea to remove the Dosbox/Wine/Proton code and re-add them as custom emulators.

from gamehub.

tkashkin avatar tkashkin commented on May 18, 2024

it requires to change the directory to the game directory, for every game. The custom emulator feature does not allow that

Yes, it currently uses install_dir of Emulator as a working directory.

Possible solutions:

  • Use install_dir of Game
  • Provide option to choose which directory to use (game or emu)

First solution can possibly break emulators if they require to be launched from their directory.
Second solution may be a bit harder (or may not). What should be default for that option if second will be implemented?

Moreover, maybe could be a good idea to remove the Dosbox/Wine/Proton code and re-add them as custom emulators.

No. CompatTools and Emulators are different things and work differently.
Also Emulators can depend on CompatTools itself.

from gamehub.

neuromancer avatar neuromancer commented on May 18, 2024

Provide option to choose which directory to use (game or emu)

I think that's the best option. The default could be the install_dir of Emulator. I believe this is the most common configuration for Emulators.

No. CompatTools and Emulators are different things and work differently.
Also Emulators can depend on CompatTools itself.

Fair enough. So, do you think that SCUMMVM should be a CompatTool or an Emulator?

from gamehub.

tkashkin avatar tkashkin commented on May 18, 2024

So, do you think that SCUMMVM should be a CompatTool or an Emulator?

I don't know. ScummVM uses *.ini for configs, it's a bit harder to detect than dosbox_*.conf for DOSBox. Also I don't think that ScummVM is as popular as DOSBox.
User can add it as a custom emulator if needed.

from gamehub.

tkashkin avatar tkashkin commented on May 18, 2024

Provide option to choose which directory to use (game or emu)

Added as a compat option for CustomEmulator tool

Options list now shows translatable option description for options instead of name (name is shown in tooltip instead). I don't know if it's better than it was before.

from gamehub.

neuromancer avatar neuromancer commented on May 18, 2024

I don't know. ScummVM uses .ini for configs, it's a bit harder to detect than dosbox_.conf for DOSBox.

Using scummvm --auto-detect in the game directory works 99% of the time. Time to test it!

from gamehub.

neuromancer avatar neuromancer commented on May 18, 2024

Works great!. My last suggestion is to include the scummvm custom emulator if GameHub detects scummvm in the PATH. If you don't want to implement this feature, just close this issue.

from gamehub.

tkashkin avatar tkashkin commented on May 18, 2024

How does scummvm --auto-detect work? Does it just launch game if detected? Is there a way to use that autodetection but without launching game?

from gamehub.

neuromancer avatar neuromancer commented on May 18, 2024

Does it just launch game if detected?

Yes.

Is there a way to use that autodetection but without launching game?

Use --detect to show games in the current directory. Some examples:

$ scummvm --detect
ID             Description                                                Full Path
-------------- ---------------------------------------------------------- ---------------------------------------------------------
zak            Zak McKracken and the Alien Mindbenders (FM-TOWNS/English) /home/g/Games/GOG/Zak_McKracken_and_the_Alien_Mindbenders
$ scummvm --detect
ID             Description                                                Full Path
-------------- ---------------------------------------------------------- ---------------------------------------------------------
kyra2          The Legend of Kyrandia: The Hand of Fate (CD/DOS/English)  /home/g/Games/GOG/The_Legend_of_Kyrandia_Hand_of_Fate_Book_Two
kyra2          The Legend of Kyrandia: The Hand of Fate (CD/DOS/German)   /home/g/Games/GOG/The_Legend_of_Kyrandia_Hand_of_Fate_Book_Two
kyra2          The Legend of Kyrandia: The Hand of Fate (CD/DOS/French)   /home/g/Games/GOG/The_Legend_of_Kyrandia_Hand_of_Fate_Book_Two
$ scummvm --detect
WARNING: ScummVM could not find any game in /tmp
WARNING: Consider using --path=<path> *before* --add or --detect to specify a directory
WARNING: Consider using --recursive *before* --add or --detect to search inside subdirectories

from gamehub.

neuromancer avatar neuromancer commented on May 18, 2024

187c708 🎉

It works great! I will test with a few games and close this issue.

from gamehub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.