Guest User

Untitled

a guest
Oct 18th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. # make some replacements in default dosbox config files
  2. # run like: sed -r -i -f editconfs.sed Games/Games/*/dosboxz.conf
  3.  
  4. /\[sdl\]/,/\[dosbox\]/ {
  5. s/^fullresolution=.*/fullresolution=0x0/
  6. s/^output=.*/output=direct3d/
  7. s/^priority=.*/priority=higher,lower/
  8.  
  9. /^mapperfile=/ a\
  10. pixelshader=hq2x.fx
  11. }
  12.  
  13. /\[dosbox\]/,/\[render\]/ {
  14. s/^captures=.*/captures=X:\\Temp\\Capture/
  15. s/^memsize=.*/memsize=16/
  16.  
  17. /^machine=.*/ {
  18. a\
  19. vmemsize=8
  20. c\
  21. machine=svga_s3
  22. }
  23. }
  24.  
  25. /\[render\]/,/\[cpu\]/ {
  26. /^aspect=/ {
  27. a\
  28. linewise=false\
  29. char9=false\
  30. multiscan=false
  31. c\
  32. aspect=true
  33. }
  34.  
  35. s/^scaler=.*/scaler=hardware2x/
  36.  
  37. /\[cpu\]/ i\
  38. [vsync]\
  39. vsyncmode=off\
  40. vsyncrate=75\
  41.  
  42. }
  43.  
  44. /\[cpu\]/,/\[mixer\]/ {
  45. /^core=/ a\
  46. cputype=auto
  47. }
  48.  
  49. /\[mixer\]/,/\[joystick\]/ {
  50. s/rate=[0-9]+/rate=44100/
  51. }
  52.  
  53. /\[mixer\]/,/\[midi\]/ {
  54. s/^blocksize=.*/blocksize=1024/
  55. s/^prebuffer=.*/prebuffer=20/
  56. }
  57.  
  58. /\[midi\]/,/\[sblaster\]/ {
  59. s/^device=.*/mididevice=synth/
  60. s/^config=.*/midiconfig=D:\\DL\\Utils\\Multimedia\\sf2\\WeedsGM3.sf2/
  61. }
  62.  
  63. /\[sblaster\]/,/\[gus\]/ {
  64. s/^mixer=.*/sbmixer=true/
  65.  
  66. /^oplmode=/ a\
  67. oplemu=default
  68.  
  69. /^oplrate=/ a\
  70. hardwarebase=220
  71. }
  72.  
  73. /\[gus\]/,/\[speaker\]/ {
  74. s/^irq1=.*/gusirq=5/
  75. /^irq2=/ d
  76. s/^dma1=.*/gusdma=3/
  77. /^dma2=/ d
  78. }
  79.  
  80. /\[dos\]/,/\[autoexec\]/ {
  81. /^umb=/ a\
  82. automount=true
  83.  
  84. /^keyboardlayout=/ {
  85. a\
  86. files=127
  87. c\
  88. keyboardlayout=auto
  89. }
  90. }
Add Comment
Please, Sign In to add comment