1
0
Fork 0
Commit graph

1808 commits

Author SHA1 Message Date
Peter Veenstra
2a0f3a1f3d Support configuration changes from the shell.
syntax:
property       => lists the current value of the property
property=value => Sets property to value
examples:
ems=true
cycles=5000
core=full

Added "wc" as alias for writeconf and "wl" for writelang(Requested by
DosFreak)
Added support for home/end on the shell(parapente)
Config supports the setting of configuration as well:
config -set "section property=value"

This one should be used for properties that exist in more than one section.
Samplerate for example.

Changed the main shellinput loop. So it checks for a property if the entered
command isn't an internal command or an executable.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2190
2005-04-21 21:17:46 +00:00
Peter Veenstra
50f9e11282 Trying out the new GCC_UNLIKELY macro and turning the exit to a warning on prioritysetting.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2189
2005-04-21 21:06:27 +00:00
Peter Veenstra
4a2808a9a6 check for builtin_expect and define GCC_UNLIKELY
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2188
2005-04-21 21:03:19 +00:00
Peter Veenstra
6157cbaebf renamed __value to value for vs.net 2005.
Added some function to get the value of a property from the section.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2187
2005-04-21 19:53:41 +00:00
Peter Veenstra
baac15a8da negative cycles not allowed
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2186
2005-04-21 19:12:47 +00:00
Peter Veenstra
4e9a7a6120 include cleanup
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2185
2005-04-21 18:54:59 +00:00
Peter Veenstra
9b7ffd1010 vs.net2005 beta2
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2184
2005-04-21 18:51:54 +00:00
Peter Veenstra
e60e9f2aca maybe fix some 64 bits issue with fseek
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2183
2005-04-21 18:46:23 +00:00
Peter Veenstra
7e03ec1599 vc2005.net beta proof
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2182
2005-04-21 18:43:28 +00:00
Peter Veenstra
30193f5eed fix for 1173099. Might need a different fix oneday.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2181
2005-04-21 18:34:47 +00:00
Peter Veenstra
0b47601a00 open cdrom as when we are in forced mode as well
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2180
2005-04-21 18:24:40 +00:00
Peter Veenstra
4295bf213b Added new functions so you can find Sections from property names.
Moved a few implementations from the header to the cpp file
Reordered some stuff so every thing is present when it's encountered (inside
a class)


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2179
2005-04-19 15:30:03 +00:00
Peter Veenstra
77f14da8f0 added patch 1174832 by moe. lock and xadd in corefull/normal/simple
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2178
2005-04-19 08:28:41 +00:00
Peter Veenstra
226a00ce86 added Patch 1185274 from moe. Adds another key for backspace for some linux terminals
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2177
2005-04-18 18:46:27 +00:00
Peter Veenstra
4f23142ddf gob1
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2176
2005-04-15 15:58:07 +00:00
Peter Veenstra
a17faf3c49 idiv and friends shouldn't touch registers if an overflow occurs. (Thanks wd!)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2175
2005-04-15 14:20:42 +00:00
Peter Veenstra
fcd741c15e added range checks to accessing the drive structure. Cleaned it up as well. (Indeed I read it).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2174
2005-04-11 17:56:27 +00:00
Peter Veenstra
45851e3051 Fix small bug in intro cdrom, making it hard to translate
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2173
2005-04-06 20:48:14 +00:00
Peter Veenstra
902e09a4ec Removed unused function. Changed ADPCM routines to the ones of kode54
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2172
2005-04-05 16:25:09 +00:00
Peter Veenstra
689cceafb5 new configuration system. Apply patch 1156149 from moe
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2171
2005-04-05 11:10:08 +00:00
Peter Veenstra
0b0dac3832 fix remaining part of 1156163
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2170
2005-04-03 17:37:09 +00:00
Peter Veenstra
e5b9049ac5 added include for support.h. Fixes bug 1173820
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2169
2005-04-01 10:15:26 +00:00
Peter Veenstra
e1df80f704 recheck irqs when special mode changes. Makes more sense, might fix something.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2168
2005-03-29 07:05:44 +00:00
Peter Veenstra
2fb7849006 New configuration system.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2167
2005-03-25 12:06:48 +00:00
Peter Veenstra
6d91a47d24 New configuration. runtime changing of midi handler is possible.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2166
2005-03-25 12:05:21 +00:00
Peter Veenstra
6f5fde9267 new configuration layer. Removed shell_addautoexec and replaced it by objects. Fixed bug 1169240 and 1156163
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2165
2005-03-25 12:03:50 +00:00
Peter Veenstra
07b0ef0e82 new configuration support functions implementations
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2164
2005-03-25 12:00:52 +00:00
Peter Veenstra
29d8dc7231 header cleanup
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2163
2005-03-25 12:00:08 +00:00
Peter Veenstra
d2b7bc58a6 new configuration system. Runtime changing of settings possible.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2162
2005-03-25 11:59:24 +00:00
Peter Veenstra
da9013442a New configuration layer. Runtime changing of settings. Aditional irq 2 handler for when there is no mpu401. Small rewrite of mainloop for some more speed (inspired by ih8regs)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2161
2005-03-25 11:54:52 +00:00
Peter Veenstra
d382abd209 New configuration layer. Runtime changing of settings.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2160
2005-03-25 11:52:32 +00:00
Peter Veenstra
3b4e696309 new configuration layer. Cpu can change cores and other settings
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2159
2005-03-25 11:45:37 +00:00
Peter Veenstra
5a3f4fb38d jumpwise optimalisations
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2155
2005-03-25 10:12:05 +00:00
Peter Veenstra
3a2004c2e2 mix optimalisations by ih8regs. Code to manage mixer objects/channels
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2153
2005-03-25 09:38:42 +00:00
Peter Veenstra
09067f0e19 added basic reset drive support
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2152
2005-03-25 09:14:48 +00:00
Peter Veenstra
cbb309f5d4 Fix possible bug with adding a file 2 times to the drive_cache
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2151
2005-03-25 09:11:08 +00:00
Peter Veenstra
e6509a06a6 added code to remove a virtual file
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2150
2005-03-25 09:09:22 +00:00
Peter Veenstra
32ffb30cb0 keep it compiling
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2149
2005-03-25 09:06:46 +00:00
Peter Veenstra
9f14e8cd3c more compatible with older gcc versions
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2148
2005-03-25 09:05:04 +00:00
Peter Veenstra
204409c014 some includes to keep it compiling + hack so we have good console all the time
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2147
2005-03-25 09:02:46 +00:00
Peter Veenstra
c7a8672c2c New multiplex scheme so that handlers can be removed
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2146
2005-03-25 08:51:34 +00:00
Peter Veenstra
5ef7187b28 Small bug fixing + code to remove devices
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2145
2005-03-25 08:48:41 +00:00
Peter Veenstra
874cb31df2 New callback class to handle callbacks
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2144
2005-03-25 08:40:42 +00:00
Peter Veenstra
b3771fdeec new drivelabel functions (mechwarrior 2)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2143
2005-03-25 08:39:05 +00:00
Peter Veenstra
b2b5bfeb7e fix compilation with gcc 3.4
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2142
2005-03-24 21:41:26 +00:00
Peter Veenstra
228f4f4435 sensivity is max 100. Fixes/closes 1156137
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2138
2005-03-24 19:16:33 +00:00
Peter Veenstra
e80222f29b New include system + Removed stddef.h from dosbox.h , added it to core_dyn_x86.cpp
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2135
2005-03-24 10:11:18 +00:00
Sjoerd van der Berg
6693ca22b1 Replace WLE with var_write
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2132
2005-03-24 09:19:18 +00:00
Sjoerd van der Berg
be3c6487ab Add the c_unaligned_memory define for visual c
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2131
2005-03-24 09:18:14 +00:00
Peter Veenstra
8618ef8870 basic hidden file detection. Used as initial check by mechwarrior 2
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2128
2005-03-16 20:44:56 +00:00