Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions resource/dist/ModelExtras.ini
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ SoundEffects_GlobalReverseSound = 1 # Plays reverse sound for bi
SoundEffects_NonPlayerVehicles = 1 # Plays sound effects for traffic vehicles too

[CONFIG]
ModLoaderData = 1 # Loads per-vehicle data configs (.jsonc/.json/.eml/.ivfc) directly from ModLoader subfolders
EnableLiveReload = 1 # Enables the 'MERELOAD' cheat to live-reload vehicle configs and INI settings without restarting
ModelVersionCheck = 1 # Version check for ModelExtras models (recommended to keep enabled)
EnableLogging = 1 # Writes diagnostic log messages to 'ModelExtras.log'
Expand Down
9 changes: 8 additions & 1 deletion src/ModelExtrasAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,5 +437,12 @@ float ME_GetSirenPointLightMul() {
return LightsConfig::Get().fSirenPointLightMul;
}

} // extern "C"
bool ME_IsModLoaderDataEnabled() {
return DataMgr::IsModLoaderEnabled();
}

void ME_SetModLoaderDataEnabled(bool enabled) {
DataMgr::SetModLoaderEnabled(enabled);
}

} // extern "C"
2 changes: 2 additions & 0 deletions src/ModelExtrasAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ extern "C"
// Visual & Render Configuration
ME_WRAPPER float ME_GetPointLightIntensity();
ME_WRAPPER float ME_GetSirenPointLightMul();
ME_WRAPPER bool ME_IsModLoaderDataEnabled();
ME_WRAPPER void ME_SetModLoaderDataEnabled(bool enabled);

#ifdef __cplusplus
}
Expand Down
Loading
Loading