Commit Graph
269 Commits
Author SHA1 Message Date
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
Alexander Overvoorde 4f0fc1065b Change to more reliable way to access username on posix 2016-02-10 21:59:38 +01:00
Alexander Overvoorde 75b072d266 Change default player name to use the OS username if available (resolves #2761) 2016-02-10 21:49:41 +01:00
Alexander Overvoorde 417f78b3ea Use proper UTF-8 handling for formatting code detection 2016-02-10 19:52:36 +01:00
Alexander Overvoorde 5adb18528e Fix user being able to enter formatting characters (fixes #2892) 2016-02-09 21:31:01 +01:00
anyc fb1c6b22ba Linux: use zenity or kdialog to show user dialogs 2016-02-09 21:27:57 +01:00
Michał Janiszewski 80ad302087 Allow user to use NN scaling at integer scales
While linear/anisotropic filtering introduces in previous commit looks
good at non-integer scales, using it at integer scales may make screen
look unnecessarily blurry. This commit introduces an option to use NN
scaling at integer values of scale.
2016-02-01 21:19:26 +01:00
Michał Janiszewski 18ec2238a2 Allow runtime selection of render quality hint
This change allows to pass render quality hint to SDL in runtime. While
using hardware display, SDL can hint the renderer to use linear or
anisotropic filtering, which can deliver a better experience when using
non-integer scale value.
2016-02-01 21:18:15 +01:00
anyc ffafd07c90 use enum to specify file dialog type 2016-01-29 19:03:09 +01:00
Fabio Ka d193e9f3b3 Change msgbox flags/log on Linux to "warning" 2016-01-29 19:01:00 +01:00
Fabio Ka 6b2b6e476c Add message box on Linux platforms 2016-01-29 19:00:36 +01:00
LRFLEW 44dd98135d Regain window focus on OS X file dialog close 2016-01-23 17:25:32 -07:00
Michał Janiszewski 3bf1e0e06d Rename safe_strncpy to safe_strcpy 2016-01-18 20:49:52 +01:00
Michał Janiszewski 5bc330f8db Minor fixes, mostly posix.c 2016-01-18 20:48:41 +01:00