From c9e12234df83f641b9e57dc308af12e6ba58338c Mon Sep 17 00:00:00 2001 From: g026r Date: Wed, 25 Sep 2024 01:25:12 -0400 Subject: [PATCH] Rename project (#4) --- .gitignore | 2 +- cmd/gui/main.go | 2 +- cmd/magic/main.go | 4 ++-- docs/signatures/gba.md | 3 +-- docs/signatures/ngpc.md | 1 + docs/signatures/pce.md | 1 + docs/signatures/sms.md | 1 - go.mod | 2 +- pkg/io/io.go | 10 +++++----- pkg/io/io_test.go | 2 +- pkg/models/thumbnail.go | 2 +- pkg/ui/elements.go | 4 ++-- pkg/ui/menus.go | 4 ++-- pkg/ui/model.go | 8 ++++---- pkg/ui/model_test.go | 4 ++-- 15 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index d4f60e2..8118e58 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,7 @@ /pocket-library-editor.iml /vendor/ /.idea/ -/library-editor/ +/pocket-toolkit/ /pocket-toolkit.json *.tar *.zip diff --git a/cmd/gui/main.go b/cmd/gui/main.go index 89b2cf6..6c80f71 100644 --- a/cmd/gui/main.go +++ b/cmd/gui/main.go @@ -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() { diff --git a/cmd/magic/main.go b/cmd/magic/main.go index 357fbd3..b2cdbac 100644 --- a/cmd/magic/main.go +++ b/cmd/magic/main.go @@ -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() { diff --git a/docs/signatures/gba.md b/docs/signatures/gba.md index 4374436..6d9fe14 100644 --- a/docs/signatures/gba.md +++ b/docs/signatures/gba.md @@ -1,5 +1,3 @@ -# Game Boy Advance CRC32s, cartridge signatures, and magic numbers - ## Advance Wars - CRC32: `0x26fd0fc9` @@ -311,3 +309,4 @@ - CRC32: `0xd6141609` - Signature: `0x7ac2020a` - Magic Number: `0x16d0` + diff --git a/docs/signatures/ngpc.md b/docs/signatures/ngpc.md index cb2ede7..5a0a7e0 100644 --- a/docs/signatures/ngpc.md +++ b/docs/signatures/ngpc.md @@ -41,3 +41,4 @@ - CRC32: `0x6f353f34` - Signature: `0x05d460f5` - Magic Number: `0x1b90` + diff --git a/docs/signatures/pce.md b/docs/signatures/pce.md index fbddd68..6af0312 100644 --- a/docs/signatures/pce.md +++ b/docs/signatures/pce.md @@ -329,3 +329,4 @@ - CRC32: `0xf8f85eec` - Signature: `0xd4c0eadc` - Magic Number: `0x1d1e` + diff --git a/docs/signatures/sms.md b/docs/signatures/sms.md index b62cc2d..e69de29 100644 --- a/docs/signatures/sms.md +++ b/docs/signatures/sms.md @@ -1 +0,0 @@ -# Sega Master System CRC32s, cartridge signatures, and magic numbers diff --git a/go.mod b/go.mod index 35f9fbe..ee6fd26 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/g026r/pocket-library-editor +module github.com/g026r/pocket-toolkit go 1.23.1 diff --git a/pkg/io/io.go b/pkg/io/io.go index 4093497..49ab982 100644 --- a/pkg/io/io.go +++ b/pkg/io/io.go @@ -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 @@ -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 } @@ -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 } diff --git a/pkg/io/io_test.go b/pkg/io/io_test.go index 7085c54..811805f 100644 --- a/pkg/io/io_test.go +++ b/pkg/io/io_test.go @@ -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) { diff --git a/pkg/models/thumbnail.go b/pkg/models/thumbnail.go index c2add5b..4649af6 100644 --- a/pkg/models/thumbnail.go +++ b/pkg/models/thumbnail.go @@ -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 ( diff --git a/pkg/ui/elements.go b/pkg/ui/elements.go index 8f31ba7..9dd859d 100644 --- a/pkg/ui/elements.go +++ b/pkg/ui/elements.go @@ -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. diff --git a/pkg/ui/menus.go b/pkg/ui/menus.go index 529a43c..a41a101 100644 --- a/pkg/ui/menus.go +++ b/pkg/ui/menus.go @@ -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 diff --git a/pkg/ui/model.go b/pkg/ui/model.go index defde2e..d9ddfb0 100644 --- a/pkg/ui/model.go +++ b/pkg/ui/model.go @@ -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 { @@ -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} } diff --git a/pkg/ui/model_test.go b/pkg/ui/model_test.go index 22bbbc1..584b6d3 100644 --- a/pkg/ui/model_test.go +++ b/pkg/ui/model_test.go @@ -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) {