Skip to content

Commit

Permalink
Rename project (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
g026r authored Sep 25, 2024
1 parent 9149c86 commit c9e1223
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/pocket-library-editor.iml
/vendor/
/.idea/
/library-editor/
/pocket-toolkit/
/pocket-toolkit.json
*.tar
*.zip
Expand Down
2 changes: 1 addition & 1 deletion cmd/gui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

tea "github.com/charmbracelet/bubbletea"

model2 "github.com/g026r/pocket-library-editor/pkg/ui"
model2 "github.com/g026r/pocket-toolkit/pkg/ui"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/magic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"slices"
"strings"

"github.com/g026r/pocket-library-editor/pkg/io"
"github.com/g026r/pocket-library-editor/pkg/models"
"github.com/g026r/pocket-toolkit/pkg/io"
"github.com/g026r/pocket-toolkit/pkg/models"
)

func main() {
Expand Down
3 changes: 1 addition & 2 deletions docs/signatures/gba.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Game Boy Advance CRC32s, cartridge signatures, and magic numbers

## Advance Wars

- CRC32: `0x26fd0fc9`
Expand Down Expand Up @@ -311,3 +309,4 @@
- CRC32: `0xd6141609`
- Signature: `0x7ac2020a`
- Magic Number: `0x16d0`

1 change: 1 addition & 0 deletions docs/signatures/ngpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@
- CRC32: `0x6f353f34`
- Signature: `0x05d460f5`
- Magic Number: `0x1b90`

1 change: 1 addition & 0 deletions docs/signatures/pce.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,4 @@
- CRC32: `0xf8f85eec`
- Signature: `0xd4c0eadc`
- Magic Number: `0x1d1e`

1 change: 0 additions & 1 deletion docs/signatures/sms.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# Sega Master System CRC32s, cartridge signatures, and magic numbers
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/g026r/pocket-library-editor
module github.com/g026r/pocket-toolkit

go 1.23.1

Expand Down
10 changes: 5 additions & 5 deletions pkg/io/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"slices"
"strings"

"github.com/g026r/pocket-library-editor/pkg/models"
"github.com/g026r/pocket-library-editor/pkg/util"
"github.com/g026r/pocket-toolkit/pkg/models"
"github.com/g026r/pocket-toolkit/pkg/util"
)

//go:embed resources/*.json
Expand Down Expand Up @@ -303,13 +303,13 @@ func SaveLibrary(e []models.Entry, t map[uint32]models.PlayTime, tick chan any)
if err != nil {
return err
}
l, err := os.Create(fmt.Sprintf("%s/library-editor/list.bin", wd))
l, err := os.Create(fmt.Sprintf("%s/pocket-toolkit/list.bin", wd))
if err != nil {
return err
}
defer l.Close()

p, err := os.Create(fmt.Sprintf("%s/library-editor/playtimes.bin", wd))
p, err := os.Create(fmt.Sprintf("%s/pocket-toolkit/playtimes.bin", wd))
if err != nil {
return err
}
Expand Down Expand Up @@ -383,7 +383,7 @@ func SaveThumbs(t map[models.System]models.Thumbnails, tick chan any) error {
continue // Not changed. For speed reasons, don't save.
}

f, err := os.Create(fmt.Sprintf("%s/library-editor/%s_thumbs.bin", wd, strings.ToLower(sys.String())))
f, err := os.Create(fmt.Sprintf("%s/pocket-toolkit/%s_thumbs.bin", wd, strings.ToLower(sys.String())))
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/io/io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"testing"

"github.com/g026r/pocket-library-editor/pkg/models"
"github.com/g026r/pocket-toolkit/pkg/models"
)

func TestSaveInternal(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/models/thumbnail.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/disintegration/imaging"

"github.com/g026r/pocket-library-editor/pkg/util"
"github.com/g026r/pocket-toolkit/pkg/util"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions pkg/ui/elements.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/g026r/pocket-library-editor/pkg/models"
"github.com/g026r/pocket-library-editor/pkg/util"
"github.com/g026r/pocket-toolkit/pkg/models"
"github.com/g026r/pocket-toolkit/pkg/util"
)

// The input elements, including buttons.
Expand Down
4 changes: 2 additions & 2 deletions pkg/ui/menus.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/g026r/pocket-library-editor/pkg/io"
"github.com/g026r/pocket-library-editor/pkg/models"
"github.com/g026r/pocket-toolkit/pkg/io"
"github.com/g026r/pocket-toolkit/pkg/models"
)

type menuKey int
Expand Down
8 changes: 4 additions & 4 deletions pkg/ui/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/g026r/pocket-library-editor/pkg/io"
"github.com/g026r/pocket-library-editor/pkg/models"
"github.com/g026r/pocket-library-editor/pkg/util"
"github.com/g026r/pocket-toolkit/pkg/io"
"github.com/g026r/pocket-toolkit/pkg/models"
"github.com/g026r/pocket-toolkit/pkg/util"
)

type errMsg struct {
Expand Down Expand Up @@ -273,7 +273,7 @@ func (m Model) save() tea.Msg {
if err != nil {
return err
}
err = os.Mkdir(fmt.Sprintf("%s/library-editor", wd), os.ModePerm)
err = os.Mkdir(fmt.Sprintf("%s/pocket-toolkit", wd), os.ModePerm)
if err != nil && !os.IsExist(err) {
return errMsg{err, true}
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/ui/model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"slices"
"testing"

"github.com/g026r/pocket-library-editor/pkg/io"
"github.com/g026r/pocket-library-editor/pkg/models"
"github.com/g026r/pocket-toolkit/pkg/io"
"github.com/g026r/pocket-toolkit/pkg/models"
)

func TestModel_playfix(t *testing.T) {
Expand Down

0 comments on commit c9e1223

Please sign in to comment.