Skip to content

WinFutureX/blastem_discord_sdk_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The BlastEm Discord SDK API

A simple Discord interface for the BlastEm emulator that enables Rich Presence.

Implementing the interface

AAAAAAAAAA

It's rather messy.

  1. Drop discord_all.c, discord_all.h and discord_game_sdk.h into BlastEm's source root.
  2. Put discord_update_activity(<int>) in blastem.c's for loop (whereever necessary) and in ui_idle_loop in nuklear_ui/blastem_nuklear.c
  3. Put discord_run_callbacks() in render_framebuffer_updated in render_sdl.c
  4. Put #include "discord_all.h" in all the aforementioned source files.
  5. Amend the Makefile, such that:
    # redacted for brevity
    DISCORD_OBJS = discord_all.o
    MAIN_OBJS=blastem.o system.o ... $(DISCORD_OBJS)
    LDFLAGS+=-ldl # linux only

Or forgo the above steps, and do things your own way instead.

As a further note, you'll need to get the game SDK library from Discord's website here. It should be in the lib folder and depending on your CPU architecture, the x86 or x86_64 subdirectories, followed by the SDK .dll, .dylib and .so for Windows, macOS and Linux respectively. For Windows, the SDK library should be extracted to BlastEm's root directory. As for Linux, it to be in BlastEm's lib folder. I'm not sure about macOS though.

  • NOTE: The 32-bit x86 version only has Windows DLLs.

About

A Discord Rich Presence interface for the BlastEm emulator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages