-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Fuzzy" search #523
base: master
Are you sure you want to change the base?
Add "Fuzzy" search #523
Conversation
…ens to help with hacks.
…o account once it hits fuzzy matching.
…he correct console. Gonna undo some of this and try again with a more simple setup.
I'm not sure why it's complaining about apt on those two builds, they worked on the previous one and those commands haven't changed. Hopefully something temporary on the github side of the VMs. |
mu sync.Mutex | ||
found bool | ||
} | ||
game_found := SafeBool{found: false} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't analyze it deeply, but do you really need a mutex or a atomic.Bool
fits your needs?
game_found.mu.Unlock() | ||
} else { | ||
var gameName = strings.Split(romName, ".")[0] | ||
var gameExt = strings.Split(romName, ".")[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the file may contain multiple dots or even no dots.
I guess you could use filepath.Ext
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call!
This branch adds fuzzy search to ludo via a few mechanisms.
FindByCRC
now fails through toFindByROMName
FindByROMName
is now tried again with increasingly stripped titles until failureThis branch also includes the same fixes as #521 and addresses #453