Skip to content

Add GetModID as a Native Function#454

Open
EggBanana123 wants to merge 3 commits into
RSDKModding:mainfrom
eggbananas-random-stuff:main
Open

Add GetModID as a Native Function#454
EggBanana123 wants to merge 3 commits into
RSDKModding:mainfrom
eggbananas-random-stuff:main

Conversation

@EggBanana123
Copy link
Copy Markdown

@EggBanana123 EggBanana123 commented Oct 18, 2025

(RSDKv5U legacy equivalent)

Gets the mod ID of a specified mod by folder name

Originally added this to an engine edit, but I think it could be pretty useful for mod compatibility, e.g.;

CallNativeFunction2(GetModID, "ModFolder", 0)
temp0 = checkResult
CallNativeFunction2(GetModActive, temp0, 0)

if checkResult == true
...

Comment thread RSDKv4/ModAPI.cpp Outdated
Comment thread RSDKv4/ModAPI.cpp Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants