Git Product home page Git Product logo

Comments (4)

buswedg avatar buswedg commented on August 20, 2024

I've spent a little time looking at nile and legendary. Seems like Epic store manifest data in flat (*item) files, which are relatively straight forward to update based on a shift in game location. AG however, use sqlite files to store library data. The below seems to be the target file to update. I could probably make a PR to add this functionality if there is interest. If not, I'll just write something quick and dirty for my own needs.

%localappdata%\Amazon Games\Data\Games\Sql\GameInstallInfo.sqlite

from nile.

imLinguin avatar imLinguin commented on August 20, 2024

This functionality is simple, just make nile move the game directory to desired location and update metadata in installed.json

from nile.

buswedg avatar buswedg commented on August 20, 2024

So, my focus was a little more around keeping AG launcher updated with the current install location, rather than nile (which might be out of scope for what you're doing here).

It's still straightforward, and I wrote + tested something last night which achieves my need by offering a pretty simple cli to select installed games, move them to a different location, and update Amazons sqlite stored info accordingly. See example drop of code below. But perhaps a better way to handle this would be to just update nile's installed.json, and focus on developing out some kind of resync functionality between nile and AG launcher? Similar to what legendary offers. What would you prefer?

DATABASE_PATH = os.path.expanduser(os.path.join("~", "AppData", "Local", "Amazon Games", "Data", "Games", "Sql", "GameInstallInfo.sqlite"))
conn = sqlite3.connect(DATABASE_PATH)
cursor = conn.cursor()
cursor.execute("UPDATE DbSet SET InstallDirectory = ? WHERE ProductAsin = ?", (new_install_game_dir, game_id))
conn.commit()
conn.close()

from nile.

imLinguin avatar imLinguin commented on August 20, 2024

It feels best to have it as separate sync feature like legendary

from nile.

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.