Old 04-17-2014, 11:09 AM   #1
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default "Get_configvar" functions don't work in ReaScript?

This is from sws_util.cpp:

Code:
void* GetConfigVar(const char* cVar)
{
        int sztmp;
        void* p = NULL;
        if (int iOffset = projectconfig_var_getoffs(cVar, &sztmp))
        {
                p = projectconfig_var_addr(EnumProjects(-1, NULL, 0), iOffset);
        }
        else if (p = get_config_var(cVar, &sztmp))
        {
        }
        else
        {
                p = get_midi_config_var(cVar, &sztmp);
        }
        return p;
}
I'm not sure how to use these functions, but f.ex. projectconfig_var_getoffs() in EEL always returns "0".
spk77 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:02 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.