Skip to content

Commit

Permalink
Debugger: Lua - Fixed incorrect names of memType values for cpu memor…
Browse files Browse the repository at this point in the history
…y (nes -> nesMemory, etc.)
  • Loading branch information
SourMesen committed Oct 6, 2023
1 parent 01d95d6 commit 1678a5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Core/Debugger/LuaApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ int LuaApi::GetLibrary(lua_State *lua)
string name = string(entry.second);
name[0] = ::tolower(name[0]);
if(DebugUtilities::IsRelativeMemory(entry.first)) {
name = name.substr(0, name.size() - 6);
string debugName = name + "Debug";
string debugName = name.substr(0, name.size() - 6) + "Debug";
LuaPushIntValue(lua, debugName, (int)entry.first | 0x100);
}
LuaPushIntValue(lua, name, (int)entry.first);
Expand Down

0 comments on commit 1678a5f

Please sign in to comment.