From cb17bd3bced7bb86cb3175e764c5e65dd468e457 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Tue, 5 Feb 2013 22:45:19 -0500 Subject: [PATCH] CurApName --- loader.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/loader.cpp b/loader.cpp index aa4e786..cf2bc9e 100644 --- a/loader.cpp +++ b/loader.cpp @@ -201,8 +201,7 @@ uint32_t load(const char *file) void InitializeMPW(int argc, char **argv) { - // 0x0910 is a pointer to a 32-char (max) pstring - // with the program name. + // 0x0910 CurApName { char str32[32]; int l = strlen(argv[0]); @@ -211,9 +210,7 @@ void InitializeMPW(int argc, char **argv) memcpy(str32 + 1, argv[0], l); while (l < 32) str32[l++] = 0; - uint32_t address = EmulatedNewPtr(32); - memcpy(memory + address, str32, 32); - WriteLong(memory, 0x0910, address); + memcpy(memory + 0x910, str32, 32); }