From 879940fe8e5cda10eb5f8f9af5b4749ec2c6ff2a Mon Sep 17 00:00:00 2001 From: Kernell Date: Fri, 13 Mar 2015 07:40:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=BE=D1=87=D0=BA=D0=B0=20=D0=B2=D1=85?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=20Program.=20Assembly=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=B3=D1=80=D1=83=D0=B6=D0=B0=D1=8E=D1=82=D1=81=D1=8F=20=D0=B8?= =?UTF-8?q?=D0=B7=20resources/[ire]/%=D0=B8=D0=BC=D1=8F=5F=D1=80=D0=B5?= =?UTF-8?q?=D1=81=D1=83=D1=80=D1=81=D0=B0%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mta-mono/src/CResource.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mta-mono/src/CResource.cpp b/mta-mono/src/CResource.cpp index 97ff331..7eeaf96 100644 --- a/mta-mono/src/CResource.cpp +++ b/mta-mono/src/CResource.cpp @@ -51,12 +51,12 @@ bool CResource::Init( void ) { if( this->m_pLuaVM ) { - string sDirectory ( "mods/deathmatch/mono/resources/" ); + string sDirectory ( "mods/deathmatch/resources/[ire]/" + this->m_sName + "/" ); string sPath ( sDirectory + this->m_sName + ".dll" ); string sNamespace ( this->m_sName ); - string sClass ( "Resource" ); + string sClass ( "Program" ); - this->m_pMonoDomain = mono_domain_create_appdomain( (char*)this->m_sName.c_str(), NULL ); + this->m_pMonoDomain = mono_domain_create_appdomain( const_cast< char* >( this->m_sName.c_str() ), NULL ); if( !this->m_pMonoDomain ) {