Skip to content

Commit f345505

Browse files
committed
add Stream link to About Menu
1 parent c9d43a8 commit f345505

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

pc/shared/Organization.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616

1717
/* use HTTP so it can be easily forwarded in the future. Site will automatically
1818
convert it to HTTPS */
19+
#define WIKI_URL "https://wiki.snestracker.com"
1920
#define PATREON_URL "http://patreon.snestracker.com"
2021
#define MERCH_URL "http://shop.snestracker.com"
22+
#define STREAM_URL "https://stream.snestracker.com"
2123
#define SOUNDCLOUD_URL "https://soundcloud.snestracker.com"
22-
#define WIKI_URL "https://wiki.snestracker.com"
23-
#define TWITTER_URL "https://twitter.snestracker.com"
24+
#define TWITTER_URL "https://twitter.snestracker.com"

pc/tracker/Menu_Bar.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,11 @@ int Menu_Bar::About_Context::clicked_wiki(void *nada)
527527
openUrl(WIKI_URL);
528528
}
529529

530+
int Menu_Bar::About_Context::clicked_stream(void *nada)
531+
{
532+
DEBUGLOG("CLICKED STREAM\n");
533+
openUrl(STREAM_URL);
534+
}
530535
int Menu_Bar::About_Context::clicked_twitter(void *nada)
531536
{
532537
DEBUGLOG("CLICKED TWITTER\n");

pc/tracker/Menu_Bar.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,11 @@ struct Menu_Bar
114114
static int clicked_merch(void *nada);
115115
static int clicked_soundcloud(void *nada);
116116
static int clicked_wiki(void *nada);
117+
static int clicked_stream(void *nada);
117118
static int clicked_twitter(void *nada);
118119

119120
Expanding_List menu;
120-
Context_Menu_Item menu_items[9] =
121+
Context_Menu_Item menu_items[10] =
121122
{
122123
{ "About", true, NULL, NULL },
123124
{"-", true, NULL, NULL, false},
@@ -126,6 +127,7 @@ struct Menu_Bar
126127
{ "Patreon \x01", true, clicked_patreon, NULL },
127128
{ "Gift Shop", true, clicked_merch, NULL },
128129
{ "Soundcloud", true, clicked_soundcloud, NULL },
130+
{ "Stream", true, clicked_stream, NULL },
129131
{ "Twitter", true, clicked_twitter, NULL },
130132
{"", false, NULL, NULL}
131133
};

0 commit comments

Comments
 (0)