Create shortcut for GTA SA with parameters.
Example:
"C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gta_sa.exe" -game standard
"C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gta_sa.exe" -game modified
Write ASI (DLL Library with changed extension) in C++ or any other programming language.
What it will do:
Depending on -game argument it will set path to .scm file, default path is:
| CODE |
| data\script\main.scm |
Your ASI will change to e.g
| CODE |
| data\script\modified\main.scm |
Add code to load select script.img
For example:
| CODE |
| data\script\modified\script.img |
Or
| CODE |
| data\script\script.img |
It's as easy as:
| CODE |
.text:005B9158 054 push 1 ; notPlayerFile .text:005B915A 058 push eax ; lpFileName .text:005B915B 05C call _openImgFile ; on 0x01567B90 on 1.0 US HOODLUM |
Where _openImgFile is on address 0x00407610
Good luck.