MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / IsOwnedByCurrentUser

Method IsOwnedByCurrentUser

Source/Internal/modloading.cpp:1557–1580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1555#endif
1556
1557bool ModInstance::IsOwnedByCurrentUser() {
1558 if (modsource == ModSourceSteamworks) {
1559#if ENABLE_STEAMWORKS
1560 if (SteamUser() && SteamUGC()) {
1561 if (GetUGCItem()) {
1562 CSteamID userid = SteamUser()->GetSteamID();
1563 if (GetUGCItem()->owner_id == userid) {
1564 return true;
1565 } else {
1566 return false;
1567 }
1568 } else {
1569 return false;
1570 }
1571 } else {
1572 return false;
1573 }
1574#else
1575 return false;
1576#endif
1577 } else {
1578 return false;
1579 }
1580}
1581
1582bool ModInstance::IsSubscribed() {
1583 if (modsource == ModSourceSteamworks) {

Callers 2

GetCategorizedModsFunction · 0.80
DrawAdvancedModMenuFunction · 0.80

Calls 1

GetSteamIDMethod · 0.80

Tested by

no test coverage detected