X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Flightrec%2Finternals.c;fp=libpcsxcore%2Flightrec%2Finternals.c;h=e37d5905f0f21fc19c869794502780d7de1000c7;hb=7cbd2996964abf782dd4bdfe9b582fd7c8af36b2;hp=0000000000000000000000000000000000000000;hpb=373bac9fe549511c0d2b156e6533dc81dbca1eec;p=pcsx_rearmed.git diff --git a/libpcsxcore/lightrec/internals.c b/libpcsxcore/lightrec/internals.c new file mode 100644 index 00000000..e37d5905 --- /dev/null +++ b/libpcsxcore/lightrec/internals.c @@ -0,0 +1,16 @@ +// internals: stuff lightrec's public API doesn't provide +#include +#include "lightrec-private.h" +#include "blockcache.h" +#include "internals.h" + +void lightrec_plugin_clear_block_caches(struct lightrec_state *state) +{ + if (state == NULL) + return; + + lightrec_invalidate_all(state); + lightrec_free_block_cache(state->block_cache); + state->block_cache = lightrec_blockcache_init(state); + assert(state->block_cache); +}