notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #835 from pcercuei/misc-fixes
[pcsx_rearmed.git]
/
deps
/
lightrec
/
blockcache.c
diff --git
a/deps/lightrec/blockcache.c
b/deps/lightrec/blockcache.c
index
d72d64e
..
ecfe80e
100644
(file)
--- a/
deps/lightrec/blockcache.c
+++ b/
deps/lightrec/blockcache.c
@@
-159,9
+159,14
@@
void lightrec_remove_outdated_blocks(struct blockcache *cache,
lightrec_free_blocks(cache, except, false);
}
lightrec_free_blocks(cache, except, false);
}
-void lightrec_free_
block_cache
(struct blockcache *cache)
+void lightrec_free_
all_blocks
(struct blockcache *cache)
{
lightrec_free_blocks(cache, NULL, true);
{
lightrec_free_blocks(cache, NULL, true);
+}
+
+void lightrec_free_block_cache(struct blockcache *cache)
+{
+ lightrec_free_all_blocks(cache);
lightrec_free(cache->state, MEM_FOR_LIGHTREC, sizeof(*cache), cache);
}
lightrec_free(cache->state, MEM_FOR_LIGHTREC, sizeof(*cache), cache);
}