RELEASE LGMA (Use Google Drive with DZ to download your games)

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by Miqote, Oct 28, 2018.

  1. Miqote
    OP

    Miqote GBAtemp Regular

    Member
    5
    May 2, 2018
    Macedonia, The Former Yugoslav Republic of
    This POC (Proof of Concept) will allow you to access your Google Drive via DZ without any other software on your computer, and will work for -all- versions of Google Drive (Student/Unlimited/Business, etc). A GUI version is also completed but doesn't work due to the library not working in .NET Standard right now. When it's fixed, I'll release a GUI version.

    This also should theoretically work on Linux via dotnet and the included DLL, but I haven't tested it personally. YMMV.

    Setup:
    1. Complete the first step here (https://developers.google.com/drive/api/v3/quickstart/python) and rename that file to "client_id.json".
    2. Extract the ZIP from releases and put the "client_id.json" with wherever you extracted them.
    3. Open LGMA.exe and follow the directions. You will receive a pop-up in your browser to link your email to the Application you created in the first step. This will only happen once.
    4. Add a new entry to your switch/dz/locations.conf as shown in the program
    5. Open DZ and it should show up there.
    Screenshots:
    [​IMG]

    Source:
    https://github.com/Aida-Enna/LGMAConsole
     
    Last edited by Miqote, Oct 28, 2018
  2. The0919

    The0919 GBAtemp Regular

    Member
    3
    Oct 29, 2017
    United States
    Behind you
    Yo whats LGMA?
     
    Scupho, RoxPol, Hodge92 and 6 others like this.
  3. GarnetSunset

    GarnetSunset GBAtemp Regular

    Member
    4
    Apr 27, 2017
    United States
    Ligma balls bitch

    jk this is awesome

    — Posts automatically merged - Please don't double post! —

    @Miqote hmm idk if its just me but the release posted gives me an error:

    Code:
    An assembly specified in the application dependencies manifest (LGMA.deps.json) was not found:
        package: 'DotNet.Glob', version: '2.0.0'
        path: 'lib/netstandard1.1/DotNet.Glob.dll'
     
  4. Miqote
    OP

    Miqote GBAtemp Regular

    Member
    5
    May 2, 2018
    Macedonia, The Former Yugoslav Republic of
    Ughhhhhh, .NET Core. Thanks, I'll fix it in a sec. Second release is live, should fix the issue. Unfortunately, it also jumped the filesize from 500KB to 29MB. #JustNetCoreThings
     
    Last edited by Miqote, Oct 28, 2018
    GarnetSunset likes this.
  5. Bst22322

    Bst22322 Member

    Newcomer
    2
    Jul 24, 2018
    United States
    Will this only work with your own personal Gdrive? Or can someone else's drive that is set to public
     
    Don Jon likes this.
  6. Ericthegreat

    Ericthegreat Not New Member

    Member
    8
    Nov 8, 2008
    United States
    Vana'diel
    Should be able to make a nice React/Electron app/web app with this.
     
    Olmectron likes this.
  7. Don Jon

    Don Jon GBAtemp Advanced Fan

    Member
    7
    Nov 20, 2015
    United States
    he said if you can log in to it.
    so i dunno how when they are public will play wit this
     
    Bst22322 likes this.
  8. Miqote
    OP

    Miqote GBAtemp Regular

    Member
    5
    May 2, 2018
    Macedonia, The Former Yugoslav Republic of
    It will only allow you to access the contents of the Google Drive you own - So whatever you see in http://drive.google.com.

    I don't believe it works with "Shared with Me", but I'll see if I can get the API to let me do that too.
     
    Last edited by Miqote, Oct 29, 2018
    lordelan and Bst22322 like this.
  9. nero99

    nero99 GBAtemp Addict

    Member
    9
    Sep 18, 2014
    United States
    Would it be possible to do this with MEGA.nz as well? That’s where I store all my nsp files
     
  10. Miqote
    OP

    Miqote GBAtemp Regular

    Member
    5
    May 2, 2018
    Macedonia, The Former Yugoslav Republic of
    Actually it apparently is possible and I was able to get it half working as a POC. I've made an issue here asking for support and hopefully they'll put it in. https://github.com/FubarDevelopment/FtpServer/issues/40 If not, I can try to do it myself but that'll be a gigantic pain, but worth it.

    I'm not sure offhand, but doesn't MEGA cap you at like 5GB each hour?
     
    lordelan and Bst22322 like this.
  11. Ericthegreat

    Ericthegreat Not New Member

    Member
    8
    Nov 8, 2008
    United States
    Vana'diel
    But then you run into "too many downloads" issues, best for ppl to copy to their drive.
     
    Bst22322 likes this.
  12. Don Jon

    Don Jon GBAtemp Advanced Fan

    Member
    7
    Nov 20, 2015
    United States
    Hmm ive seen some google drive accounts still open but youre probably right on the long run.
    Anyways its still good if we can do it for the moment
     
    Last edited by Don Jon, Oct 29, 2018
  13. Nerdtendo

    Nerdtendo Your friendly neighborhood idiot

    Member
    6
    Sep 29, 2016
    United States
    Didn't this kill Ninja?
     
  14. sks316

    sks316 Meloetta, the Melody Pokémon!

    Member
    9
    Nov 28, 2013
    United States
    Unova
    For a second, I thought this was a joke because of the name. Lol.
     
  15. Bst22322

    Bst22322 Member

    Newcomer
    2
    Jul 24, 2018
    United States
    Hey very good point that I obviously overlooked. Seems unnecessary as the links would reach download quota so fast...I'll gladly make a copy into my personal drive to save the storage space
     
  16. nero99

    nero99 GBAtemp Addict

    Member
    9
    Sep 18, 2014
    United States
    it does if you're a free user. I have a yearly subscription to them, so I basically have no data cap for downloading
     
  17. PatrickJr

    PatrickJr GBAtemp Regular

    Member
    4
    Jan 5, 2017
    Bridgwater
    if you add files to your drive from someone else, it works fine. from time to time.
     
  18. SonyUSA

    SonyUSA We're all mad here

    pip Contributor
    12
    GBAtemp Patron
    SonyUSA is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    May 12, 2006
    United States
    God damnit, I JUST got finishing packing up a customized rclone package for everyone to do this same thing xD Yours looks easier to use though, thanks... lol

    — Posts automatically merged - Please don't double post! —

    P.S.

    If you see "something you like" in someone else's Google Drive, right-click it (ctrl click for multiple) and choose "copy/add to my drive" and when the little popup appears click "organize" and you can send it to whatever folder you want.

    — Posts automatically merged - Please don't double post! —

    nut server, dz app, lgma app... get it? :P
     
    Spadezilla likes this.
  19. Spadezilla

    Spadezilla Advanced Member

    Newcomer
    1
    Dec 19, 2013
    United States
    wtf is DZ...
     
  20. GarnetSunset

    GarnetSunset GBAtemp Regular

    Member
    4
    Apr 27, 2017
    United States
    Deez Nuts bitch
     
Loading...