Michał Janiszewski
3bf659a9ea
Include safe_strncpy declaration in linux.c
...
Fixes at least one of #2483
2015-12-13 23:09:59 +01:00
Duncan
e953eed95b
Merge pull request #2467 from kkirby/code-cleanup
...
Code cleanup
2015-12-12 20:13:29 +00:00
LRFLEW
c2202f6260
Moved the configuration on OS X to ~/Library/Application Support/OpenRCT2
2015-12-11 18:02:58 -06:00
Kyle Kirby
caf07c2064
Clean up the comments a litte
...
• Make comment heads be /**
• Make rct2 addresses be double spaced indented
• Make there be a space afte rct2: and the address
• Make single-line rct2 addresses be full block comments
• Move description of method to top of comment
2015-12-11 16:19:46 -06:00
Linus Unnebäck
894d2cd130
osx: define MAP_ANONYMOUS
2015-12-10 09:35:31 +01:00
Gymnasiast
e9737ebb61
Don't log warnings on finding files, only log to verbose instead
2015-12-09 15:54:49 +01:00
Linus Unnebäck
fc849eb097
small fixes for platform/osx.c
2015-12-06 18:34:34 +01:00
Ted John
1d3cefe73d
Merge pull request #2427 from xperia64/develop
...
Add symbolic link support
2015-12-05 21:34:44 +00:00
Ted John
e77537b27f
Merge pull request #2396 from janisozaur/osx-path
...
Set path properly for OS X
2015-12-05 14:21:41 +00:00
Ted John
4ed7a3496e
Merge pull request #2347 from Gymnasiast/default-measurement-system
...
Change fallback measurement system to metric.
2015-12-05 13:32:07 +00:00
IntelOrca
737baf8b78
fix #2158 : Video Freeze when window is maximised, minimised and then restored
2015-12-04 18:59:59 +00:00
xperia64
562d7fdb61
Add symbolic link support
2015-12-03 00:20:04 +00:00
Michał Janiszewski
d1b6d175c7
Make each platform set its own exe path
2015-12-01 21:38:35 +01:00
Michał Janiszewski
ed21aeb3fc
Take care of strings in POSIX platform file
2015-11-29 12:19:13 +01:00
Michał Janiszewski
39cc16d137
Plug memory leaks, check memory accesses
2015-11-29 12:15:47 +01:00
Linus Unnebäck
859684142a
OS X platform implementation
2015-11-28 10:40:58 +01:00
Linus Unnebäck
30b6718532
start of OS X support
2015-11-27 17:43:12 +01:00
Gymnasiast
d9fae6735b
Change fallback measurement system to metric.
2015-11-19 19:53:20 +01:00
Michał Janiszewski
c4ad2346e3
Fixes for building optimized binary on Linux
...
Use `-DCMAKE_BUILD_TYPE=X`, where X:
- `RELEASE`
- `RELWITHDEBINFO`
- `MINSIZEREL`
Only works for GCC, clang binaries crash for now.
2015-11-18 21:29:08 +01:00
Kevin
c1fe547901
Add FNM_PATHNAME flag for fnmatch
2015-11-17 12:25:45 +01:00
Kevin
5cd0ab7fad
Use fnmatch to match file patterns.
...
strstr doesn't support wildcards, so patterns like '*.TD?' will fail.
This adds the possibility for more complex patterns.
2015-11-17 00:27:29 +01:00
duncanspumpkin
45c4dfe12d
Merge branch 'develop' into pre-release-0.0.3
2015-11-13 23:30:13 +00:00
Cameron
fe4d98bc83
Fixed off-by-one errors in string conversion
2015-11-12 13:36:16 -06:00
Michał Janiszewski
80510c91bd
Add ui option to change scale in run-time
...
Doesn't let user go lower than 0.5f
2015-11-12 01:18:42 +01:00
Michał Janiszewski
516cddcf97
Explicitly cast scaled values to avoid warnings
2015-11-12 01:17:32 +01:00
Michał Janiszewski
681723869f
Enable display scaling, useful on highdpi screens
...
This allows for NN-scaling of display, a much needed feature on highdpi
screens.
Scale can be set to positive integer value which will become a zoom
factor for whole rendered output.
2015-11-12 01:16:21 +01:00
Ted John
7366c87e2c
Merge pull request #2196 from IntelOrca/custom-user-data-path
...
Allow user data path to be specified by command line
2015-11-06 18:35:38 +00:00
IntelOrca
70ef8d6777
add unicode support for windows command line arguments and resolve relative paths to absolute
2015-11-05 21:36:24 +00:00
duncanspumpkin
6684804e28
Fix small regression that caused a black screen when switching between hardware rendering
2015-11-05 21:22:08 +00:00
duncanspumpkin
599c259603
Fix #1749 . Rainbow road graphical glitch.
...
Issue was caused by the image using an invalid colour entry. This initilises the memory that is expected to return white. Platform update palette also had to be modified to allow this fix to work.
2015-11-05 19:42:23 +00:00
IntelOrca
0b7544dbce
fix error in linux.c and double .config/.config
2015-11-03 23:18:10 +00:00
IntelOrca
e177be305b
allow user data path to be specified by command line, closes #2182
...
Also changed default path under linux to be ~/.config/OpenRCT2.
2015-11-03 22:20:35 +00:00
IntelOrca
025f36ec28
fix #2187
...
Title sequence now maintains central position from script if window size changes.
2015-11-03 19:20:32 +00:00
Michał Janiszewski
45b3d8362d
Provide strndup implementation for platforms missing it
2015-10-30 19:14:05 +01:00
Michał Janiszewski
9284930d7e
Add safe_strncpy function
...
safe_strncpy is similar to strncpy, but makes sure buffer is
null-terminated. Update most of project to use this updated function to
prevent illegal memory accesses.
2015-10-30 16:01:00 +01:00
Michał Janiszewski
31f412d0e4
Fixes: scope & types, control flow, cmake, platform support
2015-10-29 20:26:47 +01:00
Michał Janiszewski
2f457aeffc
Cleanups
...
* Remove unused function in config.c
* Check handle *before* it is used
* Provide explicit parentheses around unclear if statements
2015-10-28 08:06:45 +01:00
Gymnasiast
2b0d5b2470
Remove obsolete sound and config code
2015-10-25 20:54:19 +01:00
Ted John
5e9912e880
Merge pull request #2038 from HaasJona/restart_required
...
Require a restart after changing hardware rendering
2015-10-24 14:44:01 +01:00
Jonathan Haas
475466dcd9
Require a restart after changing hardware rendering setting, decouple setting from active status
2015-10-24 12:50:28 +02:00
Michał Janiszewski
8e45cccb7a
Minor fixes
...
Includes (mostly) type fixes, dead code removal, signed vs unsigned
comparison fixes, memory leaks removal.
2015-10-21 08:47:09 +02:00
Michał Janiszewski
7d0ce00bab
Strip all whitespace
2015-10-20 20:48:51 +02:00
Michał Janiszewski
d570163958
Fix types
...
Bunch of type fixes
2015-10-19 20:30:46 +02:00
zsilencer
cf78d76bdf
make disable volume on focus lost not reset title music
2015-10-17 11:48:39 -06:00
Alexander Overvoorde
609dad157a
Optimise Steam overlay check
2015-10-04 22:31:28 +02:00
Alexander Overvoorde
af6a6bb8be
Rewrite platform_is_steam_overlay_attached for Unix to detect all possible situations
2015-10-04 16:43:22 +02:00
Alexander Overvoorde
84bf968b23
Fix flags in dlopen call for steam overlay check
2015-10-04 15:46:15 +02:00
Alexander Overvoorde
f6b7121c23
Implement platform_is_steam_overlay_attached for unix
2015-10-03 23:10:56 +02:00
Alexander Overvoorde
51377fc960
Add setting for Steam overlay pausing and add extra check
2015-10-03 23:10:56 +02:00
Alexander Overvoorde
c03cec721e
Add Steam overlay detection that pauses the game ( #1903 )
...
The Steam overlay is detected by checking if the center pixel of
the framebuffer is changed between rendering and presenting to the
screen. This happens when the Steam overlay draws the gray fade on
the screen.
This does not affect other overlays like FRAPS, MSI Afterburner and
OBS overlays that don't obstruct the center of the screen.
2015-10-03 23:10:56 +02:00