mirror of
https://github.com/ChronosX88/mta-mono.git
synced 2024-12-23 01:11:48 +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
|
||||
/*********************************************************
|
||||
**********************************************************
|
||||
*
|
||||
* Copyright © 2013, Innovation Roleplay Engine.
|
||||
*
|
||||
|
@ -40,8 +40,6 @@ public:
|
||||
|
||||
CMonoGC* GetGC ( void ) { return this->m_pGC; }
|
||||
|
||||
#pragma region Static methods
|
||||
|
||||
static string GetBinariesDirectory( void )
|
||||
{
|
||||
return "mods/deathmatch/resources/[ire]";
|
||||
@ -53,8 +51,6 @@ public:
|
||||
|
||||
static void MonoPrintCallbackHandler( const char *string, mono_bool is_stdout );
|
||||
static void MonoPrintErrorCallbackHandler( const char *string, mono_bool is_stdout );
|
||||
|
||||
#pragma endregion
|
||||
};
|
||||
|
||||
#endif
|
@ -41,7 +41,7 @@ public:
|
||||
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 ) ) ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user