-inline void InitProgramInfo(char *command_name, char *program_title,
- char *window_title, char *icon_title,
- char *x11_icon_filename,
- char *x11_iconmask_filename,
- char *msdos_pointer_filename)
+void InitCommandName(char *argv0)
+{
+ program.command_basename =
+ (strrchr(argv0, '/') ? strrchr(argv0, '/') + 1 : argv0);
+}
+
+void InitExitFunction(void (*exit_function)(int))
+{
+ program.exit_function = exit_function;
+}
+
+void InitPlatformDependantStuff(void)
+{
+#if defined(PLATFORM_MSDOS)
+ _fmode = O_BINARY;
+#endif
+}
+
+void InitProgramInfo(char *unix_userdata_directory, char *program_title,
+ char *window_title, char *icon_title,
+ char *x11_icon_basename, char *x11_iconmask_basename,
+ char *msdos_pointer_basename)