Giter Club home page Giter Club logo

Comments (4)

mtkennerly avatar mtkennerly commented on May 18, 2024 1

GUI

I added a badge in the main status as well as next to each game. I also converted the game-level [FAILED] label and the selecting ... text into badges. I'd like to convert the individual file-level [FAILED] and [DUPLICATED] labels into badges as well, but I'm going to wait and do it as part of #45.

image

CLI (standard format)

$ ludusavi backup --preview 'A Custom Game' 'A Custom Game 2'
A Custom Game [3 B] [DUPLICATES]:
  - [DUPLICATED] C:/tmp/ludusavi/file1.txt
  - C:/tmp/ludusavi/file2.txt
  - [DUPLICATED] HKEY_CURRENT_USER/Software/Ludusavi
A Custom Game 2 [1 B] [DUPLICATES]:
  - [DUPLICATED] C:/tmp/ludusavi/file1.txt
  - [DUPLICATED] HKEY_CURRENT_USER/Software/Ludusavi

Overall:
  Games: 2
  Size: 4 B
  Location: C:/Users/mtken/ludusavi-backup

CLI (JSON format)

There is a new duplicatedBy field:

$ ludusavi backup --preview --api 'A Custom Game' 'A Custom Game 2'
{
  "overall": {
    "totalGames": 2,
    "totalBytes": 4,
    "processedGames": 2,
    "processedBytes": 4
  },
  "games": {
    "A Custom Game": {
      "decision": "Processed",
      "files": {
        "C:/tmp/ludusavi/file1.txt": {
          "bytes": 1,
          "duplicatedBy": [
            "A Custom Game 2"
          ]
        },
        "C:/tmp/ludusavi/file2.txt": {
          "bytes": 2
        }
      },
      "registry": {
        "HKEY_CURRENT_USER/Software/Ludusavi": {
          "duplicatedBy": [
            "A Custom Game 2"
          ]
        }
      }
    },
    "A Custom Game 2": {
      "decision": "Processed",
      "files": {
        "C:/tmp/ludusavi/file1.txt": {
          "bytes": 1,
          "duplicatedBy": [
            "A Custom Game"
          ]
        }
      },
      "registry": {
        "HKEY_CURRENT_USER/Software/Ludusavi": {
          "duplicatedBy": [
            "A Custom Game"
          ]
        }
      }
    }
  }
}

from ludusavi.

mtkennerly avatar mtkennerly commented on May 18, 2024

How about a [DUPLICATES] tag next to each game/file, like how the [FAILED] tag works?

I could add a modal warning as well, but it would need to be configurable, since there are some cases where duplicate files are expected - namely Sega Genesis Classics, where PCGW has 50 articles (one per game), but each game has the same save file.

from ludusavi.

darklinkpower avatar darklinkpower commented on May 18, 2024

Yeah I think showing [DUPLICATES] would certainly help.

I think if possible, this would help too:

  1. Group games with conflicting files together in the list to check more easily the duplicates
  2. Perhaps even show a label in the specific conflicting files on the right side
  3. When there are duplicates, show a warning in either a tiny window or in the Ludusavi UI since the duplicates can be missed by the user if the list is not checked

from ludusavi.

mtkennerly avatar mtkennerly commented on May 18, 2024

I'm not sure about 1 (it could get complex depending on how the duplicates are distributed), but 2 and 3 are doable for sure. I'll play around with how to display a warning without a full-blown modal (maybe in the main status: 10 games | 100 MiB | 2 duplicated entries).

from ludusavi.

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.