fs2port/port/include/chunk5Loader.h

25 lines
866 B
C

// chunk5's scenery-file loading glue (LoadDispatcherPointer,
// SceneryHeaderLoadIfMiss, LoadSceneryFile0..4, SceneryHeaderRunSection,
// SceneryCopyLoadedSection, LogSceneryDisk).
#ifndef CHUNK5_LOADER_H
#define CHUNK5_LOADER_H
#include <stdbool.h>
#include <stdint.h>
// Run one of the 6-byte runtime-patchable slots ($A7E8..$A7FF) as its
// current RAM bytes say (RTS, or JSR/JMP to a LoadSceneryFile entry).
void chunk5CallPatchSlot(uint16_t slot);
void chunk5LoadDispatcherPointer(void);
void chunk5LoadSceneryFile0(void);
void chunk5LoadSceneryFile1(void);
void chunk5LoadSceneryFile2(void);
void chunk5LoadSceneryFile3(void);
void chunk5LoadSceneryFile4(void);
void chunk5LogSceneryDisk(void);
// SceneryCopyLoadedSection (LA6F9): false = carry clear (success).
bool chunk5SceneryCopyLoadedSection(void);
void chunk5SceneryHeaderLoadIfMiss(void);
#endif