Commit 98a8c8d 1 parent 5c7b31f commit 98a8c8d Copy full SHA for 98a8c8d
File tree 3 files changed +10
-4
lines changed
src/AlternateLife.RageMP.Net
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ bool ClrHost::load() {
76
76
return false ;
77
77
}
78
78
79
- if (_mainCallback == nullptr && getDelegate (" Main " , (void **)&_mainCallback) == false ) {
79
+ if (_mainCallback == nullptr && getDelegate (" PluginMain " , (void **) &_mainCallback) == false ) {
80
80
return false ;
81
81
}
82
82
@@ -203,15 +203,16 @@ bool ClrHost::createAppDomain() {
203
203
}
204
204
205
205
// execute assembly to set a valid entry point which is needed by some libraries as mysql
206
- auto libraryPath = getAbsolutePath (std::string (PLUGIN_DIR_PATH) + PLUGIN_NAME);
206
+ unsigned int exitCode = 0 ;
207
+ auto libraryPath = getAbsolutePath (std::string (PLUGIN_DIR_PATH) + PLUGIN_NAME + " .dll" );
207
208
208
209
result = _executeAssembly (
209
210
_runtimeHost,
210
211
_domainId,
211
212
0 ,
212
213
nullptr ,
213
214
libraryPath.c_str (),
214
- nullptr
215
+ &exitCode
215
216
);
216
217
217
218
if (result < 0 ) {
Original file line number Diff line number Diff line change 14
14
<RepositoryUrl >https://github.com/AlternateLife/RageMP.Net/</RepositoryUrl >
15
15
<RepositoryType >git</RepositoryType >
16
16
<PackageTags >ragemp gta bridge</PackageTags >
17
+ <OutputType >Exe</OutputType >
17
18
</PropertyGroup >
18
19
19
20
<PropertyGroup Condition =" '$(Configuration)' == 'Testing' " >
Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ namespace AlternateLife.RageMP.Net
8
8
{
9
9
internal static class PluginWrapper
10
10
{
11
- public static void Main ( IntPtr multiplayer )
11
+ public static void Main ( )
12
+ {
13
+ }
14
+
15
+ public static void PluginMain ( IntPtr multiplayer )
12
16
{
13
17
var plugin = new Plugin ( multiplayer ) ;
14
18
You can’t perform that action at this time.
0 commit comments