1
0
Fork 0
Commit graph

4874 commits

Author SHA1 Message Date
krcroft
7df5a30f98 Simplify by using the _TCPsocketX struct as-is
Unlike an array of 1-byte chars which only requires 1-byte
alignment (because the array's largest element is only one byte),
when we fool the compiler into allocating a _TCPsocketX as an arra
of chars, we similarly tell the compiler we only need 1-byte
alignment. But this requirement changes when we cast the 1-byte array
back to the _TCPsocketX and try to operate on members having sizes
larger than 1-byte (such as int32's); we now require 4-byte
alignment (after allocation).
2020-02-19 19:25:47 +01:00
Patryk Obara
6468e3c149 Initialize TCPsocket to nullptr
This typedef originates from SDL_net.h, it's an opaque data type used
for TCP connections.

It's a pointer, therefore prevent copying and assignment in
TCPServerSocket to prevent ownership problems.
2020-02-19 19:25:47 +01:00
Patryk Obara
75478a9a39 Make TCPClientSocket field private
Also, it is a pointer, therefore prevent bugs by disallowing copying
and assignment.
2020-02-19 19:25:47 +01:00
Patryk Obara
0e32c002ae Cleanup ifdef guards in serialport misc util 2020-02-19 19:25:47 +01:00
Patryk Obara
651aeb906c Initialize missed fields in TCPClientSocket
Also, do some code and style cleanup in c-tors.
2020-02-19 19:25:47 +01:00
Patryk Obara
534a603cb8 Remove some duplicated code in serialport
Reuse SendArray implementation instead of repeating the same code
pattern several times.

This change started as a removal of warning about comparison of
integer expressions of different signedness: ‘int’ and ‘Bitu’
(when comparing return value of SDLNet_TCP_Send), but turned into
a small cleanup and removal of dead code.
2020-02-19 19:25:47 +01:00
krcroft
c132263116 Add partial DAE support for compressed Redbook-compliant tracks 2020-02-18 18:54:41 +01:00
krcroft
fdf103a111
Fix sector 0 playback bug
This bug prevented reporting of correct playback position on
pure-audio CDs with zero PREGAP.
2020-02-17 12:19:21 -08:00
krcroft
7957435c53 Improve layout of storage directory 2020-02-17 19:29:43 +01:00
krcroft
018cca2415 Expire records and cache at different timeframes 2020-02-17 19:29:43 +01:00
krcroft
82a22fd878 Let user specify branch(es) to operate on 2020-02-17 19:29:43 +01:00
krcroft
f5e649d512 Reword the serial port documentation 2020-02-17 19:16:49 +01:00
Peter Veenstra
fd11108206 Enhance capturing to handle unchanged screens more efficiently(jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4329
2020-02-17 16:20:07 +00:00
Patryk Obara
6e69228cfb Update allowed PVS issues limit 2020-02-15 21:37:03 +01:00
Patryk Obara
5bd3a4ac8d Merge branch 'svn/trunk' r4328 2020-02-15 21:27:20 +01:00
krcroft
d6499ccfa9
Document DOSBox's BBS Gaming features 2020-02-15 11:34:34 -08:00
Marco Maccaferri
4aee47a770
Fix handling of escape characters in softmodem
When running BBS DOSBox's softmodem does not correctly handle
escape characters properly nor does it properly transition
to command mode:

Characters are swallowed instead of passed-through, this causes
issue when transmitting strings with the plus character.
Additional characters before and after the escape sequence don't
reset the counters causing switch to command mode even if not
intended. For example, connect to a remote and type a+++ it
switches to command mode, it should not. The attached proposed
patch fixes the escape handling:

Transmission pause is checked before and after the escape
sequence, so <pause>+++<pause> is the correct
sequence.</pause></pause> Extra characters cause the counters to
be reset so no unwanted switch is triggered. Use register S12 to
set the pause timer in 1/50th of seconds, default is 50 = 1 sec.
Plus characters are passed to the remote. With this fix I'm able
to run a BBS software and do file transfers with XModem and ZModem
without problems.

Imported-from: https://sourceforge.net/p/dosbox/patches/287/
2020-02-15 11:34:33 -08:00
krcroft
950bb436e7
Ignore original (.orig) and reject (.rej) patch-failure files 2020-02-15 11:34:32 -08:00
Patryk Obara
6e89827d2b Change 'sblaster.oplemu = default' to select 'nuked'
Nuked emulator implementation seems to be the preferred one by the most
users at the moment.
2020-02-15 19:10:20 +01:00
Patryk Obara
47e3e02190 Change 'render.glshader' default to 'sharp' 2020-02-15 19:10:20 +01:00
Patryk Obara
6ffe13d81f Change 'sdl.fullresolution' default to 'desktop'
It works the same as 0x0, except it's documented in help string. Remove
the misleading and old comments from the help string.
2020-02-15 19:10:20 +01:00
Patryk Obara
040e47372e Change 'sdl.capture_mouse' default to 'seamless middlerelease'
Also, reformat help string, so that help comment generated in default
.conf file sort-of matches 80 columns.
2020-02-15 19:10:20 +01:00
Patryk Obara
9fee755542 Change 'sdl.output' default to 'opengl'
When OpenGL support is disabled during compilation, previous default of
'texture' is preserved.
2020-02-15 19:10:20 +01:00
Patryk Obara
bb7e202d2c Print newline after 'config -axadd' 2020-02-15 19:10:20 +01:00
Patryk Obara
0b505db4d8 Print newline after 'config -wcd' 2020-02-15 19:10:20 +01:00
Patryk Obara
8c8b1b58d7 Print newline after 'config -l' 2020-02-15 19:10:20 +01:00
Patryk Obara
25d1890196 Fix crash on 'config -get "foo bar"'
Crash happened due to mismatch between internationalization string and
parameters passed to WriteOut.

Also, print newline after output if no error occured.
2020-02-15 19:10:20 +01:00
Patryk Obara
270c9351e2 Print newline after 'config /?'
Also, remove unnecesary line breaks and improve formatting a little.
2020-02-15 19:10:20 +01:00
Patryk Obara
19b2469e49 Format help section for 'render.scaler' for 80 columns 2020-02-15 19:10:20 +01:00
Patryk Obara
5ed90b57eb Change 'render.aspect' default to 'true'
We don't use surface output by default, so there's no point in keeping
square-pixels by default due to performance issues.
2020-02-15 19:10:20 +01:00
Peter Veenstra
27610a2e66 Small cleanup and move to ++i instead of i++ for iterators in this file
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4328
2020-02-15 17:22:00 +00:00
Peter Veenstra
2b00069ae9 remove unused variable
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4327
2020-02-15 17:21:22 +00:00
Patryk Obara
1d5e01f73c Update allowed issues limit 2020-02-15 17:54:46 +01:00
Patryk Obara
6099ab60f3 Merge branch 'svn/trunk' r4326 2020-02-15 17:53:38 +01:00
Peter Veenstra
9912151a89 Add patch 285 from MHM to fix bug 367, mimics the normal event.gain code
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4326
2020-02-14 21:52:10 +00:00
Peter Veenstra
4d4c738ca7 fix two tiny bugs introduced by 4065.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4325
2020-02-14 21:20:31 +00:00
Peter Veenstra
5d7c4f0540 Fix bug 469. Give 640x480 and upwards square pixels and several fixes for high colour modes. (jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4324
2020-02-14 19:02:29 +00:00
Peter Veenstra
a2f473cebd Fix compilation for platforms where the include guard is different and the exported symbol was changed by Khronos.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4323
2020-02-14 16:53:52 +00:00
krcroft
675d8b99bf Check dependencies and improve messages 2020-02-14 09:29:39 +01:00
krcroft
cdb6957bb6 Store GitHub credentials using git 2020-02-14 09:29:39 +01:00
krcroft
94cd6df6cd Add a script to fetch and diff GitHub workflow logs 2020-02-14 09:29:39 +01:00
Patryk Obara
89e9e7336f Update issues limit for new clang static analyser
Updated Clang 9.0 just landed in Ubuntu repositories and is now
available via GitHub CI. Static analyser detects many more issues now.
2020-02-14 09:08:11 +01:00
Peter Veenstra
5fc132c124 Improve logging and OS X support (jmarsh).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4322
2020-02-13 20:39:45 +00:00
Patryk Obara
c3b9b36e2a Merge branch 'svn/trunk' r4321 2020-02-12 21:02:10 +01:00
Peter Veenstra
c765582c3e Some fixes to 4319 by jmarsh.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4321
2020-02-12 16:18:05 +00:00
Patryk Obara
80d71e7442 Merge branch 'svn/trunk' r4320 2020-02-12 09:00:33 +01:00
Patryk Obara
45704c95fe Remove useless cast 2020-02-12 08:43:13 +01:00
Patryk Obara
0319f0955c Avoid duplicated calls to buf.str() 2020-02-12 08:42:23 +01:00
Patryk Obara
b7ec86f980 Prevent compilation of unreachable code
Fixes a finding from PVS-Studio and Coverity each.
2020-02-12 08:40:39 +01:00
Patryk Obara
e872ea0169 Use memory safe container for GL error log
Fixes V576 warning from PVS-Studio - in this case PVS is somewhat
pedantic, as it warns about printf'ing of malloc'ed memory and risk the
associated problems in OOM situations.

In this case it can be a problem, as LOG_MSG aka GFX_ShowMsg
allocates memory during printing in result an error message could cause
stack overflow, although it's extremely unlikely on modern OSes.

Avoid triggering this warning by using memory-safe container and using
C++11 data() accessor to vector internal buffer; in case of OOM
situation, stack will be unrolled and program should exit with nice
error message.
2020-02-12 08:40:01 +01:00