Skip to content

Commit 3992f30

Browse files
Use resource name as app domain name
1 parent b911e8e commit 3992f30

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

runtime/include/CoreClr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class CoreClr {
6464
alt::Array<alt::String> getTrustedAssemblies(alt::IServer* server, const char* appPath);
6565

6666
void CreateAppDomain(alt::IServer* server, alt::IResource* resource, const char* appPath, void** runtimeHost,
67-
unsigned int* domainId, bool executable, uint64_t resourceIndex);
67+
unsigned int* domainId, bool executable, uint64_t resourceIndex, const char* domainName);
6868

6969
void Shutdown(alt::IServer* server, void* runtimeHost,
7070
unsigned int domainId);

runtime/src/CSharpResource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ CSharpResource::CSharpResource(alt::IServer* server, CoreClr* coreClr, alt::IRes
6060
0);//TODO: needs resource cfg "assembly"
6161

6262
coreClr->CreateAppDomain(server, this, this->GetPath().CStr(), &runtimeHost, &domainId, executable,
63-
resourcesCache.GetSize() - 1);
63+
resourcesCache.GetSize() - 1, this->name.CStr());
6464

6565
if (!executable) {
6666
coreClr->GetDelegate(server, runtimeHost, domainId, "AltV.Net", "AltV.Net.ModuleWrapper", "Main",

runtime/src/CoreClr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ alt::Array<alt::String> CoreClr::getTrustedAssemblies(alt::IServer* server, cons
228228
}
229229

230230
void CoreClr::CreateAppDomain(alt::IServer* server, alt::IResource* resource, const char* appPath, void** runtimeHost,
231-
unsigned int* domainId, bool executable, uint64_t resourceIndex) {
231+
unsigned int* domainId, bool executable, uint64_t resourceIndex, const char* domainName) {
232232
alt::String tpaList = "";
233233

234234
//TODO: check if useless list separator at the end is fine

0 commit comments

Comments
 (0)