Skip to content

Maybe a Lua function for checking if a memory address exists #542

@ghost

Description

memory.isValid(int addr, string [domain] = null)
mainmemory.isValid(int addr)

Returns true if the address is valid(exists), false otherwise

This would allow users to ignore calling memory read/write functions for an address if it doesn't exist, and not have the emulator spit out messages like "Warning: attempted read of 2097551 outside the memory size of 2097152"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ghost'dOP's username has been lost to timere: Lua API/scriptingRelating to EmuHawk's Lua API (not the Lua Console)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions