foxygit / fake-08-xbox360 Log in
main xbox360 commits tags

/platform/xex/runtime/xex_runtime.h · 981 B

raw
/* Helpers of the GCC Xbox 360 title runtime (runtime/ sources). */
#ifndef XEX_RUNTIME_H
#define XEX_RUNTIME_H

#include <stddef.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

/* DbgPrint without format interpretation. */
void xex_debug_write(const void *buf, size_t len);

/* Creates usb0:..usb2: (\Device\Mass0..2) and hdd: (Partition1). */
void xex_mount_devices(void);

/* Mounts a kernel device ("\\Device\\Mass0") as "name:" ("usb0"). */
int xex_mount(const char *name, const char *device);
int xex_unmount(const char *name);

/* "usb0:/a/b" -> "\??\usb0:\a\b" (relative paths are under game:). */
int xex_kernel_path(const char *path, char *out, size_t size);

/* Xbox guide notification with an ASCII text. */
void xex_notify(const char *text);

void xex_sleep_ms(unsigned ms);

/* Time base (mftb) ticks and frequency (49.875 MHz on retail consoles). */
uint64_t xex_timebase(void);
uint64_t xex_timebase_freq(void);

#ifdef __cplusplus
}
#endif

#endif