mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 19:25:35 +08:00
Update steam_remote_storage.h
Added better version if this. Now support from reading mods and using the mods file
This commit is contained in:
parent
e2cb2e0f38
commit
1bdd540498
@ -655,12 +655,24 @@ SteamAPICall_t EnumerateUserSubscribedFiles( uint32 unStartIndex )
|
|||||||
{
|
{
|
||||||
PRINT_DEBUG("Steam_Remote_Storage::EnumerateUserSubscribedFiles\n");
|
PRINT_DEBUG("Steam_Remote_Storage::EnumerateUserSubscribedFiles\n");
|
||||||
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||||
|
// Get ready for a working but bad implementation - Detanup01
|
||||||
RemoteStorageEnumerateUserSubscribedFilesResult_t data;
|
RemoteStorageEnumerateUserSubscribedFilesResult_t data;
|
||||||
data.m_eResult = k_EResultOK;
|
data.m_eResult = k_EResultOK;
|
||||||
data.m_nResultsReturned = 0;
|
auto mods = settings->modSet();
|
||||||
data.m_nTotalResultCount = 0;
|
uint32_t modCount = mods.size();
|
||||||
//data.m_rgPublishedFileId;
|
data.m_nResultsReturned = modCount;
|
||||||
//data.m_rgRTimeSubscribed;
|
data.m_nTotalResultCount = modCount;
|
||||||
|
data.m_rgPublishedFileId;
|
||||||
|
data.m_rgRTimeSubscribed;
|
||||||
|
uint32_t iterated = 0;
|
||||||
|
for (std::set<PublishedFileId_t>::iterator i = mods.begin(); i != mods.end(); i++) {
|
||||||
|
PublishedFileId_t modId = *i;
|
||||||
|
auto mod = settings->getMod(modId);
|
||||||
|
uint32 time = mod.timeAddedToUserList; //this can be changed, default is 1554997000
|
||||||
|
data.m_rgPublishedFileId[iterated] = modId;
|
||||||
|
data.m_rgRTimeSubscribed[iterated] = time;
|
||||||
|
iterated++;
|
||||||
|
}
|
||||||
return callback_results->addCallResult(data.k_iCallback, &data, sizeof(data));
|
return callback_results->addCallResult(data.k_iCallback, &data, sizeof(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user