Skip to content

Commit a621762

Browse files
Export logging
1 parent f9bfcc4 commit a621762

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ void Resource_GetExports(alt::IResource* resource, alt::Array<alt::String> &keys
1919
bool Resource_GetExport(alt::IResource* resource, const char* key, alt::MValue &value) {
2020
auto dict = resource->GetExports().Get<alt::MValue::Dict>();
2121
auto dictValue = dict.find(key);
22+
std::cout << "try find in size " << std::to_string(dict.size()) << std::endl;
2223
if (dictValue == dict.end()) {
24+
std::cout << "not found key" << std::endl;
2325
return false;
2426
}
2527
value = resource->GetExports()[key];//dictValue->second

0 commit comments

Comments
 (0)