forked from RetroAchievements/rcheevos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ability to redirect rc_client calls (RetroAchievements#290)
- Loading branch information
Showing
13 changed files
with
2,558 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ |
Oops, something went wrong.