Skip to content

Commit

Permalink
add ability to redirect rc_client calls (RetroAchievements#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras authored Nov 25, 2023
1 parent 5a95197 commit 0789bb7
Show file tree
Hide file tree
Showing 13 changed files with 2,558 additions and 75 deletions.
35 changes: 35 additions & 0 deletions include/rc_client_raintegration.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#ifndef RC_CLIENT_RAINTEGRATION_H
#define RC_CLIENT_RAINTEGRATION_H

#ifdef __cplusplus
extern "C" {
#endif

#ifndef _WIN32
#undef RC_CLIENT_SUPPORTS_RAINTEGRATION /* Windows required for RAIntegration */
#endif

#ifdef RC_CLIENT_SUPPORTS_RAINTEGRATION

#ifndef RC_CLIENT_SUPPORTS_EXTERNAL
#define RC_CLIENT_SUPPORTS_EXTERNAL /* external rc_client required for RAIntegration */
#endif

#include "rc_client.h"

#include <wtypes.h> /* HWND */

rc_client_async_handle_t* rc_client_begin_load_raintegration(rc_client_t* client,
const wchar_t* search_directory, HWND main_window_handle,
const char* client_name, const char* client_version,
rc_client_callback_t callback, void* callback_userdata);

void rc_client_unload_raintegration(rc_client_t* client);

#endif /* RC_CLIENT_SUPPORTS_RAINTEGRATION */

#ifdef __cplusplus
}
#endif

#endif /* RC_CLIENT_RAINTEGRATION_H */
Loading

0 comments on commit 0789bb7

Please sign in to comment.