From 1b9e3118374a13dc12652d87b1dd3d1ccfecbbf3 Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 3 Sep 2026 23:49:29 +0200 Subject: embed language & unicode tables into main executables use KITTENC to embed all NLS files into executable KITTENC does not allow loading external files anymore... embed the cp???uni.tbl (codepage -> unicode conversion tables) into the main executable too. however, we will still try to find them in PATH if user cp is missing from the internal ones. this means the distribution zip/flp now contain much fewer files. con: some utilities now need to built in the host (kittenc & unitbl2c) this may make the build less portable; so far unix and dos/386 still work. --- mousmain.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mousmain.c') diff --git a/mousmain.c b/mousmain.c index 02540de..24801b7 100644 --- a/mousmain.c +++ b/mousmain.c @@ -35,8 +35,6 @@ #include "dostsr.h" #include "mousetsr.h" -static nl_catd cat; - #if USE_WHEEL static bool detect_ps2_wheel(LPTSRDATA data) { @@ -761,7 +759,7 @@ int main(int argc, const char *argv[]) LPTSRDATA data = get_tsr_data(true); int err, argi = 1; - cat = kittenopen("vbmouse"); + kittenopen(argv[0]); printf(_(1, 20, "\nVBMouse %x.%x (reporting as MSMOUSE %x.%x)\n"), VERSION_MAJOR, VERSION_MINOR, REPORTED_VERSION_MAJOR, REPORTED_VERSION_MINOR); -- cgit v1.2.3