Files
hackerlibultra/include/ultrahost.h
someone2639 c366e0122a Format the Repo (#3)
* set build options

* remove COMPARE and MDOERN_* switches

* remove tools makefile

* AR patching is gone too since we want a fullly decomped version

* AR is modern

* remove cwd changes

* edit my own tool to fix compile errors

* compile files generated with my own tool instead of the originals

* inline modern_gcc makefile

* port mips toolchain detection logic

* add util.mk for find-command

* remove forced AR order and strip/mdebug removal commands

* add -mabi=32 to as flags

* formatting changes

* add clang format files

* formatting changes

* make libgultra CI work

* install mips gcc too

* add format check tools

* Add formatting to CI

* Add CI (#4)

* make libgultra CI work

* install mips gcc too

* remove make setup

---------

Co-authored-by: someone2639 <someone2639@gmail.com>

* we don't use clang-tidy

* use 120 width for formatting

* a

* address clang-tidy messing up

* test

* align consecutive macros and declarations

* only align macros for now

* SpaceAfterCStyleCast: false

* format headers too

* remove cast space switch because its false by default

* pointers on left

* AlignConsecutiveBitFields: true

* install clang-format and clang-tidy on gh actions

* and clang-tools

* show diff in format check tool

* make CI work

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
🙏
2025-02-17 22:56:09 -05:00

60 lines
1.5 KiB
C

/**************************************************************************
*
* $Revision: 1.1 $
* $Date: 1999/07/05 02:16:07 $
*
**************************************************************************/
#ifndef _ULTRAHOST_H_
#define _ULTRAHOST_H_
#ifdef WIN32 /* { */
int __stdcall uhOpenGame(char*);
int __stdcall uhCloseGame(int);
int __stdcall uhReadGame(int hfd, void* buf, int count);
int __stdcall uhWriteGame(int hfd, void* buf, int count);
int __stdcall uhReadRamrom(int hfd, void* ramrom_adr, void* buf, int count);
int __stdcall uhWriteRamrom(int hfd, void* ramrom_adr, void* buf, int count);
int __stdcall uhPartnerInit(int hfd);
int __stdcall uhPartnerCmd(int hfd, char* ptcmd);
int __stdcall uhGload(int hfd, char* loadfile);
#else /* }{ */
#ifdef PTN64 /* { */
#define execl execl_pt
#define uhOpenGame uhOpenGame_pt
#define uhCloseGame uhCloseGame_pt
#define uhReadGame uhReadGame_pt
#define uhWriteGame uhWriteGame_pt
#define uhReadRamrom uhReadRamrom_pt
#define uhWriteRamrom uhWriteRamrom_pt
#define uhPartnerCmd uhPartnerCmd_pt
#define uhGload uhGload_pt
int uhPartnerCmd(int, char*);
int uhGload(int, char*);
#endif /* } */
#ifdef __cplusplus
extern "C" {
#endif
int uhOpenGame(const char*);
int uhCloseGame(int);
int uhReadGame(int, void*, int);
int uhWriteGame(int, void*, int);
int uhWriteRamrom(int, void*, void*, int);
int uhReadRamrom(int, void*, void*, int);
#ifdef __cplusplus
}
#endif
#endif /* } */
#endif /* ULTRAHOST */