diff options
-rw-r--r-- | emulator/opengl/host/tools/emugen/ApiGen.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/emulator/opengl/host/tools/emugen/ApiGen.cpp b/emulator/opengl/host/tools/emugen/ApiGen.cpp index a92ad39..78c15e4 100644 --- a/emulator/opengl/host/tools/emugen/ApiGen.cpp +++ b/emulator/opengl/host/tools/emugen/ApiGen.cpp @@ -854,19 +854,14 @@ int ApiGen::genDecoderImpl(const std::string &filename) } if (!v->isPointer()) { - if (pass == PASS_FunctionCall) { + if (pass == PASS_FunctionCall || + pass == PASS_DebugPrint) { fprintf(fp, "Unpack<%s,uint%d_t>(ptr + %s)", v->type()->name().c_str(), v->type()->bytes() * 8, varoffset.c_str()); } - if (pass == PASS_DebugPrint) { - fprintf(fp, - "*(uint%d_t *)(ptr + %s)", - v->type()->bytes() * 8, - varoffset.c_str()); - } varoffset += " + " + toString(v->type()->bytes()); continue; } |