Commit Graph

169 Commits

Author SHA1 Message Date
Michał Janiszewski ab4b4a77f3 Add console.cpp to vcxproj 2018-01-24 15:05:54 +01:00
Marijn van der Werf 8496bb2eb2 Fix compilation on macOS 2018-01-24 15:05:54 +01:00
Michał Janiszewski f238e279c1 Append permissions rather than replace them 2018-01-24 15:05:54 +01:00
Michał Janiszewski 572fe71f29 Fix cross-platform lib_SetFileAttributesA 2018-01-24 15:05:54 +01:00
Michał Janiszewski 55fc852d39 Fix type name 2018-01-24 15:05:54 +01:00
Michał Janiszewski 5af0ce8118 Don't deprecate POSIX names with MSVC 2018-01-24 15:05:54 +01:00
Michał Janiszewski be9af8ba8f Use platform-specific format specifier for uintptr_t 2018-01-24 15:05:54 +01:00
Michał Janiszewski dca74da00f Fix casing of g1.dat file
GOG version ships file named g1.DAT
2018-01-24 15:05:54 +01:00
Michał Janiszewski 0d789a5e09 Fix section attributes when loading 2018-01-24 15:05:54 +01:00
Marijn van der Werf e46a8e2add Fix compilation 2018-01-24 15:05:54 +01:00
Marijn van der Werf 863281d421 Align callback 2018-01-24 15:05:54 +01:00
Marijn van der Werf 527affc5e0 Save config after being prompted to pick path 2018-01-24 15:05:54 +01:00
Marijn van der Werf 6f0518f2f8 Add more hooks 2018-01-24 15:05:54 +01:00
Marijn van der Werf 7e2dbef5ee Improve hook logging 2018-01-24 15:05:54 +01:00
Marijn van der Werf da8cef3f90 Bring game to runnable state 2018-01-24 15:05:54 +01:00
Marijn van der Werf ece997fc03 Set command line path on posix 2018-01-24 15:05:54 +01:00
Aaron van Geffen 43737a371d Use find_similar_file when validating install path, too. 2018-01-24 15:02:04 +01:00
Ted John 594619b9c7 Try to find data files if wrong case for non-Windows platforms 2018-01-24 15:02:04 +01:00
Michał Janiszewski 760fe2b0a9
Look for dynamic Boost first, fallback to static 2018-01-24 13:01:15 +01:00
Michał Janiszewski 5313aad4ee
Include stdexcept for std::runtime_error 2018-01-24 11:43:27 +01:00
Michał Janiszewski a162f628e2
Remove superfluous qualifications 2018-01-24 11:37:17 +01:00
Michał Janiszewski e814367211
Disable deprecated Boost FS code
http://www.boost.org/doc/libs/1_66_0/libs/filesystem/doc/index.htm#Coding-guidelines
2018-01-24 10:31:58 +01:00
TELK 509ce7ffe0 ko-KR: Create the first translation (#26)
Half translated, I think.
2018-01-24 08:48:42 +00:00
Michał Janiszewski 32ccdc1010 Correct printf format for GCC (#36) 2018-01-24 08:43:49 +00:00
Michał Janiszewski 95a922e654
Change printf format to fix clang builds 2018-01-24 08:23:05 +01:00
Michał Janiszewski bf89af5124 Package AppVeyor-built dll as artifact (#31) 2018-01-23 23:24:48 +00:00
Marijn van der Werf 5782118cdc Apply formatting 2018-01-23 23:11:58 +01:00
Marijn van der Werf 66d7bb4125 Disable clang-format for `asm` calls 2018-01-23 23:11:58 +01:00
Marijn van der Werf f693fefeae Move arguments to new line 2018-01-23 23:11:58 +01:00
Marijn van der Werf d7bafecb32 Move comment to prevent reformat 2018-01-23 23:11:58 +01:00
Marijn van der Werf b35b1a2ad7 Run clang-format on CI 2018-01-23 23:11:58 +01:00
Marijn van der Werf af3a90bb06 Add format 2018-01-23 23:11:58 +01:00
Michał Janiszewski c5b8d0ca27 Add missing includes 2018-01-23 23:11:58 +01:00
Marijn van der Werf 2c06d8821d Clean up hook formatting 2018-01-23 23:11:58 +01:00
Duncan 11bbf64073 Fix crash in vehicle breakdown code. (#30)
Issue caused by mistake in implementing. v was incorrectly being set to the wrong next car
2018-01-23 21:16:26 +00:00
Ted John 31bc55f845 Add save_state utility class 2018-01-23 18:13:41 +00:00
Kynake 99a59df9ea Finished initial pt-BR localisation (#29) 2018-01-23 08:55:19 +00:00
Ted John 4da0fc1a14
Fix readme.md 2018-01-23 08:35:44 +00:00
Ted John 32aa959819
Add CI badges to readme.md 2018-01-23 08:33:56 +00:00
Michael Steenbeek 3b962facb5 Create initial Dutch translation (#1) 2018-01-22 10:30:34 +00:00
Ted John f04ba682d0
Merge pull request #24 from marijnvdwerf/i18n
Add language files
2018-01-22 07:55:35 +00:00
Marijn van der Werf 91aa1ac396 Update language files to 4.02.176 2018-01-22 08:01:09 +01:00
Marijn van der Werf 31cf72d015 Add 4.02.169 language files 2018-01-22 08:00:34 +01:00
Ted John 779257f22c Warn about files that aren't found 2018-01-22 00:04:10 +00:00
Ted John 49344c123e Name play_title_screen_music 2018-01-21 16:38:46 +00:00
Ted John 4fcc877987 Add object types and counts 2018-01-21 16:38:29 +00:00
Ted John dc5f1f36a7 Add more window types 2018-01-21 14:10:32 +00:00
Michael Steenbeek b57af38af1 Convert en-US to UTF-8 and replace special characters (railway, road, flag) (#19)
Names are directly taken from OpenRCT2.
2018-01-21 13:59:14 +00:00
Justin Gottula 625337bb69 Cleanup loco.exe file (#6)
Amend loco.exe to reduce the size by removing all unnecessary data from it.
This is a squashed merge from the following 3 commits:

* Remove SecuROM section headers and zero the sections' contents
  ec5c8c4713 

The .lbceac and .bxfkm sections in the retail CD version of Loco.exe
exclusively contain code and data (respectively) for the SecuROM copy
protection scheme, used by Locomotion.

This EXE has already had the SecuROM copy protection mechanisms
circumvented, so these sections of the file are completely superfluous.

But beyond that, these sections contain components of the SecuROM copy
protection system that can only reasonably be described as malware (e.g.
covertly installed kernel drivers that interfere with CDROM access). As
such, it's probably for the best that we remove this garbage.

The section header information was changed, and the section contents
were zeroed; but all other sections have been left completely unmoved
and untouched, so that previously determined offsets will remain valid.

Additional minor modification: remove a few extra strings inserted into
the EXE file by the no-CD patch.

* Remove .idata and move .rsrc forward: size reduced to < 1.2 MiB
  dc774bd5c3

All traces of SecuROM are now completely gone, and the chasm of zeros
where its sections used to live has been removed. The vestigial .idata
section was removed, as it wasn't actually being used; and the .rsrc
section was moved from its former location at RA 2F2000 / VA F10000 to
its new location at RA 125000 / VA D43000.

The PE header data directory offsets were updated; the offsets in the
import table for openloco.dll were adjusted; the offsets in the resource
table were adjusted; and the jump at the beginning of WinMain to the
StartOpenLoco import was adjusted.

This has been verified and tested, and appears to work entirely
correctly.

* Invent new .idata section for the page containing the import directory
  68b488833b

This change simply shortens .rsrc by one page and then adds a
one-page-sized section called .idata in its place, so that there's no
longer import stuff in .rsrc, where it doesn't really belong.

Characteristics on .rsrc were modified so it's no longer writable;
writability was maintained for .rdata and .idata, as they both contain
import data.
2018-01-21 13:18:43 +00:00
Ted John ab5c283ec3
Merge pull request #17 from jgottula/fix/dont-use-strcpy-dammit
Implement overrun-safe C-string functions and replace usages of std::strcpy with them
2018-01-21 12:51:20 +00:00