Skip to content

Commit

Permalink
add Stream link to About Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
bazz1tv committed Feb 20, 2021
1 parent c9d43a8 commit f345505
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pc/shared/Organization.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@

/* use HTTP so it can be easily forwarded in the future. Site will automatically
convert it to HTTPS */
#define WIKI_URL "https://wiki.snestracker.com"
#define PATREON_URL "http://patreon.snestracker.com"
#define MERCH_URL "http://shop.snestracker.com"
#define STREAM_URL "https://stream.snestracker.com"
#define SOUNDCLOUD_URL "https://soundcloud.snestracker.com"
#define WIKI_URL "https://wiki.snestracker.com"
#define TWITTER_URL "https://twitter.snestracker.com"
#define TWITTER_URL "https://twitter.snestracker.com"
5 changes: 5 additions & 0 deletions pc/tracker/Menu_Bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,11 @@ int Menu_Bar::About_Context::clicked_wiki(void *nada)
openUrl(WIKI_URL);
}

int Menu_Bar::About_Context::clicked_stream(void *nada)
{
DEBUGLOG("CLICKED STREAM\n");
openUrl(STREAM_URL);
}
int Menu_Bar::About_Context::clicked_twitter(void *nada)
{
DEBUGLOG("CLICKED TWITTER\n");
Expand Down
4 changes: 3 additions & 1 deletion pc/tracker/Menu_Bar.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ struct Menu_Bar
static int clicked_merch(void *nada);
static int clicked_soundcloud(void *nada);
static int clicked_wiki(void *nada);
static int clicked_stream(void *nada);
static int clicked_twitter(void *nada);

Expanding_List menu;
Context_Menu_Item menu_items[9] =
Context_Menu_Item menu_items[10] =
{
{ "About", true, NULL, NULL },
{"-", true, NULL, NULL, false},
Expand All @@ -126,6 +127,7 @@ struct Menu_Bar
{ "Patreon \x01", true, clicked_patreon, NULL },
{ "Gift Shop", true, clicked_merch, NULL },
{ "Soundcloud", true, clicked_soundcloud, NULL },
{ "Stream", true, clicked_stream, NULL },
{ "Twitter", true, clicked_twitter, NULL },
{"", false, NULL, NULL}
};
Expand Down

0 comments on commit f345505

Please sign in to comment.