CONFIG.H 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /* Header File for Gremlin Standard Config File*/
  2. #if !defined(__CONFIG_H)
  3. #define __CONFIG_H
  4. #define CONFIG_FILE "CONFIG.INI" // Name of Config File
  5. struct configint
  6. {
  7. char *name;
  8. unsigned short int *var;
  9. unsigned short int def;
  10. };
  11. // Names to search for
  12. #define SOURCE_PATH "SourcePath"
  13. #define DEST_PATH "DestinationPath"
  14. #define INSTALL_TYPE "Installation"
  15. #define LANGUAGE "Language"
  16. #define SOUND_CARD "SoundCard"
  17. #define SOUND_PORT "SoundPort"
  18. #define SOUND_IRQ "SoundIRQ"
  19. #define SOUND_DMA "SoundDMA"
  20. #define SOUND_FREQUENCY "SoundFrequency"
  21. #define SOUND_RATE "SoundIntRate"
  22. #define SOUND_HARD_BUFFER "SoundHardDiskBuffer"
  23. #define SOUND_DMA_BUFFER "SoundDMABuffer"
  24. #define MUSIC_CARD "MusicCard"
  25. #define MUSIC_PORT "MusicPort"
  26. #define MUSIC_IRQ "MusicIRQ"
  27. // Detail Level Defines
  28. enum
  29. {
  30. HIRES,
  31. LORES,
  32. HIRES_LORES
  33. };
  34. // Speech/Text Defines
  35. enum
  36. {
  37. SPEECH,
  38. TEXT,
  39. SPEECH_TEXT
  40. };
  41. // Installation Size Defines
  42. enum
  43. {
  44. STANDARD,
  45. MINIMUM,
  46. MAXIMUM,
  47. };
  48. // Language Defines
  49. enum
  50. {
  51. ENGLISH,
  52. FRANCAIS,
  53. DEUTSCH,
  54. AMERICAN,
  55. CANADIAN,
  56. NORWEGIAN
  57. };
  58. // Directory Configuration
  59. extern char SourcePath[64];
  60. extern char DestinationPath[64];
  61. // Installation Size
  62. extern unsigned short int Installation;
  63. // Language
  64. extern unsigned short int Language;
  65. // Sound Card Configuration
  66. extern unsigned short int SoundCard; // SOS ID of Sound Card
  67. extern unsigned short int SoundPort; // Port Address
  68. extern unsigned short int SoundIRQ; // Interrupt
  69. extern unsigned short int SoundDMA; // DMA Channel
  70. extern unsigned short int SoundFrequency; // Base Frequency for samples
  71. extern unsigned short int SoundIntRate; // Digital timer interrupt rate
  72. extern unsigned short int SoundHardDiskBuffer; // Hard Disk Buffer Size
  73. extern unsigned short int SoundDMABuffer; // Digital DMA Buffer Size
  74. // Music Card Configuration
  75. extern unsigned short int MusicCard; // SOS ID of Music Card
  76. extern unsigned short int MusicPort; // Music Port
  77. extern unsigned short int MusicIRQ; // Music IRQ
  78. // Reads config file and fills in variables appropriately
  79. extern short int ReadConfigFile(void);
  80. // Used internally to find a config string
  81. char *FindConfigVar(char *ptr,char *def);
  82. #endif /* __CONFIG_H */