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

345 Commits

Author SHA1 Message Date
Jonathan Haas
8463e58922 Define some tick related addresses 2015-10-03 20:00:29 +02:00
Jonathan Haas
ae82ffcd96 Rename window flags 2015-10-03 17:20:53 +02:00
Michał Janiszewski
9a1e88872f sub_6E7FF3 no longer causes problems 2015-10-01 18:57:45 +02:00
IntelOrca
015c41f6ef fix #1744 2015-09-26 14:07:17 +01:00
YamaArashi
bc8bf39e1b paint setup current type constant 2015-09-22 15:43:42 -07:00
YamaArashi
7c8b0641d9 replace viewport flags numeric literals with constants 2015-09-22 15:30:19 -07:00
Michał Janiszewski
1bd8e11c0f Make it work on Linux
Right now the project is decompiled to the point where it is feasible to
try porting it to another platform. It doesn't work 100% correctly, but
it's nearing this state.

To port it to Linux I mmapped the openrct2.exe into expected places,
disabled two offending calls (RCT2_CALLPROC_EBPSAFE(0x0040701D) and
RCT2_CALLPROC_X(0x006E7FF3…)), replaced memory management routines
with generic ones and removed all the function-pointer calls.

A basic, non-exhaustive check is included to verify that memory is
loaded correctly in place.

That last bit is probably the most intrusive one, but had to be done, as
the calling convention on Linux differs from the one on Windows. It
could possibly be emulated (just like RCT2_CALLFUNC_X) until dependency
on exe is dropped.

It is possible to completely remove calls out to original code by
commenting out contents of RCT2_CALLFUNC_X, right now this will yield
working UI, but no rendering of peeps, rides or rest of world. This can
be used as a benchmark or test platform for correctness of
implementation. The data sections will still be required for now.

Assets are expected to be in specific places, so to launch it, following
needs to satisified:
* $build/data/ has to have contents of $RCT2/Data/
* $build/data/ (same as above) has to have contents of $repo/data/
* $build/ObjData/ has to have contents of $RCT2/ObjData/
* $build/../openrct2.exe has to be $repo/openrct2.exe (as of 976ea0d)
Keep in mind you can symlink stuff and that filesystems are case
sensitive!
You can copy more of required data to possibly improve your experience.

Pretty much all of this commit will possibly have to be reverted by the
time OpenRCT2 gains independence.

Remember to build with -DDISABLE_NETWORK=ON -DDISABLE_HTTP_TWITCH=ON
2015-09-23 00:04:40 +02:00
Michał Janiszewski
a3d407079f fix windows position clamping 2015-09-22 22:58:34 +02:00
Michał Janiszewski
5ceafd66a3 Fix memory leak in screenshot.c and guest.c 2015-09-22 22:58:20 +02:00
Ted John
daf61d0ca5 Merge pull request #1920 from Gymnasiast/fix-warnings-2
Fix more warnings
2015-09-12 13:54:22 +01:00
Michał Janiszewski
27ea266de1 Incrementation of paint_struct pointer looks bogus
Since the value incremented is a pointer, pointer arithmetics apply,
so instead of incrementing by 52, incrementation by 52^2 = 2704 takes
place, which was confirmed by inspecting generated listing.
2015-09-11 22:53:01 +02:00
Gymnasiast
68fc066fc5 Fix two more warnings 2015-09-11 15:23:11 +02:00
IntelOrca
bea74ee261 make all file IO utf8 compatible, fixes #1847 2015-08-29 13:13:23 +01:00
Ted John
cfecc817f2 Merge pull request #1853 from Gymnasiast/fix-banner-count
Add a console option to fix the banner count, fixes #667
2015-08-28 12:35:05 +01:00
Gymnasiast
e9b5282486 Add a console option to fix the banner count, fixes #667 2015-08-27 17:24:23 +02:00
Gymnasiast
4d7a81bfe0 Remove unnecessary duplicate address, use more string constants 2015-08-27 16:44:18 +02:00
Gymnasiast
f384a9cbf8 Remove test code 2015-08-20 13:23:07 +02:00
Gymnasiast
93d49e314e Fix file menu for editor, restore menu order, add shortcut for quick saving 2015-08-20 12:13:08 +02:00
IntelOrca
4f8e289e79 finish server list and fix a couple of multiplayer issues 2015-08-16 17:29:47 +01:00
IntelOrca
094cc19411 allow joining of servers in server list window 2015-08-16 16:37:08 +01:00
Gymnasiast
7449deeffe Add console option to reset all user strings 2015-08-16 15:31:59 +02:00
IntelOrca
f072440d18 add server list window (WIP) 2015-08-16 03:07:00 +01:00
IntelOrca
3f31221973 fix network merge issues, fix #1785 2015-08-14 22:06:15 +01:00
zsilencer
c1e802e361 fix text for utf8 2015-08-14 09:15:07 -06:00
zsilencer
3a26f56000 fix path placement for network 2015-08-14 09:13:40 -06:00
zsilencer
3b4a4fcdac network status window 2015-08-14 09:13:39 -06:00
zsilencer
1d811a5692 improve chat feature 2015-08-14 09:13:39 -06:00
zsilencer
7ccb0eb655 basic player list 2015-08-14 09:13:38 -06:00
zsilencer
21334e307c move chat window to separate file 2015-08-14 09:13:30 -06:00
IntelOrca
99f2b87043 add chat feature 2015-08-14 09:13:29 -06:00
IntelOrca
f43c7f6ac1 implement viewport_vehicle_paint_setup 2015-08-07 02:47:57 +01:00
IntelOrca
4f77cc8df3 implement gfx_draw_sprite_raw_masked 2015-08-06 01:00:03 +01:00
IntelOrca
cec486839c add 'no entrance' style and refactor a few things 2015-08-05 01:24:18 +01:00
IntelOrca
be4ee45d66 convert more platform functions over to utf8 and close #1713 2015-08-04 21:41:45 +01:00
IntelOrca
3c1190e11f implement utf8, part 26 (bug fixes) 2015-08-03 18:06:54 +01:00
IntelOrca
7bcb12503a implement utf8, part 24 (bug fixes) 2015-08-02 11:25:26 +01:00
IntelOrca
a9e6f8c3db implement utf8, part 12 2015-08-01 10:20:55 +01:00
IntelOrca
99c7c93764 implement utf8, part 9 2015-08-01 10:20:53 +01:00
IntelOrca
795c01cab5 implement utf8, part 5 2015-08-01 10:20:50 +01:00
IntelOrca
1682eae048 implement utf8, part 4 2015-08-01 10:20:50 +01:00
IntelOrca
2bb0c6c53f implement utf8, part 3 2015-08-01 10:20:49 +01:00
IntelOrca
c4b355f648 implement utf8, part 1 2015-08-01 10:20:48 +01:00
IntelOrca
6f1aca52f5 fix #1657 2015-07-30 00:26:32 +01:00
Gymnasiast
7a445467a4 Use unsigned 16-bit integer 2015-07-29 16:53:04 +02:00
Gymnasiast
a89cee3abf Fix scrollbar getting stuck on large lists 2015-07-29 11:04:38 +02:00
IntelOrca
3a07af140b Implement more peep path finding 2015-07-28 18:33:46 +01:00
Gymnasiast
ae32b463c0 Add feature to make banners display text in all caps 2015-07-25 21:38:23 +02:00
IntelOrca
b12b1b5faf support map scroll keyboard shortcuts, e.g. WASD. Closes #757 2015-07-24 19:20:24 +01:00
Michał Janiszewski
8f2dc5fd1a sub_0x68615B doesn't really take any params
In all cases, sub_0x68615B takes a single argument, 0xEE788C.
It now takes 0 arguments and simply knows about its initializing values.
2015-07-23 20:22:08 +02:00
IntelOrca
1662b18a7e fix #1662, consistent location sign 2015-07-23 18:38:43 +01:00