Точка входа изменена на Program. Assembly загружаются из resources/[ire]/%имя_ресурса%

This commit is contained in:
Kernell 2015-03-13 07:40:47 +03:00
parent 96c0084e02
commit 879940fe8e

View File

@ -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 )
{