Skip to content

Commit

Permalink
fix url opening
Browse files Browse the repository at this point in the history
  • Loading branch information
msx80 committed Aug 24, 2024
1 parent a630ff4 commit 5606100
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ protected List<Richtext> lines() {
return Arrays.asList(
Richtext.of(12, "Doors Of Doom", 15, " - (c) 2024"),
Richtext.of(""),
Richtext.of(15, "A game by ", 14, "MSX"),
Richtext.of(15, "An open source game by ", 14, "MSX"),
Richtext.with("https://livellosegreto.it/@msx", 13, "https://livellosegreto.it/@msx"),
Richtext.of(""),
Richtext.with("https://github.com/msx80/DoorsOfDoomOmicron/", 13, "Sources on Github"),
Richtext.of(""),
Richtext.of(9, "Over 27 monsters!"),
Richtext.of(12, "Over 64 items!"),
Richtext.of(9, "Find the sweetest loot!"),
Expand Down Expand Up @@ -73,7 +75,7 @@ public void drawForeground(int x, int y) {
protected boolean selected(int idx, Richtext line) {
if (line.userdata != null) {
g.getLog().add(15, "Opening url...");
String res = (String)p.sys.hardware("URL_OPENER", "OPEN", (String) line.userdata);
String res = (String)p.sys.hardware("com.github.msx80.omicron.plugins.builtin.UrlOpenerPlugin", "OPEN", (String) line.userdata);
g.getLog().add(15, res);
}
return true;
Expand Down

0 comments on commit 5606100

Please sign in to comment.