{"id":328,"date":"2009-12-26T01:04:40","date_gmt":"2009-12-26T00:04:40","guid":{"rendered":"http:\/\/drmccoy.de\/gobsmacked\/?p=328"},"modified":"2009-12-26T01:11:28","modified_gmt":"2009-12-26T00:11:28","slug":"the-aforementioned-cursor-inconvenience","status":"publish","type":"post","link":"https:\/\/drmccoy.de\/gobsmacked\/?p=328","title":{"rendered":"The aforementioned cursor inconvenience"},"content":{"rendered":"<p>In the <a href=\"?p=268\">previous post<\/a>, I mentioned an inconvenience with the cursors. Here&#8217;s the gist of it:<\/p>\n<p>In Dark Seed II, the cursors are embedded into the resource part of the Windows 3.x (NE, &#8220;New Executable&#8221;) executable dark0001.exe. Specs are available on the Microsoft website, but they don&#8217;t quite match the executable, which claims that each cursor is only 32 byte big.<!--more--><\/p>\n<p>I did manage to extract the cursors in the end, with the help of the great tool &#8220;Multi Ripper&#8221; (a project that sadly appears to be dead). But when I then began to look for the resulting cursors in the Dark Seed executable, I couldn&#8217;t find them there, at least not directly: The headers are, only partly though, in the resource table, where you would expect them. However, the cursors&#8217; data are at a completely different place, a place that I couldn&#8217;t construct with any of the offsets I read from the various tables. So I am completely at a loss.<\/p>\n<p>Running Multi Ripper through a disassembler didn&#8217;t really help either, since it&#8217;s either deliberately obfuscated, or just completely unreadable due to it being written mostly in Clipper (yeah o_O). The link to a wine resource compiler <a href=\"http:\/\/blog.quendi.de\/\">Fingolfin<\/a> send me didn&#8217;t help either (thanks again for looking, though); that compiler agrees with neither the specs, nor with the executable.<\/p>\n<p>Since I was able to at least extract the cursors, I did what I had to do: hard-code the cursor data. So right now, the Dark Seed II engine comes with about 10kb of static cursor data. Not much of a problem, but certainly not as &#8220;nice&#8221; and clean as I&#8217;d like.<\/p>\n<p>Well, if any of you happens to know a thing or two about resource tables in New Executables, please, pipe in and tell me what I did horribly wrong. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous post, I mentioned an inconvenience with the cursors. Here&#8217;s the gist of it: In Dark Seed II, the cursors are embedded into the resource part of the Windows 3.x (NE, &#8220;New Executable&#8221;) executable dark0001.exe. Specs are available on the Microsoft website, but they don&#8217;t quite match the executable, which claims that each [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,61],"tags":[31,28,32,33,62],"_links":{"self":[{"href":"https:\/\/drmccoy.de\/gobsmacked\/index.php?rest_route=\/wp\/v2\/posts\/328"}],"collection":[{"href":"https:\/\/drmccoy.de\/gobsmacked\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/drmccoy.de\/gobsmacked\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/drmccoy.de\/gobsmacked\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/drmccoy.de\/gobsmacked\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=328"}],"version-history":[{"count":6,"href":"https:\/\/drmccoy.de\/gobsmacked\/index.php?rest_route=\/wp\/v2\/posts\/328\/revisions"}],"predecessor-version":[{"id":335,"href":"https:\/\/drmccoy.de\/gobsmacked\/index.php?rest_route=\/wp\/v2\/posts\/328\/revisions\/335"}],"wp:attachment":[{"href":"https:\/\/drmccoy.de\/gobsmacked\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/drmccoy.de\/gobsmacked\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/drmccoy.de\/gobsmacked\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}