From f36bb10f5435089edbf0447af04355284bc06c84 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Sat, 26 Mar 2022 12:37:29 -0400 Subject: [PATCH] Add support for Versions. --- .../xcschemes/xcschememanagement.plist | 4 +- Listener/main.h | 11 +++++ Listener/main.rez | 46 +++++++++++++++++++ 3 files changed, 59 insertions(+), 2 deletions(-) diff --git a/Listener.xcodeproj/xcuserdata/jrand.xcuserdatad/xcschemes/xcschememanagement.plist b/Listener.xcodeproj/xcuserdata/jrand.xcuserdatad/xcschemes/xcschememanagement.plist index c5f3a4c..44359be 100644 --- a/Listener.xcodeproj/xcuserdata/jrand.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/Listener.xcodeproj/xcuserdata/jrand.xcuserdatad/xcschemes/xcschememanagement.plist @@ -12,7 +12,7 @@ Binary.xcscheme_^#shared#^_ orderHint - 4 + 3 DiskImage.xcscheme_^#shared#^_ @@ -27,7 +27,7 @@ doNotBuild.xcscheme_^#shared#^_ orderHint - 3 + 4 diff --git a/Listener/main.h b/Listener/main.h index cc3d162..c86b2c4 100644 --- a/Listener/main.h +++ b/Listener/main.h @@ -13,5 +13,16 @@ #define windowRes 1001 +/* Update Info */ +#define UPDATE_INFO 1 + + +/* Strings */ +#define DISPLAY_NAME_STR 2000 +#define AUTHOR_NAME_STR 2001 +#define DOWNLOAD_URL_STR 2002 +#define ARCHIVE_STR 2003 +#define VERSIONS_DATA_FILE_STR 2004 + #endif /* defined(_GUARD_PROJECTListener_FILEmain_) */ diff --git a/Listener/main.rez b/Listener/main.rez index cb3192a..1c6e5a7 100644 --- a/Listener/main.rez +++ b/Listener/main.rez @@ -26,6 +26,52 @@ resource rVersion (1) { }; +/* Update info */ +#define rUpdateInfo $DEAD /* RIP Jerry Garcia */ +/*--------------------- rUpdateInfo -------------------------*/ +type rUpdateInfo { + integer = 0; /* version must be zero */ + longint; /* Resource ID of string holding app's display name */ + longint; /* ID of string holding author's name */ + longint; /* ID of string URL to the downloads folder */ + longint; /* ID of string for downloadable archive name */ + longint; /* ID of string for Versions.List data file */ +}; + + +resource rPString (DISPLAY_NAME_STR, $0000) { + "Listener" +}; + + +resource rPString (AUTHOR_NAME_STR, $0000) { + "Jeremy Rand" +}; + + +resource rPString (DOWNLOAD_URL_STR, $0000) { + "http://downloads.rand-emonium.com/files/" +}; + + +resource rPString (ARCHIVE_STR, $0000) { + "Listener092.shk" +}; + + +resource rPString (VERSIONS_DATA_FILE_STR, $0000) { + "jrand" +}; + + +resource rUpdateInfo (UPDATE_INFO, $0000) { + DISPLAY_NAME_STR, // app's display name + AUTHOR_NAME_STR, // author's name + DOWNLOAD_URL_STR, // URL to downloads folder + ARCHIVE_STR, // Name of downloadable archive + VERSIONS_DATA_FILE_STR // Name of data file for Versions.List +}; + resource rWindParam1 (windowRes) { $C0A5, /* wFrameBits */ nil, /* wTitle */