~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/drive/drive-cmdline-options.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2006-07-30 19:15:59 UTC
  • mto: (9.1.1 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20060730191559-g31ymd2mk102kzff
Tags: upstream-1.19
ImportĀ upstreamĀ versionĀ 1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include "lib.h"
36
36
#include "machine-drive.h"
37
37
 
38
 
 
39
 
static const cmdline_option_t cmdline_options[] = {
40
 
    { "-truedrive", SET_RESOURCE, 0, NULL, NULL, "DriveTrueEmulation",
41
 
      (void *)1, NULL, "Enable hardware-level emulation of disk drives" },
42
 
    { "+truedrive", SET_RESOURCE, 0, NULL, NULL, "DriveTrueEmulation",
43
 
      (void *)0, NULL, "Disable hardware-level emulation of disk drives" },
44
 
    { NULL }
45
 
};
46
 
 
47
 
static cmdline_option_t cmd_drive[] = {
48
 
    { NULL, SET_RESOURCE, 1, NULL, NULL, NULL, NULL, "<type>",
49
 
      "Set drive type (0: no drive)" },
50
 
    { NULL, SET_RESOURCE, 1, NULL, NULL, NULL, NULL, "<method>",
51
 
      "Set drive 8 40 track extension policy (0: never, 1: ask, 2: on access)"},
52
 
    { NULL }
53
 
};
 
38
#ifdef HAS_TRANSLATION
 
39
#include "translate.h"
 
40
 
 
41
static const cmdline_option_t cmdline_options[] = {
 
42
    { "-truedrive", SET_RESOURCE, 0, NULL, NULL, "DriveTrueEmulation",
 
43
      (void *)1, 0, IDCLS_ENABLE_TRUE_DRIVE },
 
44
    { "+truedrive", SET_RESOURCE, 0, NULL, NULL, "DriveTrueEmulation",
 
45
      (void *)0, 0, IDCLS_DISABLE_TRUE_DRIVE },
 
46
    { NULL }
 
47
};
 
48
#else
 
49
static const cmdline_option_t cmdline_options[] = {
 
50
    { "-truedrive", SET_RESOURCE, 0, NULL, NULL, "DriveTrueEmulation",
 
51
      (void *)1, NULL, N_("Enable hardware-level emulation of disk drives") },
 
52
    { "+truedrive", SET_RESOURCE, 0, NULL, NULL, "DriveTrueEmulation",
 
53
      (void *)0, NULL, N_("Disable hardware-level emulation of disk drives") },
 
54
    { NULL }
 
55
};
 
56
#endif
 
57
 
 
58
#ifdef HAS_TRANSLATION
 
59
static cmdline_option_t cmd_drive[] = {
 
60
    { NULL, SET_RESOURCE, 1, NULL, NULL, NULL, NULL, IDCLS_P_TYPE,
 
61
      IDCLS_SET_DRIVE_TYPE },
 
62
    { NULL, SET_RESOURCE, 1, NULL, NULL, NULL, NULL, IDCLS_P_METHOD,
 
63
      IDCLS_SET_DRIVE_EXTENSION_POLICY},
 
64
    { NULL }
 
65
};
 
66
#else
 
67
static cmdline_option_t cmd_drive[] = {
 
68
    { NULL, SET_RESOURCE, 1, NULL, NULL, NULL, NULL, N_("<type>"),
 
69
      N_("Set drive type (0: no drive)") },
 
70
    { NULL, SET_RESOURCE, 1, NULL, NULL, NULL, NULL, N_("<method>"),
 
71
      N_("Set drive 40 track extension policy (0: never, 1: ask, 2: on access)")},
 
72
    { NULL }
 
73
};
 
74
#endif
54
75
 
55
76
int drive_cmdline_options_init(void)
56
77
{
76
97
    return machine_drive_cmdline_options_init()
77
98
        | cmdline_register_options(cmdline_options);
78
99
}
79