mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 10:19:47 -04:00
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
#include <filesystem>
|
|
#include <string>
|
|
#if defined(RECOMP_LAUNCHER)
|
|
#include "recomp_launcher.h"
|
|
#endif
|
|
|
|
namespace PSXRecompV4 {
|
|
|
|
bool mod_runtime_initialize(const std::filesystem::path& root,
|
|
const std::string& game_id,
|
|
uint32_t game_entry_pc,
|
|
const std::filesystem::path& exe_path = {},
|
|
std::string* error = nullptr);
|
|
bool mod_runtime_commit(const std::filesystem::path& disc_path = {},
|
|
std::string* error = nullptr);
|
|
const std::string& mod_runtime_fingerprint();
|
|
const std::filesystem::path& mod_runtime_effective_disc_path();
|
|
|
|
#if defined(RECOMP_LAUNCHER)
|
|
const ::RecompLauncherCModProvider* mod_runtime_launcher_provider();
|
|
#endif
|
|
|
|
} // namespace PSXRecompV4
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Called before a guest dispatch. Applies the complete main-EXE plan
|
|
* transactionally on the first dispatch to the configured entry point. */
|
|
void mod_runtime_on_dispatch(uint32_t target);
|
|
void mod_runtime_patch_disc_sector(uint32_t lba, int raw_sector,
|
|
uint8_t* bytes, uint32_t size);
|
|
void mod_runtime_enable_disc_patches(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|