https://github.com/aemony/skip-asm2launcher
Custom launcher to skip the bundled launcher in The Amazing Spider-Man 2 on PC.
https://github.com/aemony/skip-asm2launcher
game game-folder launcher registry spider-man
Last synced: 6 months ago
JSON representation
Custom launcher to skip the bundled launcher in The Amazing Spider-Man 2 on PC.
- Host: GitHub
- URL: https://github.com/aemony/skip-asm2launcher
- Owner: Aemony
- License: mit
- Created: 2017-07-23T01:35:23.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-19T18:55:37.000Z (about 8 years ago)
- Last Synced: 2025-02-09T16:16:36.179Z (8 months ago)
- Topics: game, game-folder, launcher, registry, spider-man
- Size: 111 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Skip-ASM2Launcher
Custom launcher to skip the bundled C# launcher in The Amazing Spider-Man 2 on PC.## Introduction
The default launcher is coded in older C# and have a tendency to break on all kinds of computers.
Hence, this workaround.* ASM2Launcher.exe is a really simple C++ application that only does one thing and one thing only: launches Game.exe.
* The real ASM2Launcher.exe takes care of all kinds of things, such as validating settings according to the reported VRAM of the primary GPU (can cause issues with hybrid platforms such as Nvidia Optimus) as well as allows keybinds to be reconfigured.This custom launcher can be used to skip the launcher completely, and hopefully also manages to make the game playable on computers that fail to start the original launcher properly. Please be aware that settings must instead be manually changed through the registry and/or input.dat. Refer to the various subfolders under Settings for how to do so.
## Installation
1. Navigate to the game folder.
2. Rename/remove the original ASM2Launcher.exe
3. Move the included custom launcher from here to the game folder.
4. Use the various registry files in the Settings subfolder in this archive to tweak the settings of the game.## Source code
```
// ASM2Launcher.cpp : Defines the entry point for the console application.
//#include "stdafx.h"
#includeVOID startup(LPCTSTR lpApplicationName)
{
// https://stackoverflow.com/questions/15435994/how-do-i-open-an-exe-from-another-c-exe/15440094
// additional information
STARTUPINFO si;
PROCESS_INFORMATION pi;// set the size of the structures
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));// start the program up
CreateProcess(
lpApplicationName, // the path
NULL, // Command line
NULL, // Process handle not inheritable
NULL, // Thread handle not inheritable
FALSE, // Set handle inheritance to FALSE
0, // No creation flags
NULL, // Use parent's environment block
NULL, // Use parent's starting directory
&si, // Pointer to STARTUPINFO structure
&pi // Pointer to PROCESS_INFORMATION structure (removed extra parentheses)
);
// Close process and thread handles.
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
}int main()
{
LPCTSTR ASM2Game = L"Game.exe";
startup(ASM2Game);
return 0;
}
```## License
https://github.com/Idearum/Skip-ASM2Launcher/blob/master/LICENSE