mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 01:59:52 -06:00
Kill some horribly ugly hackery :( It's just not right to pass entire IniFile objects across DLLs. Only POD (plain-old-data, like int, float, char, char[] etc) are safe to pass across DLL boundaries.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4257 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -84,9 +84,6 @@ enum PLUGIN_TYPE {
|
||||
#define STATE_MODE_MEASURE 3
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Export structs
|
||||
// ------------
|
||||
typedef struct
|
||||
@ -96,16 +93,16 @@ typedef struct
|
||||
char Name[100]; // Name of the DLL
|
||||
} PLUGIN_INFO;
|
||||
|
||||
// TODO: Remove, or at least remove the void pointers and replace with data.
|
||||
// This design is just wrong and ugly - the plugins shouldn't have this much access.
|
||||
typedef struct
|
||||
{
|
||||
void *eventHandler;
|
||||
void *config;
|
||||
void *logManager;
|
||||
char game_ini[MAX_PATH];
|
||||
char unique_id[16];
|
||||
} PLUGIN_GLOBALS;
|
||||
|
||||
|
||||
|
||||
|
||||
// GLOBAL I N T E R F A C E
|
||||
// ____________________________________________________________________________
|
||||
// Function: GetDllInfo
|
||||
|
Reference in New Issue
Block a user