annotate default.cfg @ 1420:975b5b7eaa77

Fix DMA from byte-wide SRAM
author Michael Pavone <pavone@retrodev.com>
date Mon, 26 Jun 2017 21:13:17 -0700
parents 62ec8be376be
children 2540c05520f2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
1
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
2 bindings {
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
3 keys {
431
440efd7d27a9 Read key bindings from config file
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
4 up gamepads.1.up
440efd7d27a9 Read key bindings from config file
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
5 down gamepads.1.down
440efd7d27a9 Read key bindings from config file
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
6 left gamepads.1.left
440efd7d27a9 Read key bindings from config file
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
7 right gamepads.1.right
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
8 a gamepads.1.a
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
9 s gamepads.1.b
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
10 d gamepads.1.c
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
11 q gamepads.1.x
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
12 w gamepads.1.y
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
13 e gamepads.1.z
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
14 f gamepads.1.mode
431
440efd7d27a9 Read key bindings from config file
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
15 enter gamepads.1.start
451
b7c3b2d22858 Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents: 445
diff changeset
16
916
20c464dbae8f Finished implementation of mouse capture mode
Michael Pavone <pavone@retrodev.com>
parents: 907
diff changeset
17 r ui.release_mouse
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
18 [ ui.vdp_debug_mode
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
19 ] ui.vdp_debug_pal
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
20 u ui.enter_debugger
1263
5f65a16c23ff Implement raw screenshot functionality requested in ticket:10
Michael Pavone <pavone@retrodev.com>
parents: 1254
diff changeset
21 p ui.screenshot
444
cc754a309ead Add fullscreen support and add a keybinding for exiting the emulator
Mike Pavone <pavone@retrodev.com>
parents: 431
diff changeset
22 esc ui.exit
468
949c7d875693 Added README file
Mike Pavone <pavone@retrodev.com>
parents: 451
diff changeset
23 ` ui.save_state
483
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
24 0 ui.set_speed.0
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
25 1 ui.set_speed.1
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
26 2 ui.set_speed.2
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
27 3 ui.set_speed.3
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
28 4 ui.set_speed.4
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
29 5 ui.set_speed.5
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
30 6 ui.set_speed.6
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
31 7 ui.set_speed.7
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
32 = ui.next_speed
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
33 - ui.prev_speed
1202
a6ae693974e0 Allow toggling full screen mode at runtime. Allow resizing the window in windowed mode. Allow specifying the aspect ratio in the config file.
Michael Pavone <pavone@retrodev.com>
parents: 1187
diff changeset
34 f11 ui.toggle_fullscreen
1208
95f5253e75c7 Implement soft reset in Genesis mode
Michael Pavone <pavone@retrodev.com>
parents: 1207
diff changeset
35 tab ui.soft_reset
1377
e587f16e7d3d Implemented SMS pause button
Michael Pavone <pavone@retrodev.com>
parents: 1328
diff changeset
36 z ui.sms_pause
1254
d966298442d4 Implement keyboard capture functionality
Michael Pavone <pavone@retrodev.com>
parents: 1208
diff changeset
37 rctrl ui.toggle_keyboard_captured
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
38 }
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
39 pads {
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
40 0 {
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
41 dpads {
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
42 0 {
881
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
43 up gamepads.1.up
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
44 down gamepads.1.down
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
45 left gamepads.1.left
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
46 right gamepads.1.right
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
47 }
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
48 }
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
49 buttons {
1187
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
50 a gamepads.1.a
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
51 b gamepads.1.b
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
52 rightshoulder gamepads.1.c
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
53 x gamepads.1.x
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
54 y gamepads.1.y
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
55 leftshoulder gamepads.1.z
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
56 back gamepads.1.mode
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
57 start gamepads.1.start
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
58 guide ui.exit
1206
32265f6b79e9 Update default config to map leftstick/l3 to quick save
Michael Pavone <pavone@retrodev.com>
parents: 1204
diff changeset
59 leftstick ui.save_state
881
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
60 }
1207
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
61 axes {
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
62 lefty.positive gamepads.1.down
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
63 lefty.negative gamepads.1.up
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
64 leftx.positive gamepads.1.right
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
65 leftx.negative gamepads.1.left
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
66 lefttrigger ui.prev_speed
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
67 righttrigger ui.next_speed
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
68 }
881
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
69 }
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
70 1 {
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
71 dpads {
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
72 0 {
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
73 up gamepads.2.up
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
74 down gamepads.2.down
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
75 left gamepads.2.left
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
76 right gamepads.2.right
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
77 }
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
78 }
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
79 buttons {
1187
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
80 #this is exactly the same mapping as above, but with PS4 style names
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
81 cross gamepads.2.a
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
82 circle gamepads.2.b
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
83 r1 gamepads.2.c
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
84 square gamepads.2.x
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
85 triangle gamepads.2.y
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
86 l1 gamepads.2.z
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
87 share gamepads.2.mode
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
88 options gamepads.2.start
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
89 guide ui.exit
1206
32265f6b79e9 Update default config to map leftstick/l3 to quick save
Michael Pavone <pavone@retrodev.com>
parents: 1204
diff changeset
90 l3 ui.save_state
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
91 }
1207
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
92 axes {
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
93 lefty.positive gamepads.2.down
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
94 lefty.negative gamepads.2.up
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
95 leftx.positive gamepads.2.right
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
96 leftx.negative gamepads.2.left
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
97 l2 ui.prev_speed
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
98 r2 ui.next_speed
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
99 }
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
100 }
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
101 }
907
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
102 mice {
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
103 0 {
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
104 motion mouse.1.motion
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
105 buttons {
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
106 1 mouse.1.left
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
107 2 mouse.1.middle
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
108 3 mouse.1.right
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
109 4 mouse.1.start
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
110 }
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
111 }
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
112 #having the second host mouse also mapped to the first emulated
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
113 #mouse is useful for laptop users with an external mouse
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
114 1 {
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
115 motion mouse.1.motion
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
116 buttons {
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
117 1 mouse.1.left
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
118 2 mouse.1.middle
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
119 3 mouse.1.right
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
120 4 mouse.1.start
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
121 }
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
122 }
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
123 }
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
124 }
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
125
645
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
126 io {
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
127 devices {
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
128 1 gamepad6.1
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
129 2 gamepad6.2
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
130 }
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
131 }
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
132
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
133 video {
1202
a6ae693974e0 Allow toggling full screen mode at runtime. Allow resizing the window in windowed mode. Allow specifying the aspect ratio in the config file.
Michael Pavone <pavone@retrodev.com>
parents: 1187
diff changeset
134 #special value "stretch" will cause aspect to match window aspect ratio
a6ae693974e0 Allow toggling full screen mode at runtime. Allow resizing the window in windowed mode. Allow specifying the aspect ratio in the config file.
Michael Pavone <pavone@retrodev.com>
parents: 1187
diff changeset
135 aspect 4:3
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
136 width 640
1402
458df351af06 Allow height to be specified in the config file and properly calculate from the aspect setting if it is not specified
Michael Pavone <pavone@retrodev.com>
parents: 1377
diff changeset
137 #height is normally calculated automatically from width using the aspect setting
458df351af06 Allow height to be specified in the config file and properly calculate from the aspect setting if it is not specified
Michael Pavone <pavone@retrodev.com>
parents: 1377
diff changeset
138 #if you would like to set it explicitly, uncomment the line below
458df351af06 Allow height to be specified in the config file and properly calculate from the aspect setting if it is not specified
Michael Pavone <pavone@retrodev.com>
parents: 1377
diff changeset
139 #height 480
498
51bf87f76d15 Pull shader file names from config file.
Mike Pavone <pavone@retrodev.com>
parents: 483
diff changeset
140 vertex_shader default.v.glsl
51bf87f76d15 Pull shader file names from config file.
Mike Pavone <pavone@retrodev.com>
parents: 483
diff changeset
141 fragment_shader default.f.glsl
1004
fc000f245cc8 Set vsync state based on config file rather than just using whatever the system decides for us.
Michael Pavone <pavone@retrodev.com>
parents: 1003
diff changeset
142 scanlines off
fc000f245cc8 Set vsync state based on config file rather than just using whatever the system decides for us.
Michael Pavone <pavone@retrodev.com>
parents: 1003
diff changeset
143 vsync off
1017
216fa63749b3 Added documentation for lock-on support and a fullscreen config option.
Michael Pavone <pavone@retrodev.com>
parents: 1005
diff changeset
144 fullscreen off
1328
70faad89d491 Add config file option to disable Open GL rendering
Michael Pavone <pavone@retrodev.com>
parents: 1296
diff changeset
145 #setting gl to off, will force use of the SDL2 fallback renderer
70faad89d491 Add config file option to disable Open GL rendering
Michael Pavone <pavone@retrodev.com>
parents: 1296
diff changeset
146 #this is useful for those running on machines with Open GL 2.0 unavailable
70faad89d491 Add config file option to disable Open GL rendering
Michael Pavone <pavone@retrodev.com>
parents: 1296
diff changeset
147 #so the warning doesn't display on startup
70faad89d491 Add config file option to disable Open GL rendering
Michael Pavone <pavone@retrodev.com>
parents: 1296
diff changeset
148 gl on
1403
87493f585c7f Allow selecting linear or nearet neighbor scaling for both the Open GL and SDL 2 renderers
Michael Pavone <pavone@retrodev.com>
parents: 1402
diff changeset
149 #scaling can be linear (for linear interpolation) or nearest (for nearest neighbor)
87493f585c7f Allow selecting linear or nearet neighbor scaling for both the Open GL and SDL 2 renderers
Michael Pavone <pavone@retrodev.com>
parents: 1402
diff changeset
150 scaling linear
1184
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
151 ntsc {
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
152 overscan {
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
153 #these values will result in square pixels in H40 mode
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
154 top 2
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
155 bottom 1
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
156 #if you want to completely hide the border instead
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
157 #comment out those two lines and uncomment these
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
158 #top 11
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
159 #bottom 8
1267
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
160
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
161 #these values will completely hide the horizontal border
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
162 left 13
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
163 right 14
1184
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
164 }
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
165 }
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
166 pal {
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
167 overscan {
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
168 #these values will produce the same size border in V30 mode
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
169 #as the default NTSC settings will produce in V24 mode
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
170 #this results in a slightly vertically squished picture
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
171 #which is probably approximately correct on a properly calibrated TV
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
172 top 21
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
173 bottom 17
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
174 #for square pixels and zero border in V30 mode
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
175 #coment out those two lines and uncomment these
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
176 #top 30
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
177 #bottom 24
1267
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
178
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
179 #these values will completely hide the horizontal border
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
180 left 13
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
181 right 14
1184
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
182 }
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
183 }
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
184 }
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
185
445
80a9527c812c Add config values for audio sample rate and buffer size
Mike Pavone <pavone@retrodev.com>
parents: 444
diff changeset
186 audio {
80a9527c812c Add config values for audio sample rate and buffer size
Mike Pavone <pavone@retrodev.com>
parents: 444
diff changeset
187 rate 48000
80a9527c812c Add config values for audio sample rate and buffer size
Mike Pavone <pavone@retrodev.com>
parents: 444
diff changeset
188 buffer 512
1002
8d032a368dd5 Made low pass filter frequency configurable
Michael Pavone <pavone@retrodev.com>
parents: 948
diff changeset
189 lowpass_cutoff 3390
445
80a9527c812c Add config values for audio sample rate and buffer size
Mike Pavone <pavone@retrodev.com>
parents: 444
diff changeset
190 }
80a9527c812c Add config values for audio sample rate and buffer size
Mike Pavone <pavone@retrodev.com>
parents: 444
diff changeset
191
483
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
192 clocks {
948
f87522554d7b Allow changing the 68K clock divider in the config file
Michael Pavone <pavone@retrodev.com>
parents: 916
diff changeset
193 m68k_divider 7
785
0e5f14d9a579 Prep for 0.3.0 release
Michael Pavone <pavone@retrodev.com>
parents: 645
diff changeset
194 max_cycles 3420
483
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
195 speeds {
1005
580a806aef6a Allow overriding speed 0. May be useful for people that want to use vsync
Michael Pavone <pavone@retrodev.com>
parents: 1004
diff changeset
196 0 100
483
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
197 1 150
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
198 2 200
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
199 3 300
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
200 4 400
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
201 5 25
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
202 6 50
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
203 7 75
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
204 }
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
205 }
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
206
874
b6842dfb8edf ROM is now run after being selected in menu. Initial path for menu is read from config file.
Michael Pavone <pavone@retrodev.com>
parents: 785
diff changeset
207 ui {
1292
5905593d6828 Allow initial_path to contain variable references which allows the default value to be actually specified in the default config file
Michael Pavone <pavone@retrodev.com>
parents: 1267
diff changeset
208 #specifies the ROM that implements the Menu UI
874
b6842dfb8edf ROM is now run after being selected in menu. Initial path for menu is read from config file.
Michael Pavone <pavone@retrodev.com>
parents: 785
diff changeset
209 rom menu.bin
1292
5905593d6828 Allow initial_path to contain variable references which allows the default value to be actually specified in the default config file
Michael Pavone <pavone@retrodev.com>
parents: 1267
diff changeset
210 #starting path for ROM browsing, accepts special variables $HOME, $EXEDIR
5905593d6828 Allow initial_path to contain variable references which allows the default value to be actually specified in the default config file
Michael Pavone <pavone@retrodev.com>
parents: 1267
diff changeset
211 #and variables defined in the OS environment
5905593d6828 Allow initial_path to contain variable references which allows the default value to be actually specified in the default config file
Michael Pavone <pavone@retrodev.com>
parents: 1267
diff changeset
212 initial_path $HOME
1294
a719e2c98b54 Allow variables in screenshot_path like initial_path
Michael Pavone <pavone@retrodev.com>
parents: 1292
diff changeset
213 #path for storing internal screenshots, accepts the same variables as initial_path
a719e2c98b54 Allow variables in screenshot_path like initial_path
Michael Pavone <pavone@retrodev.com>
parents: 1292
diff changeset
214 screenshot_path $HOME
1263
5f65a16c23ff Implement raw screenshot functionality requested in ticket:10
Michael Pavone <pavone@retrodev.com>
parents: 1254
diff changeset
215 #see strftime for the format specifiers valid in screenshot_template
1296
4e2007c1d8ab Change the default screenshot path as per ticket:14
Michael Pavone <pavone@retrodev.com>
parents: 1295
diff changeset
216 screenshot_template blastem_%Y%m%d_%H%M%S.ppm
1295
96ad1b9bbb3a Make save directory configurable. Satisfies ticket:4
Michael Pavone <pavone@retrodev.com>
parents: 1294
diff changeset
217 #path template for saving SRAM, EEPROM and savestates
96ad1b9bbb3a Make save directory configurable. Satisfies ticket:4
Michael Pavone <pavone@retrodev.com>
parents: 1294
diff changeset
218 #accepts special variables $HOME, $EXEDIR, $USERDATA, $ROMNAME
96ad1b9bbb3a Make save directory configurable. Satisfies ticket:4
Michael Pavone <pavone@retrodev.com>
parents: 1294
diff changeset
219 save_path $USERDATA/blastem/$ROMNAME
1417
e6efe6b2aee9 Add a file extension filter to the menu
Michael Pavone <pavone@retrodev.com>
parents: 1403
diff changeset
220 #space delimited list of file extensions to filter against in menu
1418
62ec8be376be Add smd extension to default extension filter. Make file extension check case insensitive
Michael Pavone <pavone@retrodev.com>
parents: 1417
diff changeset
221 extensions bin gen md smd sms gg
874
b6842dfb8edf ROM is now run after being selected in menu. Initial path for menu is read from config file.
Michael Pavone <pavone@retrodev.com>
parents: 785
diff changeset
222 }
b6842dfb8edf ROM is now run after being selected in menu. Initial path for menu is read from config file.
Michael Pavone <pavone@retrodev.com>
parents: 785
diff changeset
223
1204
d7be5b6e0a8d Added config file option to specify that RAM should be randomly initialized. Moved default_region inside a new "system" parent node in config
Michael Pavone <pavone@retrodev.com>
parents: 1202
diff changeset
224 system {
d7be5b6e0a8d Added config file option to specify that RAM should be randomly initialized. Moved default_region inside a new "system" parent node in config
Michael Pavone <pavone@retrodev.com>
parents: 1202
diff changeset
225 ram_init zero
d7be5b6e0a8d Added config file option to specify that RAM should be randomly initialized. Moved default_region inside a new "system" parent node in config
Michael Pavone <pavone@retrodev.com>
parents: 1202
diff changeset
226 default_region U
d7be5b6e0a8d Added config file option to specify that RAM should be randomly initialized. Moved default_region inside a new "system" parent node in config
Michael Pavone <pavone@retrodev.com>
parents: 1202
diff changeset
227 }
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
228
1204
d7be5b6e0a8d Added config file option to specify that RAM should be randomly initialized. Moved default_region inside a new "system" parent node in config
Michael Pavone <pavone@retrodev.com>
parents: 1202
diff changeset
229