Skip to content

Commit 88f43dc

Browse files
committed
Notify when loading a core manually
1 parent 239ac5c commit 88f43dc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

menu/scene_main.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ func buildMainMenu() Scene {
3737
menu.stack = append(menu.stack, buildExplorer(
3838
"cores",
3939
[]string{".dll", ".dylib", ".so"},
40-
core.Load,
40+
func(path string) error {
41+
err := core.Load(path)
42+
if err == nil {
43+
notifications.DisplayAndLog("Core", "Core loaded.")
44+
}
45+
return err
46+
},
4147
nil,
4248
))
4349
},

0 commit comments

Comments
 (0)