Namespace

Hs – 1

An interface for porting emulators to Highscore

Version0.1.0
AuthorsAlice Mikhaylenko
LicenseLGPL-2.1-or-later
Websitehttps://alice-m.codeberg.page/libhighscore/
Sourcehttps://codeberg.org/alice-m/libhighscore

Build

C headerslibhighscore.h
pkg-config fileshighscore-1

Dependencies

GObject—2.0 The base type system and object class
Browse documentation
Gio—2.0 General purpose I/O, networking, IPC, settings, and other high level application functionality
Browse documentation

Additional documentation

Classes

Core

Base class for the cores.

CoreDescriptor

Represents a core descriptor file.

Interfaces

Atari2600Core

An interface for Atari 2600 cores.

Atari7800Core

An interface for Atari 7800 cores.

AtariLynxCore

An interface for Atari Lynx cores.

FdsCore

An interface for Famicom Disk System cores.

Frontend

An interface defining a frontend.

GameBoyAdvanceCore

An interface for Game Boy Advance cores.

GameBoyColorCore

An interface for Game Boy Color cores.

GameBoyCore

An interface for Game Boy and Game Boy Color cores.

GameGearCore

An interface for Game Gear cores.

GLContext

An interface defining an OpenGL context.

MasterSystemCore

An interface for Master System cores.

MegaCd32XCore

An interface for Mega-CD 32X cores.

MegaCdCore

An interface for Mega-CD cores.

MegaDrive32XCore

An interface for Mega Drive 32X cores.

MegaDriveCore

An interface for Mega Drive cores.

NeoGeoPocketColorCore

An interface for Neo Geo Pocket Color cores.

NeoGeoPocketCore

An interface for Neo Geo Pocket cores.

NesCore

An interface for NES cores.

Nintendo64Core

An interface for Nintendo 64 cores.

NintendoDsCore

An interface for Nintendo DS cores.

PcEngineCdCore

An interface for PC Engine CD cores.

PcEngineCore

An interface for PC Engine cores.

PlayStationCore

An interface for PlayStation cores.

SegaSaturnCore

An interface for Sega Saturn cores.

Sg1000Core

An interface for SG-1000 cores.

SoftwareContext

An interface defining an software rendering context.

SuperGameBoyCore

An interface for Super Game Boy cores.

SuperNesCore

An interface for Super NES cores.

VirtualBoyCore

An interface for Virtual Boy cores.

WonderSwanColorCore

An interface for WonderSwan Color cores.

WonderSwanCore

An interface for WonderSwan cores.

Unions

InputState

A union of input states from the different platforms.

Enumerations

Atari2600Controller

Supported Atari 2600 controllers.

Atari2600Difficulty

Atari 2600 difficulty switch positions.

Atari2600JoystickButton

Atari2600TVType

Atari 2600 TV Type switch positions.

Atari7800Controller

Supported Atari 7800 controllers.

Atari7800Difficulty

Atari 7800 difficulty switch positions.

Atari7800JoystickButton

AtariLynxButton

AtariLynxFirmware

Firmware IDs for hs_core_set_firmware_path().

FdsFirmware

Firmware IDs for hs_core_set_firmware_path().

FirmwareRequirement

Describes firmware requirements for a given core.

GameBoyAccessory

Game Boy accessories.

GameBoyAdvanceButton

GameBoyAdvanceFirmware

GameBoyButton

GameBoyColorFirmware

Firmware IDs for hs_core_set_firmware_path().

GameBoyFirmware

Firmware IDs for hs_core_set_firmware_path().

GameBoyModel

Game Boy models.

GameGearButton

GLAPI

Describes OpenGL APIs for HsGLContext.

InterlacingMode

Describes interlacing modes for hs_software_context_set_interlacing() and hs_gl_context_set_interlacing().

LogLevel

Describes log levels for hs_core_log().

MasterSystemAccessory

Supported Master System accessories.

MasterSystemButton

MegaCdFirmware

Firmware IDs for hs_core_set_firmware_path().

MegaDriveButton

NeoGeoPocketButton

NesAccessory

Available accessories for hs_nes_core_set_accessory().

NesButton

NesMicLevel

Famicom mic level.

Nintendo64Button

Nintendo64EmulationMode

Nintendo 64 emulation modes for hs_nintendo_64_core_set_emulation_mode().

Nintendo64Pak

Nintendo 64 controller expansions.

NintendoDsButton

PcEngineButton

PcEngineCdFirmware

Firmware IDs for hs_core_set_firmware_path().

PcEnginePadMode

PC Engine pad mode.

PixelFormat

Represents the pixel formats to use for HsSoftwareContext framebuffer.

Platform

Represents the supported game platforms.

PlayStationButton

PlayStationDualShockMode

DualShock modes for hs_playstation_core_get_dualshock_mode() and hs_playstation_core_set_dualshock_mode().

PlayStationFirmware

Firmware IDs for hs_core_set_firmware_path().

PlayStationStick

Region

Represents game region.

SegaSaturn3DPadMode

Describes the controller types for the 3D Control Pad.

SegaSaturnButton

SegaSaturnController

Controller type for hs_sega_saturn_core_set_controller().

SegaSaturnFirmware

Firmware IDs for hs_core_set_firmware_path().

Sg1000Button

SuperGameBoyFirmware

Firmware IDs for hs_core_set_firmware_path().

SuperNesAccessory

Controller type for hs_super_nes_core_set_accessory().

SuperNesButton

VirtualBoyButton

WonderSwanButton

Bitfields

GLFlags

Flags that can be passed when creating a HsGLContext.

Error Domains

CoreDescriptorError

An error code used in hs_core_descriptor_parse().

CoreError

An error code used in various methods in HsCore.

GLContextError

An error code used in Hs.GLContextInterface.realize.

Callbacks

StateCallback

The callback to call after finishing Hs.CoreClass.load_state or Hs.CoreClass.save_state.

Function Macros

BORDER_INIT

Initializes a HsBorder when declaring it.

BORDER_INIT_FULL

Initializes a HsBorder when declaring it.

CHECK_VERSION

Compile-time version checking.

RECTANGLE_INIT

Initializes a HsRectangle when declaring it.

Constants

ATARI_2600_MAX_PLAYERS

The maximum number of players in Atari 2600 games.

ATARI_7800_MAX_PLAYERS

The maximum number of players in Atari 7800 games.

ATARI_LYNX_N_BUTTONS

The number of Atari Lynx buttons.

GAME_BOY_ADVANCE_N_BUTTONS

The number of Game Boy Advance buttons.

GAME_BOY_N_BUTTONS

The number of Game Boy buttons.

GAME_GEAR_N_BUTTONS

The number of Game Gear buttons.

MAJOR_VERSION

Libhighscore major version component (e.g. 1 if the version is 1.2.3).

MASTER_SYSTEM_MAX_PLAYERS

The maximum number of players in Master System games.

MASTER_SYSTEM_N_BUTTONS

The number of Master System pad buttons.

MAX_RUMBLE_DURATION

The maximum allowed duration in hs_core_rumble(), in milliseconds.

MEGA_DRIVE_MAX_PLAYERS

The maximum number of players in Mega Drive games.

MEGA_DRIVE_N_BUTTONS

The number of Mega Drive pad buttons.

MICRO_VERSION

Libhighscore micro version component (e.g. 3 if the version is 1.2.3).

MINOR_VERSION

Libhighscore minor version component (e.g. 2 if the version is 1.2.3).

N_PLATFORMS

NEO_GEO_POCKET_N_BUTTONS

The number of Neo Geo Pocket buttons.

NES_MAX_PLAYERS

The maximum number of players in NES games.

NES_N_BUTTONS

The number of NES pad buttons.

NINTENDO_64_MAX_PLAYERS

The maximum number of players in Nintendo 64 games.

NINTENDO_64_N_BUTTONS

The number of Nintendo 64 pad buttons.

NINTENDO_DS_N_BUTTONS

The number of Nintendo DS buttons.

PC_ENGINE_MAX_PLAYERS

The maximum number of players in PC Engine games.

PC_ENGINE_N_BUTTONS

The number of PC Engine pad buttons.

PLAYSTATION_MAX_PLAYERS

The maximum number of players in PlayStation games.

PLAYSTATION_N_BUTTONS

The number of PlayStation pad buttons.

PLAYSTATION_N_STICKS

The number of PlayStation pad sticks.

SEGA_SATURN_MAX_PLAYERS

The maximum number of players in Sega Saturn games.

SEGA_SATURN_N_BUTTONS

The number of Sega Saturn pad buttons.

SG1000_MAX_PLAYERS

The maximum number of players in SG-1000 games.

SG1000_N_BUTTONS

The number of SG-1000 pad buttons.

SUPER_NES_DEFAULT_PLAYERS

The default number of players in Super NES games.

SUPER_NES_MAX_PLAYERS

The maximum number of players in Super NES games.

SUPER_NES_N_BUTTONS

The number of Super NES pad buttons.

VERSION_S

Libhighscore version, encoded as a string, useful for printing and concatenation.

VIRTUAL_BOY_N_BUTTONS

The number of Virtual Boy buttons.

WONDERSWAN_N_BUTTONS

The number of WonderSwan buttons.