1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00
Commit Graph

282 Commits

Author SHA1 Message Date
janisozaur
2c3a832970 Swizzle bits of a window correctly for mingw builds (#3521) 2016-05-07 22:44:46 +01:00
janisozaur
fe826cd64f Fix posix's platform_file_copy (#3500)
The method may fail to properly copy data for files of sizes not being
a multiple of FILE_BUFFER_SIZE.
2016-05-05 22:59:27 +01:00
YJSoft
f3c1762a5a fix #3494 platform_file_copy always return false on posix 2016-05-05 16:50:07 +09:00
janisozaur
68bad6505c Add and correct licence headers to all sources (#3108) 2016-05-04 18:24:41 +01:00
Patrick de Wit
13701660c9 Implement customizable toggle windowed mode shortcut (#3462)
Implement customizable toggle windowed mode shortcut
2016-05-03 20:07:33 +01:00
Ted John
45843ec1d5 fix sub directory search for Windows
Fixes a small issue related to #3408
2016-04-24 23:55:28 +01:00
Ted John
652b1c83db integrate variables for lightning and toolbar dirty flags 2016-04-24 21:49:09 +01:00
Ted John
98f732aaf7 integrate screen variables (#3411) 2016-04-24 00:36:39 +01:00
Ted John
ee509caf35 integrate game paused variable and refactor 2016-04-23 13:34:55 +01:00
Ted John
57301def05 disable register-shell for mingw 2016-04-21 23:48:58 +01:00
Ted John
3f1e49d510 use unicode for registering file associations 2016-04-21 23:03:25 +01:00
Ted John
c51f9a8ecc register file associations on Windows 2016-04-21 21:41:53 +01:00
Ted John
b499a4589f embed OpenRCT2 icon for Windows (#3372)
Embeds the OpenRCT2 icon file using Win32 native resources and sets the window icon to it.
2016-04-21 19:17:26 +01:00
janisozaur
fb5d281eaf Check return value from realpath(). Fixes #2483 (#3309) 2016-04-15 18:17:45 +01:00
IntelOrca
547837f208 fix warnings in crash.cpp 2016-04-10 19:51:44 +01:00
IntelOrca
51a7e3f278 clean up and refactor the crash handler 2016-04-10 01:00:31 +02:00
Michał Janiszewski
9e2610fc08 Switch dump format to MiniDumpWithDataSegs 2016-04-09 20:47:31 +02:00
Hielke Morsink
46fb82fd91 Fix interface redifinition warning. 2016-04-09 19:40:57 +02:00
Michał Janiszewski
17bc485fb5 Breakpad for windows
This enables breakpad Windows support **only**.

The scope of this was limited to allow for inclusion into 0.0.4 release.
Breakpad for now is a Windows-only functionality, as this platform has
largest audience and is the only one that has no system-provided stack
tracing utility.

Upon crash, breakpad will try to create a dump and save current game,
present user with some vital information, then open explorer on the
created files for user convenience, asking him/her to create a new
issue with OpenRCT2 on Github.
2016-04-09 18:57:14 +02:00
Michał Janiszewski
e28de49a34 Breakpad integration
Provide your own breakpad and point cmake at it.

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
mkdir breakpad && cd breakpad
../depot_tools/fetch breakpad # edit the script to use python2
cd src
LDFLAGS="-m32" CXXFLAGS="-m32" CFLAGS="-m32" CPPFLAGS="-m32" ./configure
LDFLAGS="-m32" CXXFLAGS="-m32" CFLAGS="-m32" CPPFLAGS="-m32" make -j 8

Run cmake on openrct2:
cd openrct2
vim CMakeLists.txt # provide your path to breakpad
mkdir build && cd build
cmake ../ -DWITH_BREAKPAD=ON
make -j 8
./openrct2 # open a game, select "about openrct2", crash
2016-04-09 18:57:14 +02:00
YJSoft
c5ff5a3ce9 fix #3234 native open window crash problem at OSX
since default_filename will be null at opening(code set default_filename only at save), setting filePath with default_filename will raise exception.

Fixed by setting filePath, basename only at save(since two vars only used at creating nameFieldStringValue) and setting directory with initial_directory at opening.
2016-04-04 07:25:33 +01:00
Michał Janiszewski
331f9fe03b Secure memory accesses, initialise variables 2016-04-01 09:38:40 +02:00
Michał Janiszewski
7eeb59b1aa Update Linux file dialogs 2016-03-31 20:41:51 +01:00
Gymnasiast
0b78653a10 Make Zenity pick up the first filter 2016-03-31 20:41:50 +01:00
IntelOrca
3fdf0d4bf6 re-introduce appending of extension to filename 2016-03-31 20:41:49 +01:00
LRFLEW
0f88beff7c Converted OSX native file dialog to new standard 2016-03-31 20:41:48 +01:00
IntelOrca
d865e4d453 pass better data in struct to file dialog function 2016-03-31 20:41:47 +01:00
IntelOrca
1daa657657 fix #3091: Korean words corrupted if over byte limit 2016-03-10 18:48:00 +00:00
Chanwoong Kim
f05da9d312 Disactive IME when text input ends 2016-03-03 22:34:08 +09:00
Chanwoong Kim
6df34c13aa Fix a bug that IME did not disappeared after typing korean on osx 2016-03-03 22:34:06 +09:00
IntelOrca
c8015cab92 fix #3010: extension not added on native save file dialog 2016-03-01 21:46:00 +00:00
Ted John
795bc0d471 Merge pull request #3065 from YJSoft/fix-xp-ttf-load
Fix windows xp ttf font loading problem
2016-03-01 17:47:56 +00:00
YJSoft
cee035c9cb fix windows xp font loading problem
no need to cat because Fonts path must start with `C:\`
2016-03-02 00:32:28 +09:00
Chanwoong Kim
be83e1a33f Show Korean IME 2016-03-01 22:54:52 +09:00
Michał Janiszewski
aa8437cb9d Minor fixes 2016-02-26 20:49:01 +01:00
Michał Janiszewski
6b514d1e3a Fix possible issues highlighted at higher warn levels
Mostly possibly uninitialized values and signedness
2016-02-26 12:54:00 +01:00
IntelOrca
b0887f174b split sound and music mixing correctly, closes #1270 2016-02-24 22:42:50 +00:00
Gymnasiast
7c33ff502b Don't use hardcoded filter pattern conversions 2016-02-21 22:13:22 +01:00
Gymnasiast
21cb7a948b Make 'All files' translatable 2016-02-21 18:42:55 +01:00
Gymnasiast
efe73b08dc Fix the file dialog on Linux being case sensitive 2016-02-21 18:28:23 +01:00
IntelOrca
4617a52e53 improve dirty block performance 2016-02-20 00:23:58 +00:00
IntelOrca
13921111f3 remove old RCT2 cursor code and RCT2 error location variable 2016-02-16 20:30:43 +00:00
Alexander Overvoorde
316abb1df9 Change screenshot logic to use palette that is actually used for rendering (fixes #2925) 2016-02-15 03:23:47 +01:00
Michał Janiszewski
2ebb691e71 minor fixes
* initialize variables properly
* fixes to handling of zenity/kdialog on Linux
* remove unnecessary call
2016-02-14 21:06:44 +01:00
Ted John
703e9c3153 Merge pull request #2839 from anyc/develop
Linux: use zenity or kdialog to show user dialogs
2016-02-13 12:15:41 +00:00
IntelOrca
19d1338834 ensure input string is terminated when pasting 2016-02-12 22:43:23 +00:00
Ted John
a9ba5eadd5 Merge pull request #2910 from Overv/automatic-player-name
Change default player name to use the OS username if available (resolves #2761)
2016-02-12 00:04:22 +00:00
Alexander Overvoorde
05c1aabc39 Move fallback name logic out of platform_get_username 2016-02-12 00:31:23 +01:00
Alexander Overvoorde
65f25f8340 Get fallback player name from language files 2016-02-10 22:46:25 +01:00
Alexander Overvoorde
a5b47a8481 Change lmcons.h include capitalization (breaks mingw) 2016-02-10 22:33:39 +01:00