Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Configure: improve defaults after rescan?

Aperta
#220 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
tooling

Direzione di ricerca

Inizia tracciando la logica di rescansione e il modo in cui sceglie una versione predefinita del gioco; l’issue non indica file o test. Confronta i percorsi esistenti con quelli appena scoperti, incluse le unità USB disconnesse, e definisci prima le regole di selezione desiderate, quindi procedi con l’implementazione. Il lavoro sarà completato quando la scelta predefinita distinguerà meglio i giochi spostati dalle versioni appena trovate senza cambiare inaspettatamente i dati di salvataggio.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Choosing a default game during a rescan can be hard. Yet, it's important because many users don't even know you can change the default (which is probably an UI problem, but that's another question).
If a rescan finds a new version for an existing game, I think I prefer to try keeping the old version. If this is for example EoSD or another game that keeps its save data in its own directory, choosing another game version could lead to the user losing their save data (not actually losing it, it would still be there in the previous game installation, but that's what it would look like for the end user).

On the other hand, a rescan could also happen because the user moved their games. In this case, he would prefer to have the new games. This case can actually be detected with decent reliability: if the old path doesn't exist, we shouldn't keep using it, and we can start using the new one.
... Unless the game is on an USB drive which happened to be disconnected during the rescan. In which case we would want to keep it.

Anyway, it's not as easy of a choice than it looks like at first glance, but it's worth discussing and trying to see if we can improve things.

Lingua principale
C++
Stelle
772
Fork
51
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di thpatch/thcrap

Tutte le issue di thpatch/thcrap

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.