Skip to content

Commit

Permalink
twinject: user loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Netdex committed Jun 18, 2018
1 parent 3d548a0 commit 2f81f9a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion twinject/twinject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PROCESS_INFORMATION pi;
const char *ininame = "twinject.ini";

#define DEBUGGER // If you use an external debugger, this line must be commented out. Debugging messages will not be received.
//#define TH10_LOADER // Since I have not implemented the universal loader, you must define the game to load here.
//#define USER_LOADER // Since I have not implemented the universal loader, you must define the game to load here.

int main(const int argc, const char *argv[])
{
Expand Down Expand Up @@ -45,6 +45,11 @@ int main(const int argc, const char *argv[])
char *exepath = "D:\\Programming\\Multi\\th15\\th15.exe";
char *dllpath = "D:\\Programming\\Multi\\twinject\\Release\\twinhook.dll";
char *currentdir = "D:\\Programming\\Multi\\th15";
#elif defined(USER_LOADER)
_putenv("th=th08");
char *exepath = "D:\\Games\\Touhou Project\\08.0 ~ Imperishable Night\\th08.exe";
char *dllpath = "D:\\Programming\\Multi\\twinject\\Release\\twinhook.dll";
char *currentdir = "D:\\Games\\Touhou Project\\08.0 ~ Imperishable Night";
#else
// The following code loads configuration data from an external file
configuration config;
Expand Down

0 comments on commit 2f81f9a

Please sign in to comment.