1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00
Commit Graph

225 Commits

Author SHA1 Message Date
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
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
duncanspumpkin
bdd29107e6 Refactoring 2015-11-14 11:56:13 +00:00
Gymnasiast
98fd1bf95d Reinstate RCT2_ADDRESS_VEHICLE_SOUND_LIST 2015-10-25 21:42:09 +01:00
Gymnasiast
2b0d5b2470 Remove obsolete sound and config code 2015-10-25 20:54:19 +01:00
Michał Janiszewski
10587cb5ab Port non-VS inline asm to AT&T syntax
This is much more liked by other compilers
2015-10-22 23:32:27 +02:00
Michał Janiszewski
18c867a6fe Modify inline assembly to properly returns results
Both RCT2_CALLFUNC_X and RCT2_CALLPROC_X did not really return any
value, even though declared to return an int. The inlines are now
modified to properly return flags (`lahf`), with other contents zeroed
out.
2015-10-22 20:23:26 +02:00
Duncan
d2398b65bb Merge pull request #2048 from clamburger/update_sub_6960AB
Clean up sub_6960AB function (peep_should_go_on_ride)
2015-10-12 21:49:46 +01:00
Sam Horn
49cf5e3774 Moved the nausea thresholds into a C array 2015-10-11 04:07:14 +10:00
Sam Horn
1b2a7e62a2 Identified 0x00982392 as a nausea lookup array 2015-10-10 21:31:56 +10:00
Michał Janiszewski
74d0b033df Name RCT2_ADDRESS_PALETTE 2015-10-09 20:20:05 +02:00
Jonathan Haas
8463e58922 Define some tick related addresses 2015-10-03 20:00:29 +02: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
Gymnasiast
4d7a81bfe0 Remove unnecessary duplicate address, use more string constants 2015-08-27 16:44:18 +02:00
Gymnasiast
308b086c55 Name some addresses, clean up strings ids and usage 2015-08-27 16:19:17 +02:00
medsouz
e9269cb882 Finish naming scenery.c addresses 2015-08-22 12:03:40 -04:00
medsouz
4207b41855 Name more addresses 2015-08-18 23:53:24 -04:00
medsouz
958f2fb296 Document some scenery memory addresses 2015-08-17 23:05:46 -04:00
medsouz
7071bd9353 Document more addresses
Created defines for all the memory addresses I could find in peep/staff.c
and updated everywhere they're being used.
2015-08-16 18:25:17 -04:00
medsouz
150fe74e4e Remove unused code
0x009DEA5C is set but never read
0x009AAC73 is normally set to 0 when the screen resolution is changed to
delay saving the config. This is no longer neccesary in OpenRCT2
2015-08-16 15:30:37 -04:00
medsouz
ca1a1e0ddd Document various memory addresses 2015-08-16 13:05:49 -04:00
IntelOrca
b5237e24ec improve #1703 2015-08-04 15:21:12 +01:00
IntelOrca
1d9f404b5b implement ride_construction_set_default_next_piece 2015-07-13 12:47:31 +01:00
Duncan Frost
b374899bc8 Fix finance issues. Small refactor.
Fixes #1524
2015-07-05 16:13:04 +01:00
IntelOrca
7be91a5fac implement finish-map-window part 1 2015-07-01 00:58:13 +01:00
Ted John
b1b61e7df5 Merge pull request #1509 from duncanspumpkin/map_functions
Map functions
2015-06-28 18:03:53 +01:00
IntelOrca
e2a694b96e implement format_string_toupper and litter_create 2015-06-28 17:45:19 +01:00
Duncan Frost
8167c24526 Implemented sub_68B044 some sort of check to make sure there is space for new element.
If there isn't then it will try reorganise the elements to make room.
2015-06-28 13:53:24 +01:00
Duncan Frost
8554d2183c Implemented more of the paint_struct setup code 2015-06-21 16:23:23 +01:00
Duncan Frost
55d3b67cfe Refactor of scrolling_text_setup 2015-06-21 16:23:17 +01:00
Duncan Frost
9958ffc0f7 Started refactor of viewport drawing
Renabled banner paint setup
2015-06-21 16:23:16 +01:00
IntelOrca
8416596bf8 implement park_update_histories 2015-06-20 17:28:17 +01:00
Duncan Frost
bed75bb2cf Refactor and start implementing setup functions for object selection 2015-06-19 21:34:38 +01:00
IntelOrca
ee7a2c47f4 refactor map size 2015-06-13 19:11:26 +01:00
IntelOrca
999488d38c refactor scenario update and checks 2015-06-08 20:48:29 +01:00
IntelOrca
6f1cd77f3c implement textinput_cancel and refactor textinput event calls 2015-05-28 01:15:58 +01:00
Duncan Frost
b950447330 Refactor of placement code 2015-04-23 20:00:18 +01:00
Timmy Weerwag
930a9d61dd Fixes for a couple of warnings 2015-04-12 23:26:15 +02:00
Ted John
f28d2c9f2d Merge pull request #953 from Garogolun/proc-6a8388
Decompiled 0x006A8388
2015-03-28 17:22:51 +00:00
Duncan Frost
e010d43763 Add load and save audio options. Fix all sounds not pausing 2015-03-24 20:42:20 +00:00
Timmy Weerwag
8bc40cd48c Documented selection globals a bit 2015-03-23 23:26:51 +01:00
Timmy Weerwag
66baebb2fc Named map arrow globals 2015-03-23 23:26:50 +01:00
IntelOrca
745614c959 refactor misc. sprites and implement jumping_fountain_begin 2015-03-23 10:39:47 +00:00
IntelOrca
7d383a586e implement map_update_tiles, grass growing and scenery aging 2015-03-22 17:04:50 +00:00
Duncan Frost
a04de29bf8 Finish refactor of object_list.c 2015-03-07 12:45:13 +00:00
Duncan Frost
ddcf766fea More refactoring of object.c 2015-03-07 09:44:34 +00:00
Duncan Frost
c0e957299f Refactored paint_path. Labelled known offsets 2015-03-01 17:45:45 +00:00
Adrian Wielgosik
bfe401c778 Refactor code related to map flashing, removed a small mistake related with it
Removed code related to map flashing from title_update
2015-02-16 18:53:47 +01:00
Duncan Frost
9aad65d6c7 Fix cause of #698. Vanilla object count not being reset before rebuild. 2015-02-15 18:06:43 +00:00
Duncan Frost
bc847628cd Labelled track preview offsets 2015-02-09 18:51:58 +00:00