Index: bindings.doc ================================================================== --- bindings.doc +++ bindings.doc @@ -71,10 +71,15 @@ '^+' Toggle insertion mode. Insertion mode is automatically reset when restarting a level or when accessing a different level. +'^?' + Displays some debugging information. (What information is displayed and + how it is formatted may be changed (or possibly removed entirely) in + future; you should rely on it.) + '^D' Delete all moves forward. '^I' Toggle the inventory/move-list display. Index: comconfig.doc ================================================================== --- comconfig.doc +++ comconfig.doc @@ -11,11 +11,13 @@ default value will be used). Should be a 32-bit integer represented in decimal notation, as a string token (not as a numeric token). CONFIG_DEFAULT_RESOURCES If defined, read resource configuration from the specified file if - it cannot find the configuration file in the home directory. + it cannot find the configuration file in the home directory. (If + CONFIG_USING_APPIMAGE is also defined, then the path is relative to + AppDir; otherwise, it should be an absolute path.) CONFIG_EXTRA_SCREEN_INIT Can be a C code to be executed after the video mode is set, but before any other screen initialization is done. @@ -104,10 +106,11 @@ CONFIG_OMIT_GUI If defined, omit the GUI. Autotest mode can still be used, and the batch import/export works if CONFIG_OMIT_EDITOR is not defined. Any other feature which does not require the GUI also can still be used. + (This implies CONFIG_OMIT_CODEPAGE, CONFIG_OMIT_SOUND, and others.) CONFIG_OMIT_MUSIC If defined, omit background music playback capabilities. (Even if this is not defined, it can still be disabled at runtime.) @@ -121,20 +124,23 @@ SQL RANDOM() function if it is defined.) CONFIG_USERCACHE_PERMISSIONS If defined as a octal number, set the default file permissions of the user cache database when creating it. (The user can still change them - afterward by using chmod.) + afterward by using chmod; this only applies if the file does not already + exist and needs to be created.) CONFIG_USING_32BIT_COORDINATES If defined, allow 32-bit coordinates in SDL_Rect and in other graphics functions of SDL. CONFIG_USING_APPIMAGE If defined, it will check the environment variables having to do with AppImage and will be able to load the default resources from there, as well as allow the configuration file to reference the AppImage directory. + (You should probably also define CONFIG_NO_PORTABLE, since AppImage has + its own way of implementing portable mode.) CONFIG_USING_ARM_NEON If defined, use ARM NEON extensions. This only works on ARM. CONFIG_USING_BSD_FUNCTIONS Index: game.c ================================================================== --- game.c +++ game.c @@ -1298,10 +1298,18 @@ case '^+': // Insert moves if(solution_replay) return 0; inputs_count=0; inserting^=1; return 0; + case '^?': // Debug information + printf("timerflag=%d exam_scroll=%d inputs_size=%d inputs_count=%d\n",timerflag,exam_scroll,(int)inputs_size,inputs_count); + printf("side_mode=%d replay_speed=%d replay_time=%d solved=%d\n",side_mode,replay_speed,replay_time,solved); + printf("should_record_solution=%d should_record_private_solution=%d\n",should_record_solution,should_record_private_solution); + printf("autowin=%p inserting=%d saved_inserting=%d solution_replay=%d\n",autowin,inserting,saved_inserting,solution_replay); + printf("replay_size=%d replay_count=%d replay_pos=%d replay_mark=%d\n",(int)replay_size,replay_count,replay_pos,replay_mark); + printf("best_list=%p strlen(best_list)=%d best_score=%d\n",best_list,(int)strlen(best_list?:""),best_score); + return -3; case '^D': // Delete all moves forward inputs_count=0; if(solution_replay) { screen_message("You cannot delete moves during the solution replay"); return -3;