mirror of
https://github.com/ChronosX88/mta-mono.git
synced 2024-11-22 02:02:23 +00:00
Fixed Linux compile warnings
This commit is contained in:
parent
5a80e2a015
commit
1970206eeb
@ -1,7 +1,7 @@
|
|||||||
/*********************************************************
|
/*********************************************************
|
||||||
*
|
*
|
||||||
* Multi Theft Auto: San Andreas - Deathmatch
|
* Multi Theft Auto: San Andreas - Deathmatch
|
||||||
/*********************************************************
|
**********************************************************
|
||||||
*
|
*
|
||||||
* Copyright © 2013, Innovation Roleplay Engine.
|
* Copyright © 2013, Innovation Roleplay Engine.
|
||||||
*
|
*
|
||||||
|
@ -40,8 +40,6 @@ public:
|
|||||||
|
|
||||||
CMonoGC* GetGC ( void ) { return this->m_pGC; }
|
CMonoGC* GetGC ( void ) { return this->m_pGC; }
|
||||||
|
|
||||||
#pragma region Static methods
|
|
||||||
|
|
||||||
static string GetBinariesDirectory( void )
|
static string GetBinariesDirectory( void )
|
||||||
{
|
{
|
||||||
return "mods/deathmatch/resources/[ire]";
|
return "mods/deathmatch/resources/[ire]";
|
||||||
@ -53,8 +51,6 @@ public:
|
|||||||
|
|
||||||
static void MonoPrintCallbackHandler( const char *string, mono_bool is_stdout );
|
static void MonoPrintCallbackHandler( const char *string, mono_bool is_stdout );
|
||||||
static void MonoPrintErrorCallbackHandler( const char *string, mono_bool is_stdout );
|
static void MonoPrintErrorCallbackHandler( const char *string, mono_bool is_stdout );
|
||||||
|
|
||||||
#pragma endregion
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -41,7 +41,7 @@ public:
|
|||||||
return pColor;
|
return pColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T> static T GetPropertyValue( MonoObject* pMonoObject, char* szPropertyName )
|
template <class T> static T GetPropertyValue( MonoObject* pMonoObject, const char* szPropertyName )
|
||||||
{
|
{
|
||||||
return *( reinterpret_cast<T*>( mono_object_unbox( GetPropertyValue( pMonoObject, szPropertyName ) ) ) );
|
return *( reinterpret_cast<T*>( mono_object_unbox( GetPropertyValue( pMonoObject, szPropertyName ) ) ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user