Rename to io.basemap

This commit is contained in:
pancake 2022-08-18 10:30:42 +02:00
parent 52a22ab995
commit e01660dc52
2 changed files with 3 additions and 1 deletions

View File

@ -4195,6 +4195,7 @@ R_API int r_core_config_init(RCore *core) {
SETCB ("io.pcache.write", "false", &cb_iopcachewrite, "enable write-cache");
SETCB ("io.pcache.read", "false", &cb_iopcacheread, "enable read-cache");
SETCB ("io.ff", "true", &cb_ioff, "fill invalid buffers with 0xff instead of returning error");
SETBPREF ("io.basemap", "true", "create a map at base address 0 when opening a file");
SETICB ("io.mask", 0, &cb_iomask, "mask addresses before resolving as maps");
SETBPREF ("io.exec", "true", "see !!r2 -h~-x");
SETICB ("io.0xff", 0xff, &cb_io_oxff, "use this value instead of 0xff to fill unallocated areas");

View File

@ -692,7 +692,8 @@ R_API bool r_core_bin_load(RCore *r, const char *filenameuri, ut64 baddr) {
}
}
} else {
if (desc) {
bool basemap = r_config_get_b (r->config, "io.basemap");
if (desc && basemap) {
r_io_map_add (r->io, desc->fd, desc->perm, 0, laddr, r_io_desc_size (desc));
}
if (binfile) {