Skip to content
Permalink
Browse files

added Allow mods from other games param

  • Loading branch information...
Turupawn committed Sep 13, 2019
1 parent ffaf710 commit 284e0061abe7178fcfe11b6997b8c5171a4bfc66
Showing with 86 additions and 65 deletions.
  1. +1 −1 examples/code-samples/c/01_Authentication.c
  2. +1 −1 examples/code-samples/c/02_BrowseMods.c
  3. +1 −1 examples/code-samples/c/03_GetUserMods.c
  4. +1 −1 examples/code-samples/c/04_ErrorResponse.c
  5. +1 −1 examples/code-samples/c/05_DownloadModfile.c
  6. +1 −1 examples/code-samples/c/06_DownloadImages.c
  7. +1 −1 examples/code-samples/c/07_RemoveModfile.c
  8. +1 −1 examples/code-samples/c/08_AddMod.c
  9. +1 −1 examples/code-samples/c/09_GetMod.c
  10. +1 −1 examples/code-samples/c/10_AddModfile.c
  11. +1 −1 examples/code-samples/c/11_EditMod.c
  12. +1 −1 examples/code-samples/c/12_EditModfile.c
  13. +1 −1 examples/code-samples/c/13_DeleteModfile.c
  14. +1 −1 examples/code-samples/c/14_AddModLogo.c
  15. +1 −1 examples/code-samples/c/15_AddModImages.c
  16. +1 −1 examples/code-samples/c/16_AddModYoutubeLinks.c
  17. +1 −1 examples/code-samples/c/17_AddModSketchfabLinks.c
  18. +1 −1 examples/code-samples/c/18_DeleteModImages.c
  19. +1 −1 examples/code-samples/c/19_DeleteModYoutubeLinks.c
  20. +1 −1 examples/code-samples/c/20_DeleteModSketchfabLinks.c
  21. +1 −1 examples/code-samples/c/21_DeleteMod.c
  22. +1 −1 examples/code-samples/c/22_GetTags.c
  23. +1 −1 examples/code-samples/c/23_AddTags.c
  24. +1 −1 examples/code-samples/c/24_DeleteTags.c
  25. +1 −1 examples/code-samples/c/25_SubscribeToMod.c
  26. +1 −1 examples/code-samples/c/26_UnsubscribeFromMod.c
  27. +1 −1 examples/code-samples/c/27_Ratings.c
  28. +1 −1 examples/code-samples/c/28_GetMetadataKVP.c
  29. +1 −1 examples/code-samples/c/29_AddMetadataKVP.c
  30. +1 −1 examples/code-samples/c/30_DeleteMetadataKVP.c
  31. +1 −1 examples/code-samples/c/31_EventsListener.c
  32. +1 −1 examples/code-samples/c/32_GetModEvents.c
  33. +1 −1 examples/code-samples/c/33_GetAllModEvents.c
  34. +1 −1 examples/code-samples/c/34_GetModfile.c
  35. +1 −1 examples/code-samples/c/35_GetModfiles.c
  36. +1 −1 examples/code-samples/c/36_GetAuthenticatedUser.c
  37. +1 −1 examples/code-samples/c/37_GetUserSubscriptions.c
  38. +1 −1 examples/code-samples/c/38_GetUserGames.c
  39. +1 −1 examples/code-samples/c/39_GetUserMods.c
  40. +1 −1 examples/code-samples/c/40_GetUserModfiles.c
  41. +1 −1 examples/code-samples/c/41_GetUserEvents.c
  42. +1 −1 examples/code-samples/c/42_GetUserRatings.c
  43. +1 −1 examples/code-samples/c/43_GetAllModDependencies.c
  44. +1 −1 examples/code-samples/c/44_AddModDependencies.c
  45. +1 −1 examples/code-samples/c/45_DeleteModDependencies.c
  46. +1 −1 examples/code-samples/c/46_GetAllModComments.c
  47. +1 −1 examples/code-samples/c/47_GetModComment.c
  48. +1 −1 examples/code-samples/c/48_DeleteModComment.c
  49. +1 −1 examples/code-samples/c/49_SubmitReport.c
  50. +1 −1 examples/code-samples/c/50_DownloadsControl.c
  51. +1 −1 examples/code-samples/c/51_GetModStats.c
  52. +1 −1 examples/code-samples/c/52_GetAllModStats.c
  53. +1 −1 examples/code-samples/c/53_GetAuthenticatedUser.c
  54. +1 −1 examples/code-samples/c/54_SteamAuth.c
  55. +1 −1 examples/code-samples/c/55_GalaxyAuth.c
  56. +1 −1 examples/code-samples/c/56_LinkExternalAccount.c
  57. +1 −1 examples/code-samples/c/57_GetInstalledMod.c
  58. +1 −1 examples/code-samples/c/58_OculusAuth.c
  59. +1 −0 include/Globals.h
  60. +1 −0 include/ModioUtility.h
  61. +1 −1 include/c++/ModIOInstance.h
  62. +1 −1 include/c/ModioC.h
  63. +1 −0 src/Globals.cpp
  64. +6 −1 src/ModioUtility.cpp
  65. +3 −3 src/c++/ModIOInstance.cpp
  66. +11 −0 src/c/methods/MeMethods.cpp
  67. +3 −1 src/modio.cpp
@@ -42,7 +42,7 @@ void onEmailRequest(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -29,7 +29,7 @@ void onGetAllMods(void *object, ModioResponse response, ModioMod *mods, u32 mods

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -29,7 +29,7 @@ void onGetAllMods(void *object, ModioResponse response, ModioMod *mods, u32 mods

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -30,7 +30,7 @@ void onGetAllMods(void *object, ModioResponse response, ModioMod *mods, u32 mods

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -20,7 +20,7 @@ void onDownloadMod(u32 response_code, u32 mod_id)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

// Let's start by requesting a single mod
printf("Please enter the mod id: \n");
@@ -36,7 +36,7 @@ void onGetMod(void *object, ModioResponse response, ModioMod mod)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -4,7 +4,7 @@

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

// First, let's check if there is at least one mod installed
u32 installed_mods_count = modioGetAllInstalledModsCount();
@@ -18,7 +18,7 @@ void onAddMod(void *object, ModioResponse response, ModioMod mod)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

if (!modioIsLoggedIn())
{
@@ -28,7 +28,7 @@ void onGetMod(void *object, ModioResponse response, ModioMod mod)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -18,7 +18,7 @@ void onAddModfile(u32 response_code, u32 mod_id)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

if (!modioIsLoggedIn())
{
@@ -15,7 +15,7 @@ void onEditMod(void *object, ModioResponse response, ModioMod mod)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onEditModfile(void *object, ModioResponse response, ModioModfile modfile)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onDeleteModfile(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onAddModLogo(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onAddModImages(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onAddModYoutubeLinks(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onAddModSketchfabLinks(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onDeleteModImages(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onDeleteModYoutubeLinks(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onDeleteModSketchfabLinks(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onModDeleted(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -19,7 +19,7 @@ void onGetModTags(void *object, ModioResponse response, ModioTag *tags_array, u3

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onAddModTags(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onDeleteModTags(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -18,7 +18,7 @@ void onSubscribeToMod(void *object, ModioResponse response, ModioMod mod)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -16,7 +16,7 @@ void onModUnsubscribed(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -16,7 +16,7 @@ void onAddModRating(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -19,7 +19,7 @@ void onGetAllMetadataKVP(void *object, ModioResponse response, ModioMetadataKVP

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onAddMetadataKVP(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onDeleteMetadataKVP(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -41,7 +41,7 @@ void onEvent(ModioResponse response, ModioModEvent *events_array, u32 events_arr

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -42,7 +42,7 @@ void onGetEvents(void *object, ModioResponse response, ModioModEvent *events_arr

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -42,7 +42,7 @@ void onGetAllEvents(void *object, ModioResponse response, ModioModEvent *events_

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -18,7 +18,7 @@ void onGetModfile(void *object, ModioResponse response, ModioModfile modfile)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -23,7 +23,7 @@ void onGetAllModfiles(void *object, ModioResponse response, ModioModfile modfile

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -16,7 +16,7 @@ void onGetAuthenticatedUser(void *object, ModioResponse response, ModioUser user

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -22,7 +22,7 @@ void onGetUserSubscriptions(void *object, ModioResponse response, ModioMod *mods

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -22,7 +22,7 @@ void onGetUserGames(void *object, ModioResponse response, ModioGame *games, u32

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -22,7 +22,7 @@ void onGetUserMods(void *object, ModioResponse response, ModioMod *mods, u32 mod

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -24,7 +24,7 @@ void onGetUserModfiles(void *object, ModioResponse response, ModioModfile *modfi

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -42,7 +42,7 @@ void onGetUserEvents(void *object, ModioResponse response, ModioUserEvent *event

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -21,7 +21,7 @@ void onGetUserRatings(void *object, ModioResponse response, ModioRating *ratings

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -19,7 +19,7 @@ void onGetAllDependencies(void *object, ModioResponse response, ModioDependency

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

@@ -15,7 +15,7 @@ void onAddModDependencies(void *object, ModioResponse response)

int main(void)
{
modioInit(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b", NULL);
modioInit(MODIO_ENVIRONMENT_TEST, 7, false, "e91c01b8882f4affeddd56c96111977b", NULL);

bool wait = true;

0 comments on commit 284e006

Please sign in to comment.
You can’t perform that action at this time.