replaced the following code:
std::ifstream File(dllPath, std::ios::binary | std::ios::ate);
with
std::ifstream File(rawData, std::ios::binary);
Result: got an error at if (File.fail()) "Opening the file failed:"
So I changed it from std::ifstream to std::istringstream, also had to change it to:
auto FileSize = sizeof(rawData);.
This almost works but I get an error in Injector.cpp saying "Invalid platform" now.
So now I've reached a point where I don't know what to do next. Would be great if you could help me out as I'm almost finished but cant get it fully working.
Hey, I wonder if it would be possible using your project to manual map from source rather than "ifstreaming" the dll from disk.
I tried it the following way but had some issues:
char rawData[2785280] = { 0x4D, 0x5A, 0x90, 0x00, 0x03, 0x00, 0x00, 0x00, ... };
std::ifstream File(dllPath, std::ios::binary | std::ios::ate);
withstd::ifstream File(rawData, std::ios::binary);
Result: got an error at
if (File.fail())
"Opening the file failed:"So I changed it from
std::ifstream
tostd::istringstream
, also had to change it to:auto FileSize = sizeof(rawData);
.This almost works but I get an error in Injector.cpp saying "Invalid platform" now.
So now I've reached a point where I don't know what to do next. Would be great if you could help me out as I'm almost finished but cant get it fully working.
Thank you very much.