Skip to content

Commit

Permalink
print version
Browse files Browse the repository at this point in the history
  • Loading branch information
StarGate01 committed Nov 27, 2020
1 parent 8297f38 commit aa6541c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions AUMInjector/user/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,13 @@ void Run()
init_il2cpp();
logger.Log(LOG_CODE::INF, "Type and function memory mapping successful");

// Print game version
String* gameVersionRaw = Application_get_version(NULL);
std::wstring_convert<std::codecvt_utf8<wchar_t>> wideToNarrow;
std::string gameVersion = wideToNarrow.to_bytes(std::wstring((const wchar_t*)
(&((Il2CppString*)gameVersionRaw)->chars), ((Il2CppString*)gameVersionRaw)->length));
logger.Log(LOG_CODE::INF, "Running in game version " + gameVersion);

// Start mumble connection thread
std::thread mumbleReconnectionThread(TryConnectMumble);

Expand Down

0 comments on commit aa6541c

Please sign in to comment.