mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-21 09:08:57 +00:00
Scan ROM extensions case-insensitive
This commit is contained in:
parent
41bfe4f4d3
commit
1452317d45
1 changed files with 2 additions and 2 deletions
|
|
@ -235,7 +235,7 @@ func (lib *library) set(games []GameMetadata) {
|
|||
}
|
||||
|
||||
func (lib *library) isExtAllowed(path string) bool {
|
||||
ext := filepath.Ext(path)
|
||||
ext := strings.ToLower(filepath.Ext(path))
|
||||
if ext == "" {
|
||||
return false
|
||||
}
|
||||
|
|
@ -246,7 +246,7 @@ func (lib *library) isExtAllowed(path string) bool {
|
|||
// getMetadata returns game info from a path
|
||||
func getMetadata(path string, basePath string) GameMetadata {
|
||||
name := filepath.Base(path)
|
||||
ext := filepath.Ext(name)
|
||||
ext := strings.ToLower(filepath.Ext(name))
|
||||
relPath, _ := filepath.Rel(basePath, path)
|
||||
|
||||
return GameMetadata{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue