nirai: we can delete this too?

This commit is contained in:
Master Jumblespeed 2015-08-23 21:06:09 -04:00
parent 824fdc2867
commit bde13775cb

View file

@ -136,6 +136,8 @@ int niraicall_onLoadGameData()
memset(&fzns[num_modules], 0, sizeof(_frozen));
PyImport_FrozenModules = fzns;
delete[] &fzns;
// libpandadna
init_libpandadna();
initlibpandadna();
@ -147,7 +149,7 @@ extern "C" PyObject* niraicall_deobfuscate(char* code, Py_ssize_t size)
{
std::string codestr(code, size);
char key[12] = {'B', 'A', 'Q', 'J', 'R', 'P', 'Z', 'P', 'A', 'H', 'U', 'T'};
const char key[12] = {'B', 'A', 'Q', 'J', 'R', 'P', 'Z', 'P', 'A', 'H', 'U', 'T'};
std::string output = codestr;
for (int i = 0; i < codestr.size(); i++)