GithubHelp home page GithubHelp logo

Comments (12)

JTNDev avatar JTNDev commented on July 21, 2024

from galaxy-integration-wii.

LeonardFiedrowicz avatar LeonardFiedrowicz commented on July 21, 2024

Oh, I guess I misread that. After ripping the games they were automatically named after the game ID so I assumed it was that way. Thank you for trying to implement it ^^

from galaxy-integration-wii.

LeonardFiedrowicz avatar LeonardFiedrowicz commented on July 21, 2024

The plugin actually already uses os.walk which works with subfolders. The plugin didnt work for me though because I changed the folder name. You can replace that with
filename = os.path.expandvars(os.path.dirname(os.path.abspath(file)) + '\Index.txt')
in line 39 of the backend.py
Might need to try that out a bit more because now i get a different error.

from galaxy-integration-wii.

JTNDev avatar JTNDev commented on July 21, 2024

from galaxy-integration-wii.

LeonardFiedrowicz avatar LeonardFiedrowicz commented on July 21, 2024

Small correction I mean line 41 with this
file = ElementTree.parse(os.path.expandvars(os.path.dirname(os.path.abspath(__file__)) + '\games.xml'))

from galaxy-integration-wii.

LeonardFiedrowicz avatar LeonardFiedrowicz commented on July 21, 2024

Also, any idea how to get it working when not all games get recognized?
Another thing, a user can enter the rom and dolphin path during the connect screen in the gog settings like how it is done with citra.

from galaxy-integration-wii.

LeonardFiedrowicz avatar LeonardFiedrowicz commented on July 21, 2024

Also, you can read the title id from the game file directly (at least I tried it with .wbfs files) so you wouldn't need to rename the files. I don't know how well that works with other file formats though.

from galaxy-integration-wii.

JTNDev avatar JTNDev commented on July 21, 2024

Sorry for the late response. I'm adding support for any folder name right now, and how were you able to get it to read the title ID?

from galaxy-integration-wii.

LeonardFiedrowicz avatar LeonardFiedrowicz commented on July 21, 2024

with open(file_path, "rb") as f:
f.seek(0x200)
print(f.read(6))

That reads 6 bytes at adress 0x200 of the game file where for .wbfs files the title id is.
I just noticed that that may only work for .wbfs files. It doesn't work for .gcz files for example.

from galaxy-integration-wii.

LeonardFiedrowicz avatar LeonardFiedrowicz commented on July 21, 2024

A bit off-topic, I'm having a bit of troubling with updating game playtimes while GOG is running with my Cemu plugin.
I want to have an infinite loop that checks every minute if the game time in some file is changed but it only does that until the calling function quits so about twice. Do you have an idea how to make it run until gog closes?

Also, might as well close the issue since it's not actually an issue anymore.

from galaxy-integration-wii.

JTNDev avatar JTNDev commented on July 21, 2024

from galaxy-integration-wii.

LeonardFiedrowicz avatar LeonardFiedrowicz commented on July 21, 2024

Please tell me if/when you do find a solution.

from galaxy-integration-wii.

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.