Skip to content

Commit f9bfcc4

Browse files
Small export improvements
1 parent 2a3c79e commit f9bfcc4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

api/AltV.Net.Async/AltV.Net.Async.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<RepositoryUrl>https://github.com/altmp-csharp/docs</RepositoryUrl>
1313
<RepositoryType>git</RepositoryType>
1414
<PackageTags>altv gta bridge</PackageTags>
15-
<PackageVersion>1.15.0-beta</PackageVersion>
15+
<PackageVersion>1.15.1-beta</PackageVersion>
1616
<PackageLicenseFile>license.txt</PackageLicenseFile>
1717
<PackageReleaseNotes>Add Alt.OnWeaponDamage
1818
Add Alt.OnExplosion</PackageReleaseNotes>

api/AltV.Net/AltV.Net.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<RepositoryUrl>https://github.com/altmp-csharp/docs</RepositoryUrl>
1414
<RepositoryType>git</RepositoryType>
1515
<PackageTags>altv gta bridge</PackageTags>
16-
<PackageVersion>1.15.0-beta</PackageVersion>
16+
<PackageVersion>1.15.1-beta</PackageVersion>
1717
<PackageLicenseFile>license.txt</PackageLicenseFile>
1818
<PackageReleaseNotes>Add Alt.OnWeaponDamage
1919
Add Alt.OnExplosion</PackageReleaseNotes>

runtime/src/altv-c-api/resource.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ bool Resource_GetExport(alt::IResource* resource, const char* key, alt::MValue &
2222
if (dictValue == dict.end()) {
2323
return false;
2424
}
25-
value = dictValue->second;
25+
value = resource->GetExports()[key];//dictValue->second
2626
return true;
2727
}
2828

29-
void Resource_SetExport(alt::IResource* resource, const char* key, const alt::MValue* val) {
30-
resource->GetExports()[key] = *val;
29+
void Resource_SetExport(alt::IResource* resource, const char* key, const alt::MValue& val) {
30+
resource->GetExports()[key] = val;
3131
}
3232

3333
void Resource_SetExports(alt::IResource* resource, alt::MValue* val, const char** keys, int size) {

runtime/src/altv-c-api/resource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extern "C"
1919
#endif
2020
EXPORT void Resource_GetExports(alt::IResource* resource, alt::Array<alt::String> &keys, alt::MValue::List &values);
2121
EXPORT bool Resource_GetExport(alt::IResource* resource, const char* key, alt::MValue &value);
22-
EXPORT void Resource_SetExport(alt::IResource* resource, const char* key, const alt::MValue* val);
22+
EXPORT void Resource_SetExport(alt::IResource* resource, const char* key, const alt::MValue& val);
2323
EXPORT void Resource_SetExports(alt::IResource* resource, alt::MValue* val, const char** keys, int size);
2424
EXPORT void Resource_GetPath(alt::IResource* resource, const char*&text);
2525
EXPORT void Resource_GetName(alt::IResource* resource, const char*&text);

0 commit comments

Comments
 (0)