Skip to content

Commit

Permalink
Small changes due to recent TS++ updates to "addon".
Browse files Browse the repository at this point in the history
  • Loading branch information
CCHyper committed Apr 1, 2022
1 parent 4614723 commit 388e448
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/extensions/init/initext_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ bool Vinifera_Init_Secondary_Mixfiles()
DEBUG_INFO(" MULTI.MIX\n", buffer);
}

if (Addon_407120(ADDON_FIRESTORM)) {
if (Addon_Installed(ADDON_FIRESTORM)) {
if (CCFileClass("SOUNDS01.MIX").Is_Available()) {
FSSoundsMix = new MFCC("SOUNDS01.MIX", &FastKey);
ASSERT(FSSoundsMix);
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/newmenu/newmenuext_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ static void Draw_Title_Screen(bool firestorm)
*/
static void Set_Addon_Mode(bool firestorm)
{
Addon_4071C0(-1);
Addon_4071C0(ADDON_ANY);

if (firestorm) {
Addon_407190(1);
Addon_407190(ADDON_FIRESTORM);
}

Set_Required_Addon(firestorm ? ADDON_FIRESTORM : ADDON_NONE);
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/rules/rulesext_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ DECLARE_PATCH(_Init_Rules_Extended_Class_Patch)
*
* @author: CCHyper
*/
if (Addon_407120(ADDON_FIRESTORM)) {
if (Addon_Enabled(ADDON_FIRESTORM)) {
Rule->Colors(FSRuleINI);
Rule->AudioVisual(FSRuleINI);
Rule->MPlayer(FSRuleINI);
Expand Down

0 comments on commit 388e448

Please sign in to comment.