mirror of
https://github.com/open-goal/jak-project
synced 2026-07-11 07:25:37 -04:00
bde49ea079
* add discord rpc library * add discord rpc * add cutscene check * fix build (hopefully) * fix build * edit paths * Replace prebuilt discord-rpc lib with repo clone
20 lines
453 B
C
Vendored
Generated
20 lines
453 B
C
Vendored
Generated
#pragma once
|
|
|
|
// This is to wrap the platform specific kinds of connect/read/write.
|
|
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
// not really connectiony, but need per-platform
|
|
int GetProcessId();
|
|
|
|
struct BaseConnection {
|
|
static BaseConnection* Create();
|
|
static void Destroy(BaseConnection*&);
|
|
bool isOpen{false};
|
|
bool Open();
|
|
bool Close();
|
|
bool Write(const void* data, size_t length);
|
|
bool Read(void* data, size_t length);
|
|
};
|