Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #26 from modio/testing
Browse files Browse the repository at this point in the history
Updating from latest SDK changes
  • Loading branch information
Turupawn authored Jun 13, 2020
2 parents d18d7ee + 9c3393b commit 533ef2b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
Binary file removed Source/ThirdParty/mod.io-sdk/bin/win32/modio.dll
Binary file not shown.
Binary file modified Source/ThirdParty/mod.io-sdk/bin/win64/modio.dll
Binary file not shown.
13 changes: 7 additions & 6 deletions Source/ThirdParty/mod.io-sdk/include/c/ModioC.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ typedef int i32;
#define MODIO_EVENT_USER_TEAM_LEAVE 6
#define MODIO_EVENT_USER_SUBSCRIBE 7
#define MODIO_EVENT_USER_UNSUBSCRIBE 8
#define MODIO_EVENT_MOD_DELETED 9

// Presentation Option Constants
#define MODIO_GRID_VIEW 0
Expand Down Expand Up @@ -266,7 +267,7 @@ extern "C"
char* thumb_640x360;
char* thumb_1280x720;
};

struct ModioIcon
{
char* filename;
Expand Down Expand Up @@ -469,7 +470,7 @@ extern "C"
char* path;
ModioMod mod;
};

struct ModioQueuedModDownload
{
u32 state;
Expand Down Expand Up @@ -689,8 +690,8 @@ extern "C"
void MODIO_DLL modioCancelModDownload(u32 mod_id);
void MODIO_DLL modioResumeDownloads(void);
void MODIO_DLL modioPrioritizeModDownload(u32 mod_id);
void MODIO_DLL modioSetDownloadListener(void (*callback)(u32 response_code, u32 mod_id));
void MODIO_DLL modioSetUploadListener(void (*callback)(u32 response_code, u32 mod_id));
void MODIO_DLL modioSetDownloadListener(void (*callback)(u32 response_code, u32 mod_id));
void MODIO_DLL modioSetUploadListener(void (*callback)(u32 response_code, u32 mod_id));
u32 MODIO_DLL modioGetModDownloadQueueCount(void);
void MODIO_DLL modioGetModDownloadQueue(ModioQueuedModDownload* download_queue);
u32 MODIO_DLL modioGetModfileUploadQueueCount(void);
Expand All @@ -712,7 +713,7 @@ extern "C"
//Comment Methods
void MODIO_DLL modioGetAllModComments(void* object, u32 mod_id, ModioFilterCreator filter, void (*callback)(void* object, ModioResponse response, ModioComment comments[], u32 comments_size));
void MODIO_DLL modioGetAllModCommentsFilterString(void* object, u32 mod_id, char const* filter_string, u32 cache_max_age_seconds, void (*callback)(void* object, ModioResponse response, ModioComment comments[], u32 comments_size));
void MODIO_DLL modioGetModComment(void* object, u32 mod_id, u32 comment_id, void (*callback)(void* object, ModioResponse response, ModioComment comment));
void MODIO_DLL modioGetModComment(void* object, u32 mod_id, u32 comment_id, void (*callback)(void* object, ModioResponse response, ModioComment comment));
void MODIO_DLL modioDeleteModComment(void* object, u32 mod_id, u32 comment_id, void(*callback)(void* object, ModioResponse response));

//Reports Methods
Expand All @@ -728,7 +729,7 @@ extern "C"
void MODIO_DLL modioFreeQueuedModDownload(ModioQueuedModDownload* queued_mod_download);
void MODIO_DLL modioFreeQueuedModfileUpload(ModioQueuedModfileUpload* queued_modfile_upload);

// General Utility Methods
// General Utility Methods
void MODIO_DLL compressFiles(char const* root_directory, char const* const filenames[], u32 filenames_size, char const* zip_path);
void MODIO_DLL extractFiles(char const* zip_path, char const* directory_path);
void MODIO_DLL windowsUTF8ToAnsi(const char* UTF8_string, char* ansi_string);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ struct GetAuthenticatedUserParams

struct GetUserSubscriptionsParams
{
void* object;
std::string url;
bool is_cache;
void (*callback)(void* object, ModioResponse response, ModioMod mods[], u32 mods_size);
std::vector<void*> objects;
std::vector<void(*)(void* object, ModioResponse response, ModioMod mods[], u32 mods_size)> callbacks;
};

struct GetUserEventsParams
Expand Down
Binary file modified Source/ThirdParty/mod.io-sdk/lib/linux-x64/libmodio.so
Binary file not shown.
Binary file removed Source/ThirdParty/mod.io-sdk/lib/win32/modio.lib
Binary file not shown.

0 comments on commit 533ef2b

Please sign in to comment.