1
0
Fork 0
Commit graph

4368 commits

Author SHA1 Message Date
Patryk Obara
79fe83ede6 Merge branch 'svn/trunk' 2019-10-10 00:16:04 +02:00
Peter Veenstra
195484d5e9 Change OpenGL drawing routine to draw one big oversized TRIANGLE instead of a QUAD in order to work around an Nvidia specific scaling bug. Fixes bug #515.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4270
2019-10-09 20:53:35 +00:00
Peter Veenstra
e1d8eb67a4 Use fabsf when return value is a float. Small warning fix.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4269
2019-10-09 20:49:21 +00:00
Peter Veenstra
19478d45f5 Fix several logic errors with regards to deleted directories.
Should fix that directories with the same length as a deleted directory had some small issues.
Also blocks the creation of files in directories marked as deleted.
Small speed up to MakeDir, so it doesn't rely on mkdir when a directory is created inside a deleted directory.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4268
2019-10-09 20:46:40 +00:00
Patryk Obara
1857980f90 Replace an authorsfile with a script
DOSBox maintainer expressed a concern about mail being stored verbatim
in the source code. SourceForge does not forward messages to the
real mailing addresses by default, therefore it's rather pointless to
target them for spamming nowadays, but git-svn can easily take input
from as script, so let's just replace the static file.
2019-10-08 10:56:16 +02:00
Patryk Obara
d4b74d9686 Add alternative for git-log for SVN users
This format makes it easier to correlate SVN revisions with Git commits
for users who depend on such behaviour.

Usual caveats around working with SVN revision numbers apply: they do
not identify patch/commit, they identify a change in the state of whole
SVN repository (i.e. single revision might span multiple paths,
including multiple "branches" or "tags" or "projects").

Do not depend on SVN revisions to uniquely identify a commit created by
an SVN user (especially for scripting) - you need a tuple <SVN path,
SVN revision> for that. It's easier to identify a commit by git hash
(this script displays shortened hash in a first column).
2019-10-08 10:56:16 +02:00
Patryk Obara
f7a5080c22 Update allowed warnings limit 2019-10-04 00:04:13 +02:00
Patryk Obara
a323e173c2 Merge branch 'svn/trunk' 2019-10-03 23:44:48 +02:00
Peter Veenstra
60204619d0 - Fix url to forum.
- Fix Bit8u instead of char weirdness for imageDisk (dreamer_)
- Give device_t a virtual empty destructor so some warning program
  doesn't go crazy.
- Give the code that moves the Z drive its own function for readability.
- Give sizes arrays default values again for warning program.
- Rewrite IMGMOUNT in order to exit early for clarity and attempt
  to group things together.



Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4267
2019-10-03 20:03:43 +00:00
ripsaw8080
7f979234f8 Bit 2 of video status register always set. Satisfies a strange test in Blues Brothers, thus preventing slow animations.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4266
2019-10-03 16:35:44 +00:00
Patryk Obara
0a9f80f1b5 Transform zmbv into a project inside dosbox solution
This way it's possible to build them together in VS and it's easier to
develop both.
2019-10-02 12:03:03 +02:00
Patryk Obara
a57d081f24 Upgrade zmbv solution and project to VS2019
Previous solution format does not work any more in modern Visual Studio.
Includes some project adjustments needed to cleanly build the project in
MSVC without any warnings.
2019-10-02 12:03:03 +02:00
Patryk Obara
145b83ea74 Upgrade dosbox solution and project to VS2019
Clean up project settings to prevent most MSVC linker warnings.
This commit also adds MSVC builds to CI.
2019-10-02 12:03:03 +02:00
Patryk Obara
d08d988be6 Simplify build workflow
Rename it from "Compilation" to "Build", as it's shorter and takes less
space in GitHub UI.

Remove GCC8 build configuration, as it does not add value: GCC9
build provides compilation on new compiler, while other Ubuntu builds
cover compilation on default compilers.
2019-10-02 12:03:03 +02:00
Patryk Obara
a4a6bed5c1 Merge branch 'svn/trunk' 2019-10-01 18:11:50 +02:00
Peter Veenstra
6243fa9711 Some more cleanups and memleak fixes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4265
2019-10-01 13:05:08 +00:00
Peter Veenstra
a919e33aec Pick some lowhanging fruit. (some memory leaks and unused variables)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4264
2019-10-01 12:11:09 +00:00
Peter Veenstra
ca20ca3a3e use delete instead of free, although this code is never really used, as the running process should have been replaced at that point.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4263
2019-10-01 11:11:57 +00:00
Patryk Obara
34e72e8e3c Merge branch 'svn/trunk' 2019-10-01 10:01:44 +02:00
Peter Veenstra
5803ea448c missed one
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4262
2019-10-01 06:14:42 +00:00
Patryk Obara
f749fe54fa Increase allowed warnings limit
Upstream svn/trunk just introduced a bunch of new warnings.

Piggy-back change to interpret "From:" lines in SVN to be imported as
proper authorship information.
2019-09-30 22:42:47 +02:00
Patryk Obara
08925b24a4 Merge branch 'svn/trunk' 2019-09-30 22:21:21 +02:00
Peter Veenstra
4046dd8229 These actually use float as input.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4261
2019-09-30 18:43:28 +00:00
Peter Veenstra
fe177b4136 Add 64-bit support to dynamic_x86 core from vogons topic 67673. Thanks jmarsh!
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4260
2019-09-30 18:30:11 +00:00
Patryk Obara
f31f2c6909 Update package repositories before build
Without updating of package repos, build can fail due to circumstances
unrelated to the code.  This fixes e.g. experimental SDL2 builds.
2019-09-28 07:46:41 +02:00
krcroft
57aaed6399
Merge pull request #5 from dreamer/po/ci-improvements-1
Enforce limit on issues found in static analysis
2019-09-26 13:30:30 -07:00
Patryk Obara
9310258c57 Enforce limit on issues found in static analysis
Implements new script (count-bugs.py) for peeking inside clang static
analyzer's report and print just a summary.

If number of detected bugs goes beyond the limit, script will return
with error code 1, thus failing the CI run.  The upper limit is set to
113, which is current result of static analysis in our CI environment
(local run is likely to indicate different number); upper limit will
be updated in time, as issues get fixed or new compiler (detecting more
bugs) will be introduced.

This commit includes also slight modifictaions to count-warnings.py
script, to keep the both scripts outputting in similar format.
2019-09-26 21:30:13 +02:00
Patryk Obara
4c5b4faf2f Set the upper limit on warnings number
This way it will be possible to prevent users from introducing new
warnings. As new fixes will be upstreamed, the maximum limit of
allowed warnings should be taken lower and lower, so this script
could be eventually replaced by -Werror.
2019-09-21 12:14:49 +02:00
Patryk Obara
58857e25e2 Create initial GitHub Workflows setup
So far it consists of following builds:

- GCC 9.1 (Ubuntu 18.04)
- GCC 8.3 (Ubuntu 18.04)
- GCC 7.4 (Ubuntu 18.04 default)
- GCC 5.4 (Ubuntu 16.04 default)
- Clang 10.0 (macOS 10.14 Mojave default)
- Clang 6.0 (Ubuntu 18.04)

Workflow also defines static code analysis using Clang 6 (Ubuntu 18.04),
which does not indicate results directly in PRs yet, but uploads a
static analysis report as a build artifact.
2019-09-20 21:16:07 +02:00
Patryk Obara
398c02cc01 Use "git" to identify builds from master branch
This avoids confusion when testing/comparing multiple builds.
2019-09-16 18:58:15 +02:00
Patryk Obara
b47e5aa87f Implement unifdef-all script
This script is useful for improving code readability when researching
code.  Do not commit results of this script.
2019-09-16 06:20:18 +02:00
Patryk Obara
b62a637157 Import svn:ignore props to .gitignore files 2019-09-15 20:34:57 +02:00
Patryk Obara
8e47e41112 Add a script for importing svn:ignore props 2019-09-15 20:30:00 +02:00
Patryk Obara
670fea4047 Merge branch 'svn/trunk' 2019-09-15 00:58:06 +02:00
Patryk Obara
963dfbb053 Add initial version of import script
The script creates new Git repository with complete SVN history of
DOSBox project, using correct authorship information and importing tags
as real Git tags.
2019-09-15 00:12:44 +02:00
Patryk Obara
c86cd28b32
Initial commit 2019-09-15 00:08:31 +02:00
Peter Veenstra
dda3b2a51f Rename bios tester to biostest and make it debug only to avoid people trying to load real bioses.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4258
2019-09-10 11:16:20 +00:00
Sjoerd van der Berg
766a63ac33 Add simple program that allows you to boot into a bios image for running cpu tester bios
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4257
2019-09-08 12:48:57 +00:00
Sjoerd van der Berg
bca40f5561 Fix flag behaviour of several shift/rotate instructions, cause exceptions and fix potention 'pop ss' problems
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4256
2019-09-08 12:42:21 +00:00
Sjoerd van der Berg
53666d5f27 Extra DIR sorting options patch by Saga Musix
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4255
2019-09-08 12:25:41 +00:00
Peter Veenstra
25e01bd042 Fix bug 512, reported by philipp. (checking wrong variable to see if malloc was a success)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4254
2019-09-02 16:50:30 +00:00
Peter Veenstra
05f15ac4c0 Correct a little bug that caused graphics corruption in win95 with s3 driver. (jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4252
2019-06-30 11:31:09 +00:00
Peter Veenstra
4ffc75be3c Add wrapping here as well.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4251
2019-06-27 09:12:41 +00:00
Sjoerd van der Berg
e48149278e Changes to allow for mingw i686 to compile a new zmbv.dll
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4247
2019-06-25 20:44:00 +00:00
Peter Veenstra
0abb573167 Implement simple access control for reading and writing files that are accessable from within DOSBox. Overlay not yet tested, hence not part of this commit.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4245
2019-06-25 17:53:05 +00:00
Peter Veenstra
551ee5b2fd drive => i_drive
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4242
2019-06-25 14:51:25 +00:00
Peter Veenstra
ad88f982c0 Add some size checks when accessing Drives[], mostly needed when DOS_DRIVES is not set to 26, make size parsing not go outside the target array.
Let's not try to assign a drive in the switchlist to a too high number.
Don't access imagelist for drives >D when unmounting. 


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4239
2019-06-25 06:12:13 +00:00
Peter Veenstra
e90de61263 Create fopen_wrapper so we can filter out specific directories, which DOS games should have no access to
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4238
2019-06-24 20:09:59 +00:00
Peter Veenstra
46babe5666 End of environment is a bit shorter. Very old code, lets see what breaks.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4235
2019-06-20 09:22:17 +00:00
Peter Veenstra
f74067c2b0 Use size_t when dealing with strings and strlen. (Alexandre)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4232
2019-06-19 08:11:01 +00:00