From eaf1f8f8ce68b80ebdcefb45896461a89b47e1e1 Mon Sep 17 00:00:00 2001 From: Wiimm Date: Mon, 3 Aug 2020 15:37:47 +0200 Subject: SZS v2.19b: Bug fix for command wlect LPAR --- project/src/lib-lecode.c | 4 ---- project/src/ui/tab-wstrt.inc | 2 +- project/src/ui/ui-wstrt.c | 2 +- project/src/ui/ui.def | 4 ++++ 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'project/src') diff --git a/project/src/lib-lecode.c b/project/src/lib-lecode.c index 6b1bd68..b6f52d3 100644 --- a/project/src/lib-lecode.c +++ b/project/src/lib-lecode.c @@ -743,10 +743,6 @@ enumError WriteSectionLPAR } fprintf(f,"%s\n",PrintChatMode(i,mode1,mode2,export_count)); - if (export_count) - fprintf(f,"M%02u = %4u # %s\n",i+1,mode1,GetChatModeName(mode1)); - else - fprintf(f,"M%02u = %s\n",i+1,GetChatModeName(mode1)); } } return ERR_OK; diff --git a/project/src/ui/tab-wstrt.inc b/project/src/ui/tab-wstrt.inc index 841a4e7..fcdc3aa 100644 --- a/project/src/ui/tab-wstrt.inc +++ b/project/src/ui/tab-wstrt.inc @@ -466,7 +466,7 @@ " This is done after loading a DOL and before analysing" " and patching to allow re-patching." }, - { H_OPT_C, "ADD_LECODE", "add-lecode|addlecode", + { T_OPT_C, "ADD_LECODE", "add-lecode|addlecode", 0, "Add LE-CODE starter to main.dol." }, diff --git a/project/src/ui/ui-wstrt.c b/project/src/ui/ui-wstrt.c index 463ab65..1f4f80b 100644 --- a/project/src/ui/ui-wstrt.c +++ b/project/src/ui/ui-wstrt.c @@ -147,7 +147,7 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] = "Ignore non existing source files without warning." }, - { OPT_ADD_LECODE, false, true, false, false, false, 0, "add-lecode", + { OPT_ADD_LECODE, false, false, false, false, false, 0, "add-lecode", 0, "Add LE-CODE starter to main.dol." }, diff --git a/project/src/ui/ui.def b/project/src/ui/ui.def index 85ba906..ec5d3ae 100644 --- a/project/src/ui/ui.def +++ b/project/src/ui/ui.def @@ -22080,6 +22080,10 @@ " after loading a DOL and before analysing and patching to allow" \ " re-patching." ) +#:def_opt( "ADD_LECODE", "add-lecode|addlecode", "C", \ + "", \ + "Add LE-CODE starter to main.dol." ) + #:def_opt( "ADD_CTCODE", "add-ctcode|addctcode", "C", \ "", \ "If source is an original main.dol file of MKWii, then append 2" \ -- cgit v1.3.1