diff --git a/README.md b/README.md index b3d83b3..0f22ba9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ModuleLoader is a command line tool to load/unload modules from an RGH/Jtag/Devk - Xbox 360 Neighborhood set up with your RGH/Jtag/Devkit registered as the default console. ## Installation -You can download the latest binary from the [releases](https://github.com/ClementDreptin/ModuleLoader/releases) or clone the repository and open `ModuleLoader.sln` in Visual Studio. +You can download the latest binary from the [releases](https://github.com/ClementDreptin/ModuleLoader/releases) or clone the repository and open `ModuleLoader.sln` in Visual Studio to build from source. ## Documentation - `-h`: Show usage. diff --git a/src/Modules.c b/src/Modules.c index ee835cb..91ff1b0 100644 --- a/src/Modules.c +++ b/src/Modules.c @@ -73,10 +73,8 @@ static HRESULT IsModuleLoaded(const char *modulePath, BOOL *pIsLoaded) // Go through the loaded modules and check if modulePath is in them while ((hr = DmWalkLoadedModules(&pModuleWalker, &loadedModule)) == XBDM_NOERR) - { if (!strncmp(fileName, loadedModule.Name, sizeof(fileName))) *pIsLoaded = TRUE; - } // Error handling if (hr != XBDM_ENDOFLIST) @@ -241,7 +239,7 @@ HRESULT Unload(const char *modulePath) return E_FAIL; } - moduleHandlePatchAddress = (void*)((uint32_t)moduleHandle + 0x40); + moduleHandlePatchAddress = (void *)((uint32_t)moduleHandle + 0x40); // The Xbox 360 is in big-endian so we need to swap the bytes of the patch value before sending it moduleHandlePatchValue = _byteswap_ushort(moduleHandlePatchValue); diff --git a/src/XDRPC.c b/src/XDRPC.c index aac1e55..e464ea1 100644 --- a/src/XDRPC.c +++ b/src/XDRPC.c @@ -260,7 +260,7 @@ HRESULT XdrpcCall(const char *moduleName, uint32_t ordinal, XdrpcArgInfo *args, // Examples of buffer to construct to call different functions // ---------------------------------------------------------------- // -// +// // Call to GetModuleHandleA // // - module: "xam.xex"