home *** CD-ROM | disk | FTP | other *** search
- Apollo #1 @11138
- Sun Jun 25 22:36:49 1995
- ┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
- │ Mod Name: Edit00.424 Mod Authors: Editor 149 │
- │ Difficulty: ██▒▒▒▒▒▒▒▒(1.5/10) @11138.WWIVNet │
- │ WWIV Version: v4.24 @2939 TERRANet, IceNet, SierraLink │
- │ Date: 06/19/95 @2938 CyberNet │
- │ Files Affected: BBSUTL.C │
- │ Description: Use seperate string file for Editor's strings │
- │ Fix Logging Language Problems. │
- └─────────────────────────────────────────────────────────────────────────┘
-
- Extended Description:
- I don't know about you, but I keep my strings External to save on Dgroup
- space, and I really don't like it when my logs contain several different
- languages, so I wrote this mod.
-
- Copyright Disclaimer:
- (c) 1995 Editor a.k.a #149@Retreat of the Gods (209) 537-2808
- This mod is written for use by REGISTERED WWIV SysOps, as they are the only
- ones who should have the source code. SysOps may freely upload this mod to
- any BBS or online service provided it is not edited in any way except to
- remove messge headers and/or taglines. Shareware CDROM vendors are prohibited
- from distributing this mod without EXPRESS WRITTEN CONSENT from the author &
- Wayne Bell, Author of WWIV BBS Software.
- Parts of the code shown in this mod are:
- Copyright (C) 1988-1993 by Wayne Bell.
-
- BACKUP your source
-
- LEGEND:
- = Old code, Search for this
- + New code, Add this
- - Remove or comment out this
- ... Go down several lines in the same function
-
- Open: BBSUTL.C
- Find: int set_language_1(int n)
- = printf("Copy ENGLISH.STR from the distribution archive to %sBBS.STR\n",
- = languagedir);
- = }
- = fail=1;
- = }
- =
- = if (n==0) {
- -/* if (set_strings_fn(1, languagedir, "SYSOPLOG.STR", 0)) {
- - Removed for Edit00.424 */
- + if (set_strings_fn(1, syscfg.gfilesdir, "SYSOPLOG.STR", 0)) {
- + /* Edit00.424 */
- -/* printf("Couldn't open %sSYSOPLOG.STR for language #%d\n",
- - languagedir, n);
- - Removed for Edit00.424 */
- + printf("Couldn't open %sSYSOPLOG.STR for language #%d\n",
- + syscfg.gfilesdir, n);
- + /* Edit00.424 */
- -/* printf("Copy SYSOPLOG.STR from the distribution archive to %sSYSOPLOG.STR\n",
- - languagedir );
- - Removed for Edit00.424 */
- + printf("Copy SYSOPLOG.STR from the distribution archive to %sSYSOPLOG.STR\n",
- + syscfg.gfilesdir);
- + /* Edit00.424 */
- = fail=1;
- = }
- = }
- .
- .
- .
- = return(fail);
- =
- = set_strings_fn(2, languagedir, "YES.STR", 0);
- = set_strings_fn(3, languagedir, "NO.STR", 0);
- + set_strings_fn(6, syscfg.gfilesdir, "EDITOR.STR", 0);
- + /* Edit00.424 */
- =
- = strncpy(str_yes,get_string(1), sizeof(str_yes)-1);
- = strncpy(str_no,get_string(2), sizeof(str_no)-1);
- = strncpy(str_quit,get_string(929), sizeof(str_quit)-1);
-
- In order to use EDITOR.STR you only need to do a get_stringx(6,#) where #
- is the string number in the EDITOR.STR file, and put that call anyplace you
- want to add a sting to your source. Put EDITOR.STR and SYSOPLOG.STR in your
- gfiles directory.
-
-
- Done.
-
- Save, Recompile and run.
- As you can see, it's very easy and you only have to change one Function!
-
- Editor
-