From efe69a5b43a3d2e32e9f91fe7d1a79d63bd7f036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Wed, 25 Mar 2009 21:12:23 +0000 Subject: [PATCH] add part of etillite's layout patch (sf patch #2528951) which adds extended layout support for kcl files; disable/change some untested layouts in the automatic detection Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3329 --- src/dos/dos_keyboard_layout.cpp | 40 +++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/src/dos/dos_keyboard_layout.cpp b/src/dos/dos_keyboard_layout.cpp index 704f80ac..af61708a 100644 --- a/src/dos/dos_keyboard_layout.cpp +++ b/src/dos/dos_keyboard_layout.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos_keyboard_layout.cpp,v 1.19 2009-02-01 14:24:36 qbix79 Exp $ */ +/* $Id: dos_keyboard_layout.cpp,v 1.20 2009-03-25 21:12:23 c2woody Exp $ */ #include "dosbox.h" #include "bios.h" @@ -172,8 +172,11 @@ static Bit32u read_kcl_file(const char* kcl_file_name, const char* layout_id, bo Bit8u data_len=rbuf[2]; char lng_codes[258]; + fseek(tempfile, -2, SEEK_CUR); // get all language codes for this layout for (Bitu i=0; i