Comments (4)
use RCT2_CALLPROC_EBPSAFE when there are no register parameters.
use RCT2_CALLPROC_X when registers are only used as input parameters.
use RCT2_CALLFUNC_X when registers are used as input / output parameters.
from openrct2.
When is it appropriate to wrap these? For example, do_game_command is called a lot of times and yet currently is each time called with RCT2_CALLPROC_X. In addition, specific to do_game_command, do we know what any of it's arguments are?
from openrct2.
i have written do_game_command now, but its arguments depend on the command type (esi) - so for now its still registers as input.
You can wrap them so long as you are able to name them.
from openrct2.
Ok I added the following documentation to the wiki. More probably needed but hopefully ok for the moment. https://github.com/IntelOrca/OpenRCT2/wiki/Decompiling-Tips#subroutines
from openrct2.
Related Issues (20)
- [441408] openrct2.exe: WindowClose
- [b33871] openrct2.com: ForceCrash
- Lightning turns night into day
- [72751b] openrct2.exe: graphics-hook64.dll
- [6142de] openrct2.exe: duk__get_own_propdesc_raw
- [9985b2] openrct2.exe: IntentData::~IntentData
- [33dbe2] openrct2.exe: IntentData::~IntentData
- Opening "Object Selection" closes all other windows HOT 1
- [509d4c] openrct2.exe: WidgetInvalidate
- macOS builds failing
- [9f18ec] openrct2.exe: duk__hobject_alloc_entry_checked
- [08571d] openrct2.exe: duk_unicode_encode_cesu8
- Modifying path corners via tile inspector does weird things
- Uncap FPS causes a red error to pop up. " Unable to change ride operating mode" HOT 4
- Toilet admission counts towards ride income HOT 4
- [690399] openrct2.exe: wil_details_FeatureReporting_ReportUsageToService
- [253f09] openrct2.exe: pgldrvLoadAndAllocDriverInfo
- [51d641] openrct2.exe: ig9icd64.dll HOT 1
- [00574d] openrct2.exe: duk_hobject_putprop
- [d0829c] openrct2.exe: duk_push_tval
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openrct2.