mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
3rdParty: apply shared data patch to mupen64plus-video-GLideN64
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ void Config_DoConfig(void* parent)
|
||||
wchar_t strSharedIniFolderPath[PLUGIN_PATH_SIZE];
|
||||
|
||||
#ifdef M64P_GLIDENUI
|
||||
api().FindPluginPath(strSharedIniFolderPath);
|
||||
api().GetSharedDataPath(strSharedIniFolderPath);
|
||||
api().GetUserConfigPath(strIniFolderPath);
|
||||
#else
|
||||
api().FindPluginPath(strSharedIniFolderPath);
|
||||
@@ -42,7 +42,7 @@ void Config_LoadConfig()
|
||||
wchar_t strSharedIniFolderPath[PLUGIN_PATH_SIZE];
|
||||
|
||||
#ifdef M64P_GLIDENUI
|
||||
api().FindPluginPath(strSharedIniFolderPath);
|
||||
api().GetSharedDataPath(strSharedIniFolderPath);
|
||||
api().GetUserConfigPath(strIniFolderPath);
|
||||
#else
|
||||
api().FindPluginPath(strSharedIniFolderPath);
|
||||
|
||||
@@ -54,6 +54,7 @@ public:
|
||||
void GetUserCachePath(wchar_t * _strPath);
|
||||
#ifdef M64P_GLIDENUI
|
||||
void GetUserConfigPath(wchar_t * _strPath);
|
||||
void GetSharedDataPath(wchar_t * _strPath);
|
||||
#endif // M64P_GLIDENUI
|
||||
bool isRomOpen() const { return m_bRomOpen; }
|
||||
|
||||
|
||||
+10
@@ -73,6 +73,16 @@ void PluginAPI::GetUserConfigPath(wchar_t * _strPath)
|
||||
{
|
||||
_getWSPath(ConfigGetUserConfigPath(), _strPath);
|
||||
}
|
||||
|
||||
void PluginAPI::GetSharedDataPath(wchar_t * _strPath)
|
||||
{
|
||||
/* this is kind of a hack, we know mupen64plus.ini is always present
|
||||
* on valid installations, so we use that to retrieve the shared
|
||||
* data path, we'll get the full path to the filename but
|
||||
* we strip it to the final seperator to strip out the filename
|
||||
*/
|
||||
_getWSPath(ConfigGetSharedDataFilepath("mupen64plus.ini"), _strPath, true);
|
||||
}
|
||||
#endif // M64P_GLIDENUI
|
||||
|
||||
void PluginAPI::FindPluginPath(wchar_t * _strPath)
|
||||
|
||||
Reference in New Issue
Block a user