windows fixes (#374)
Co-authored-by: Matthew Glazar <strager.nds@gmail.com>
This commit is contained in:
parent
a2d3b9f0c8
commit
ec001ca02f
5 changed files with 31 additions and 4 deletions
|
|
@ -6,6 +6,7 @@ import (
|
|||
"fmt"
|
||||
"image/color"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
|
|
@ -42,7 +43,7 @@ func LoadThemesFromJSON() error {
|
|||
continue
|
||||
}
|
||||
themeName := strings.TrimSuffix(entry.Name(), ".json")
|
||||
data, err := themesFS.ReadFile(filepath.Join("themes", entry.Name()))
|
||||
data, err := themesFS.ReadFile(path.Join("themes", entry.Name()))
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to read theme file %s: %w", entry.Name(), err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue