Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fake Callresults are not implemented in the fake Steamworks extension #2364

Open
k0T0z opened this issue Nov 12, 2023 · 0 comments
Open

Fake Callresults are not implemented in the fake Steamworks extension #2364

k0T0z opened this issue Nov 12, 2023 · 0 comments

Comments

@k0T0z
Copy link
Contributor

k0T0z commented Nov 12, 2023

About the fake Steamworks API:

ENIGMA's CI needs the fake API in order to run the tests without any problems. The real Steamworks API requires connecting to Steam servers which means the CI will fail which explains why we have that fake API.

The fake API MUST simulate the real API's behavior. You will need to replicate the behavior by understanding about Callresults. Callresults are very similar to Callbacks which are already implemented so you might take it as a reference.

Currently, the Callbacks are implemented in the fake API but the Callresults aren't, which is not good.

See

// TODO: Implement this function.
void SteamAPI_RegisterCallResult(class CCallbackBase *pCallback, SteamAPICall_t hAPICall) {
// switch (pCallback->GetICallback()) {
// case (int)(k_iSteamUserStatsCallbacks + 4):
// FakeSteamUserStats::GetInstance()->RegisterLeaderboardFindResultCallresult(pCallback, hAPICall);
// break;
// case (int)(k_iSteamUserStatsCallbacks + 5):
// FakeSteamUserStats::GetInstance()->RegisterLeaderboardScoresDownloadedCallresult(pCallback, hAPICall);
// break;
// case (int)(k_iSteamUserStatsCallbacks + 6):
// FakeSteamUserStats::GetInstance()->RegisterLeaderboardScoreUploadedCallresult(pCallback, hAPICall);
// break;
// default:
// break;
// }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant