Commit graph

1383 commits

Author SHA1 Message Date
ehouse
4e2b080be5 Add, and use, stream_putString. Saves 500 bytes on win32. 2006-04-25 13:31:15 +00:00
ehouse
1c4f0a47b7 When unable to open a dictionary whose path has been saved, look for
it elsewhere in the set of possible directories.  This should help
ease the transition to there being a limited number of places where
dicts can be, since games saved previously will still work after the
dicts they reference have been moved.  Also, clean up callbacks making
their return values consistent: true means done.
2006-04-25 04:25:08 +00:00
ehouse
7c50cacc18 On win32 too, return null when dict not found. 2006-04-24 13:36:23 +00:00
ehouse
9acbe29bf5 Replace generic "no dictionaries found" warning with list of directories searched and URL from which to download. 2006-04-24 04:34:42 +00:00
ehouse
6439096812 pass the rigth size to LoadString 2006-04-22 14:31:43 +00:00
ehouse
08b20dc431 More of dict search change: failed to save buffer before checkin 2006-04-22 14:28:22 +00:00
ehouse
ffc4de8c47 Show current dict in dropdown in game info mode. (Had disappeared in recent changes.) 2006-04-22 14:19:21 +00:00
ehouse
dcc07ad95b Go back to writing to \Program Files\Crosswords, since we now look
there automatically.
2006-04-22 14:06:11 +00:00
ehouse
e8a18f10de rewrite ceLocateNDicts to do recursive searches from a list of
directories stored in resources.  On device this is currently
"\Program Files\Crosswords" and "\SD Card".  (Just "." for win32.)
Later may need to restrict on the card too.  Still to do: make "no
dicts found" Alert list the places searched.
2006-04-22 14:05:09 +00:00
ehouse
0d5a44b596 set DEBUG in compile-command; no code change 2006-04-22 13:55:19 +00:00
ehouse
42c35363ef make combobox tall enough that it can pop down 2006-04-20 13:48:44 +00:00
ehouse
d3c3947756 rename function to link with pocketpc-sdk 2006-04-20 13:47:58 +00:00
ehouse
e867d743f8 display filename only (no path, and no extention) in dropdown, but retain full path internally to use after choice is made. 2006-04-20 04:39:46 +00:00
ehouse
23e26a3ba9 debug-only function for logging wchar_t strings 2006-04-20 04:38:40 +00:00
ehouse
ed1bac4a16 When creating dicts dropdown, set 0th as default if there's been no match. 2006-04-20 03:56:38 +00:00
ehouse
4e483b03a5 forgot to save before commiting.... 2006-04-19 04:57:51 +00:00
ehouse
25b1fb4ecf ceLocateNDicts now takes a callback. Use that to build menu of dicts
rather than call OpenFile, which doesn't let you browse much of the
file system on CE.  Heading for installing dicts in Program Files so
users never have to worry about them.
2006-04-19 04:56:00 +00:00
ehouse
936e4868a2 Install into /My Documents/Crosswords since that's the only place the
OpenFile dialog will let you browse.  And use filename as -a option so
more than one dictionary can be installed -- without that the
installer treats all dicts as versions of the same app and removes the
old before installing the new.
2006-04-16 05:49:59 +00:00
ehouse
76c6a56f93 Rewrite dictionary location code so that it can more effeciently
produce a list of dictionaries.  The API has changed slightly, but the
new ability isn't used yet.
2006-04-16 05:12:52 +00:00
ehouse
144e7b408b Seems to work to pack a .xwd file so that it's installed on a device
when clicked.  Still haven't figured out how to include info about the
app name, developer name etc.
2006-04-15 23:46:24 +00:00
ehouse
588514a6f9 exit if can't open table file; include assert for compile on sarge 2006-04-14 08:23:28 +00:00
ehouse
936fdc0a6c For already-sorted case, read words from file on as-needed basis rather
than build a vector to hold them.
2006-04-14 05:23:30 +00:00
ehouse
922ffab3a3 Use new compiled dict2dawg when present. 2006-04-13 15:30:15 +00:00
ehouse
c270729bbb A final bit of cleanup. All the perl is gone. 2006-04-13 04:04:03 +00:00
ehouse
52b19880ee Cleanup: remove dead code. 2006-04-13 03:58:54 +00:00
ehouse
a028918a3b Use a single huge buffer for all strings rather than calling malloc
for each.  Makes a measureable speed difference.
2006-04-13 03:52:48 +00:00
ehouse
1325f83659 debug: works now! Also ifdef out debug/verbose code. 2006-04-13 03:49:41 +00:00
ehouse
36c6cd214b print letter as well as tile in text dumps (same as cpp version) 2006-04-13 03:06:18 +00:00
ehouse
3f4faae5b5 add -debug arg for parity with cpp version, and add -mn flag to usage(). 2006-04-13 02:58:39 +00:00
ehouse
271662a45f Tons of changes continuing port from perl. Doesn't quite work yet, but close. 2006-04-13 02:57:43 +00:00
ehouse
cfba77ff01 Starting work on cpp version of dict2dawg.pl. This is nowhere near complete. 2006-04-12 04:39:49 +00:00
ehouse
0dbc2e6557 don't exclude BEYOND_IR-only fields 2006-04-07 03:08:23 +00:00
ehouse
bdd4eec3be Catch up with draw.h API changes (mostly just adding consts) 2006-04-04 02:43:12 +00:00
ehouse
b05fe65389 Quick meaningless checkin (update comments) to check svn config 2006-04-03 03:37:53 +00:00
ehouse
0f6437345b Draw bitmap chars ("specials", e.g. for Spanish) centered in rect
rather than at x,y.  This lines them up with normal letters on the
board as it changes size.
2006-04-02 22:27:44 +00:00
ehouse
ea812d81ea Fix crash when no dictionary by checking for null model before calling
cePositionBoard on WM_SETTINGCHANGE event
2006-04-02 21:52:15 +00:00
ehouse
01d7f9b344 Get rid of TALL_FONT macro, since it's permanently on anyway. 2006-04-01 21:25:58 +00:00
ehouse
13b7fa62aa Add macros to draw.h, and use 'em for wince, so that a platform can choose to call draw.h methods via a vtable or static linking. 2006-04-01 21:01:20 +00:00
ehouse
d73a030afd trying to add svn:ignore property 2006-04-01 20:53:08 +00:00
ehouse
d5a470bfb5 Fix formatting (by way of playing with svn) 2006-04-01 16:54:40 +00:00
ehouse
dcdab54fce Catch up with API changes (all adding const to rect and char ptrs) 2006-04-01 16:48:13 +00:00
ehouse
cc6251b595 Remove HIGHRES compile-time tests: all palm releases will have HIGHRES
support now; build in different directories.
2006-03-31 10:57:01 +00:00
ehouse
d27ae08529 handle cmdline opts in a less-fancy way that works on freebsd too. 2006-03-22 04:33:34 +00:00
ehouse
ce9a913334 link pthreads in a way that works on freebsd too 2006-03-22 04:31:27 +00:00
ehouse
2bcac176e9 include stdio.h for freebsd 2006-03-21 04:05:33 +00:00
ehouse
c5257adb8f include pthread.h for freebsd 2006-03-21 04:04:43 +00:00
ehouse
e18982919c implement ResetEvent and SetEvent 2006-03-21 03:47:58 +00:00
ehouse
eca8fa28b0 use MS macro to get winsock functions instead of eponymous posix ones.
With this change, play over IP works again!
2006-03-21 03:47:15 +00:00
ehouse
eef7b20544 get rid of unneeded DH() 2006-03-20 04:13:40 +00:00
ehouse
95a3f86d85 add an underbar to separate numerals 2006-03-18 03:35:20 +00:00