<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Nice work :) Very efficient and clean solution. I'm unsure how the stringfrag<br>functions would help clean up kEditControl(). Greg's engine has a much nicer<br>and cleaner solution for that function, which we could use ourselves, which<br>seems to require no string fragment-related code to work...<br>(files kernel.cpp and controls.cpp - ControlsMgr::Edit())<br><br>Regards<br>Filippos<br><br>> Date: Sun, 27 Sep 2009 02:02:22 +0000<br>> From: wjp@usecode.org<br>> To: scummvm-devel@lists.sourceforge.net<br>> Subject: [Scummvm-devel] SCI strings<br>> <br>> Hi all,<br>> <br>> I've just committed a large update to the SCI engine, converting all string<br>> handling to work with both raw and reg_t-based segments.<br>> <br>> It's not optimally clean yet, but I thought it would be better to get things<br>> working first. For now, I've added a set of string utilities to segMan, such as<br>> <br>> strcpy(reg_t dest, reg_t src)<br>> strcpy(reg_t dest, const char* src)<br>> getString(reg_t str)<br>> <br>> and a couple of others. This allows the majority of kernel functions to work<br>> quite cleanly. However, there is still a bunch that are a bit ugly with this<br>> approach, such as kEditControl.<br>> <br>> I copied a lot of the conversion logic from stringfrag.cpp into those utility<br>> functions, but didn't delete it from stringfrag.cpp yet. It could be that some<br>> of the functions in there can be used clean up things like kEditControl.<br>> <br>> <br>> I've done some basic testing, and things generally seem to work, including for<br>> example the password feature in LSL5.<br>> <br>> <br>> Comments/improvements/tests would be very welcome :-)<br>> <br>> <br>> -Willem Jan<br>> <br>> ------------------------------------------------------------------------------<br>> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA<br>> is the only developer event you need to attend this year. Jumpstart your<br>> developing skills, take BlackBerry mobile applications to market and stay <br>> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;<br>> http://p.sf.net/sfu/devconf<br>> _______________________________________________<br>> Scummvm-devel mailing list<br>> Scummvm-devel@lists.sourceforge.net<br>> https://lists.sourceforge.net/lists/listinfo/scummvm-devel<br>                                     <br /><hr />Lauren found her dream laptop. <a href='http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290' target='_new'>Find the PC that’s right for you.</a></body>
</html>