diff --git a/BrainLILO.cpp b/BrainLILO.cpp index a598313..b8dd098 100644 --- a/BrainLILO.cpp +++ b/BrainLILO.cpp @@ -128,27 +128,8 @@ static void loadDriverIfNeeded(){ wchar_t driverPath[1024]; getThisDllDirectoryPath(driverPath); - wcscat(driverPath, L"\\MyJITDebugger.exe"); TCHAR newDriverPath[128]; - wcscpy(newDriverPath,L"\\Windows\\MyJITDebugger.exe"); - - { - wchar_t buf[1024]; - swprintf(buf, L"BrainLILO: copying \"%ls\" to \"%ls\"", - driverPath, newDriverPath); - OutputDebugString(buf); - } - - if(!CopyFile(driverPath,newDriverPath, FALSE)){ - - - if(GetFileAttributes(newDriverPath)==(DWORD)-1){ - OutputDebugString(L"BrainLILO: failed to copy"); - return; - } - - } getThisDllDirectoryPath(driverPath); wcscat(driverPath, L"\\BrainLILODrv.dll"); diff --git a/Makefile b/Makefile index 406d74a..0dbd703 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ AS=$(PREFIX)/bin/arm-mingw32ce-as NM=$(PREFIX)/bin/arm-mingw32ce-nm WINDRES=$(PREFIX)/bin/arm-mingw32ce-windres -OUTPUT=BrainLILO.dll BrainLILODrv.dll BrainLILO.exe MyJITDebugger.exe +OUTPUT=BrainLILO.dll BrainLILODrv.dll BrainLILO.exe CXXFLAGS= -DEV_PLATFORM_WIN32 -DUNICODE -D_UNICODE -DEV_UNSAFE_SWPRINTF -mwin32 \ -O0 -mcpu=arm926ej-s -D_WIN32_WCE=0x600 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \ @@ -46,6 +46,3 @@ BrainLILO.exe: bootloader.cpp $(CXX) bootloader.cpp -o BrainLILO.exe $(CXXFLAGS) $(STRIP) BrainLILO.exe -MyJITDebugger.exe: dummy.cpp - $(CXX) dummy.cpp -o MyJITDebugger.exe $(CXXFLAGS) - $(STRIP) MyJITDebugger.exe \ No newline at end of file diff --git a/dummy.cpp b/dummy.cpp deleted file mode 100644 index ec0f9ff..0000000 --- a/dummy.cpp +++ /dev/null @@ -1,2 +0,0 @@ -//replacement of MyJITDebugger.exe for stopping force reset on abort. -int main(){return 0;} \ No newline at end of file