mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-18 04:38:46 +00:00
20 lines
369 B
C
20 lines
369 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
#include "utils.h"
|
||
|
|
|
||
|
|
struct ModSearchResult {
|
||
|
|
ssize_t symbol_offset; // < 0 => not found
|
||
|
|
uint32_t mod_id;
|
||
|
|
bytefile *mod_file;
|
||
|
|
};
|
||
|
|
|
||
|
|
void mod_add_search_path(const char *path);
|
||
|
|
|
||
|
|
bytefile *mod_get(uint32_t id);
|
||
|
|
|
||
|
|
int32_t mod_load(const char *name); // < 0 => not found
|
||
|
|
|
||
|
|
struct ModSearchResult mod_search_pub_symbol(const char *name);
|