Even more rebranding
This commit is contained in:
parent
fe67eba75e
commit
ba664dc848
10
config.h
10
config.h
@ -6,11 +6,11 @@
|
||||
#define USE_LIBSEXY
|
||||
#define USE_IPV6
|
||||
#define HAVE_ISO_CODES
|
||||
#define PACKAGE_NAME "xchat"
|
||||
#define PACKAGE_VERSION "1508-3"
|
||||
#define XCHAT_RELEASE "2.8.8"
|
||||
#define PACKAGE_NAME "hexchat"
|
||||
#define PACKAGE_VERSION "2.9.0"
|
||||
#define XCHAT_REVISION "1508"
|
||||
#define XCHATLIBDIR "."
|
||||
#define XCHATSHAREDIR "."
|
||||
#define OLD_PERL
|
||||
#define GETTEXT_PACKAGE "xchat"
|
||||
#define PACKAGE_TARNAME "xchat-2.8.8"
|
||||
#define GETTEXT_PACKAGE "hexchat"
|
||||
#define PACKAGE_TARNAME "hexchat-2.9.0"
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
static xchat_plugin *ph; /* plugin handle */
|
||||
static const char name[] = "Update Checker";
|
||||
static const char desc[] = "Check for XChat-WDK updates automatically";
|
||||
static const char desc[] = "Check for HexChat updates automatically";
|
||||
static const char version[] = "2.1";
|
||||
|
||||
static char*
|
||||
@ -43,7 +43,7 @@ check_version ()
|
||||
}
|
||||
|
||||
hFile = InternetOpenUrl (hINet,
|
||||
"http://xchat-wdk.googlecode.com/git/version.txt?r=wdk",
|
||||
"https://raw.github.com/hexchat/hexchat/master/version.txt",
|
||||
NULL,
|
||||
0,
|
||||
INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_RELOAD,
|
||||
@ -98,8 +98,8 @@ check_version ()
|
||||
}
|
||||
|
||||
hConnect = InternetConnect (hOpen,
|
||||
TEXT ("xchat-wdk.googlecode.com"),
|
||||
INTERNET_INVALID_PORT_NUMBER,
|
||||
TEXT ("raw.github.com"),
|
||||
INTERNET_DEFAULT_HTTPS_PORT,
|
||||
NULL,
|
||||
NULL,
|
||||
INTERNET_SERVICE_HTTP,
|
||||
@ -113,11 +113,11 @@ check_version ()
|
||||
|
||||
hResource = HttpOpenRequest (hConnect,
|
||||
TEXT ("GET"),
|
||||
TEXT ("/git/version.txt?r=wdk"),
|
||||
TEXT ("/hexchat/hexchat/master/version.txt"),
|
||||
TEXT ("HTTP/1.0"),
|
||||
NULL,
|
||||
NULL,
|
||||
INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_RELOAD | INTERNET_FLAG_NO_AUTH,
|
||||
INTERNET_FLAG_SECURE | INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_RELOAD | INTERNET_FLAG_NO_AUTH,
|
||||
0);
|
||||
if (!hResource)
|
||||
{
|
||||
@ -154,20 +154,20 @@ print_version ()
|
||||
{
|
||||
char *version = check_version ();
|
||||
|
||||
if (strcmp (version, xchat_get_info (ph, "wdk_version")) == 0)
|
||||
if (strcmp (version, xchat_get_info (ph, "version")) == 0)
|
||||
{
|
||||
xchat_printf (ph, "You have the latest version of XChat-WDK installed!\n");
|
||||
xchat_printf (ph, "You have the latest version of HexChat installed!\n");
|
||||
}
|
||||
else if (strcmp (version, "Unknown") == 0)
|
||||
{
|
||||
xchat_printf (ph, "Unable to check for XChat-WDK updates!\n");
|
||||
xchat_printf (ph, "Unable to check for HexChat updates!\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef _WIN64 /* use this approach, the wProcessorArchitecture method always returns 0 (=x86) for some reason */
|
||||
xchat_printf (ph, "An XChat-WDK update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/XChat-WDK%%20%s%%20x64.exe\n", version);
|
||||
xchat_printf (ph, "A HexChat update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/HexChat%%20%s%%20x64.exe\n", version);
|
||||
#else
|
||||
xchat_printf (ph, "An XChat-WDK update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/XChat-WDK%%20%s%%20x86.exe\n", version);
|
||||
xchat_printf (ph, "A HexChat update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/HexChat%%20%s%%20x86.exe\n", version);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -180,12 +180,12 @@ print_version_quiet (void *userdata)
|
||||
char *version = check_version ();
|
||||
|
||||
/* if it's not the current version AND not network error */
|
||||
if (!(strcmp (version, xchat_get_info (ph, "wdk_version")) == 0) && !(strcmp (version, "Unknown") == 0))
|
||||
if (!(strcmp (version, xchat_get_info (ph, "version")) == 0) && !(strcmp (version, "Unknown") == 0))
|
||||
{
|
||||
#ifdef _WIN64 /* use this approach, the wProcessorArchitecture method always returns 0 (=x86) for plugins for some reason */
|
||||
xchat_printf (ph, "An XChat-WDK update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/XChat-WDK%%20%s%%20x64.exe\n", version);
|
||||
xchat_printf (ph, "A HexChat update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/HexChat%%20%s%%20x64.exe\n", version);
|
||||
#else
|
||||
xchat_printf (ph, "An XChat-WDK update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/XChat-WDK%%20%s%%20x86.exe\n", version);
|
||||
xchat_printf (ph, "A HexChat update is available! You can download it from here:\nhttp://xchat-wdk.googlecode.com/files/HexChat%%20%s%%20x86.exe\n", version);
|
||||
#endif
|
||||
/* print update url once, then stop the timer */
|
||||
return 0;
|
||||
|
@ -365,7 +365,7 @@ printInfo (char *word[], char *word_eol[], void *user_data)
|
||||
{
|
||||
/* uptime will work correctly for up to 50 days, should be enough */
|
||||
xchat_commandf (ph, "ME ** WinSys ** Client: HexChat %s (x%d) ** OS: %s ** CPU: %s (%s) ** RAM: %s ** VGA: %s ** Uptime: %.2f Hours **",
|
||||
xchat_get_info (ph, "wdk_version"),
|
||||
xchat_get_info (ph, "version"),
|
||||
getCpuArch (),
|
||||
wmiOs,
|
||||
wmiCpu,
|
||||
@ -375,7 +375,7 @@ printInfo (char *word[], char *word_eol[], void *user_data)
|
||||
}
|
||||
else
|
||||
{
|
||||
xchat_printf (ph, " * Client: HexChat %s (x%d)\n", xchat_get_info (ph, "wdk_version"), getCpuArch ());
|
||||
xchat_printf (ph, " * Client: HexChat %s (x%d)\n", xchat_get_info (ph, "version"), getCpuArch ());
|
||||
xchat_printf (ph, " * OS: %s\n", wmiOs);
|
||||
xchat_printf (ph, " * CPU: %s (%s)\n", wmiCpu, getCpuMhz ());
|
||||
xchat_printf (ph, " * RAM: %s\n", getMemoryInfo ());
|
||||
|
@ -116,7 +116,7 @@ int xchat_plugin_init(xchat_plugin *plugin_handle, char **plugin_name, char **pl
|
||||
/************************* Add our icon to the tray ************************************************************************/
|
||||
/***************************************************************************************************************************/
|
||||
char szVersion[64];
|
||||
_snprintf(szVersion, 64, "HexChat %s", xchat_get_info(ph, "wdk_version"));
|
||||
_snprintf(szVersion, 64, "HexChat %s", xchat_get_info(ph, "version"));
|
||||
AddIcon(g_hXchatWnd, 1, g_hIcons[0], szVersion, (NIF_ICON | NIF_MESSAGE | NIF_TIP), WM_TRAYMSG);
|
||||
|
||||
/***************************************************************************************************************************/
|
||||
|
@ -1010,20 +1010,13 @@ xchat_get_info (xchat_plugin *ph, const char *id)
|
||||
return XCHATLIBDIR;
|
||||
|
||||
case 0x14f51cd8: /* version */
|
||||
#ifdef WIN32
|
||||
return XCHAT_RELEASE;
|
||||
#else
|
||||
return PACKAGE_VERSION;
|
||||
#endif
|
||||
|
||||
case 0xdd9b1abd: /* xchatdir */
|
||||
return get_xdir_utf8 ();
|
||||
|
||||
case 0xe33f6c4a: /* xchatdirfs */
|
||||
return get_xdir_fs ();
|
||||
|
||||
case 0x3d1e70d7: /* wdk_version */
|
||||
return PACKAGE_VERSION;
|
||||
}
|
||||
|
||||
sess = ph->context;
|
||||
|
@ -117,7 +117,7 @@ menu_about (GtkWidget * wid, gpointer sess)
|
||||
"<span size=\"x-large\"><b>"DISPLAY_NAME" "PACKAGE_VERSION"</b></span>\n"
|
||||
#ifdef WIN32
|
||||
"%s%s%s"
|
||||
"\n<b>XChat Release</b>: "XCHAT_RELEASE"\n\n"
|
||||
"\n<b>XChat Revision</b>: r"XCHAT_REVISION"\n\n"
|
||||
"<b>OS</b>: %s\n"
|
||||
"<b>Charset</b>: %s "
|
||||
"<b>GTK+</b>: %i.%i.%i\n"
|
||||
|
Loading…
Reference in New Issue
Block a user