Skip to content

Commit

Permalink
Fixed some clang-format issues + updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementDreptin committed Oct 21, 2022
1 parent 6eb3016 commit e71c409
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 1 addition & 3 deletions src/Modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/XDRPC.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e71c409

Please sign in to comment.