16 Commits

Author SHA1 Message Date
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
7a4e5612de JANITORIAL: Replace new[]/memset with new[]()
Mostly done using the following Ruby script:

(Dir.glob('**/*.cpp') + Dir.glob('**/*.h')).each do |file|
  s = File.read(file, encoding: 'iso8859-1')
  t = s.gsub(/(([\w_.\[\]]+)\s*=\s*new\s+\S+?\[[^\]]+?\](?!\())([^\{\}]*?)\n\s+memset\(\s*\2\s*,\s*0\s*,[^;]*;/m, '\1()\3')
  if t != s
    File.open(file, 'w') { |io| io.write(t) }
  end
end
2021-11-10 19:53:15 +01:00
Torbjörn Andersson
24ea36d3e9 COMMON: Don't decompress more bytes than the file specifies (bug 12900)
When running my CD version of Buried in Time, the loadFromCompresedEXE()
function would try to decompress beyond the allocated buffer, causing it
to crash. Up to that point, the decompressed data was identical to what
I would get if I let the original installer decompress the EXE and DLL
files.

So keep track of how many bytes have been decompressed, and terminate
when the upper limit is reached.
2021-09-05 21:26:49 +03:00
Cameron Cawley
4736b0ed99 COMMON: Fix loading version information from 16-bit executables 2021-07-15 13:55:33 +02:00
Cameron Cawley
bf4ae50a3f COMMON: Add a helper function for loading version resources 2021-07-15 13:55:33 +02:00
Cameron Cawley
a7d61eb365 COMMON: Allow loading EXE files from an existing stream 2021-07-15 13:55:33 +02:00
Eugene Sandulenko
7725f0ceed COMMON: Make WinResource::getVersionInfo more universal 2021-03-22 00:07:44 +01:00
Eugene Sandulenko
f534e11ccf COMMON: Added VersionInfo parser to WinResources 2020-07-09 23:13:47 +02:00
Cameron Cawley
a692905eb2 COMMON: Add a function to simplify loading Windows executables 2020-01-11 17:34:12 +02:00
Cameron Cawley
aa9a41545a COMMON: Add a common base class for the Windows resource classes 2020-01-11 17:34:12 +02:00
Johannes Schickel
854e22b38b COMMON: Make GPL headers consistent in themselves. 2014-02-18 02:39:33 +01:00
Matthew Hoops
8dace22f97 COMMON: Fix custom NE resource type names 2013-06-09 21:18:33 -04:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Matthew Hoops
d2f8103a3b COMMON: Fix WinResourceID::getID() 2011-03-07 13:12:43 -05:00
Matthew Hoops
826197cf76 COMMON: Make the operator=(String) function be a const reference instead 2011-03-07 13:11:28 -05:00
Matthew Hoops
a2a0b13de2 COMMON: Begin to merge some NE/PE code
The ID classes are now common to both. The files have been renamed to better illustrate their purpose.
2011-02-22 20:03:18 -05:00