User Details
- User Since
- Jan 29 2018, 2:39 PM (324 w, 4 d)
Aug 20 2019
Aug 19 2019
Thanks for looking into this and giving such detailed info!!
Aug 4 2019
I'm not sure it works on every platform, maybe @Itms would know.
It won't since clip.exe is a windows tool...
But on the other hand the current solution in the wiki isn't working at all on windows with TortoiseSVN installed. So just adding this shouldn't be that bad :)
Upload patch again with new master revision and full file context.
Aug 1 2019
Ahh! Thanks a lot. This did the trick - here is the full patch with context.
Maybe your cmd command could be added to the wiki page so others don't run in this trouble too?
Jul 31 2019
Jul 16 2019
Feb 22 2018
Regarding the use of GetLastError() for a more detailed error info there are several issues that should be considered first:
Moved the include statement. Using the win fuction GetLastError() isn't that easy in this context, see code comment
Feb 11 2018
Fixed typo
Changed comments and macro name. Works on Windows, logs error correctly.
In many cases pyrogenesis is still crashing afterwards because other components try to read non-existent files. Therefore passing the error to the caller isn't enough and we should keep the LOGERROR line there to preserve the crash information.
Feb 10 2018
Yes, I know about these preprocessor constructs. But I think this will not work because ifndef can't be used for macros (since they contain a #define statement). I did some basic test but couldn't get it working.
Feb 9 2018
Unfortunately I couldn't fully test this revision since I stumbled across a quite strange problem:
(it stopped at the breakpoint and I klicked on "step into" once)
Changed the error return value.
Unfortunately I had to include FileIo.h to be able to use PSRETURN_File_WriteFailed. Couldn't define it in Xeromyces.h since FileIo.h and Xeromyces.h are included simultaneously in some other files which would then lead to a redefinition of ERROR_GROUP(File);.
Feb 8 2018
Feb 7 2018
Complete rework. Had to introduce a new macro to convert the "+1" error to a "-1" error.
Feb 6 2018
Ok, now this makes sense, thanks for the links. And yes, my diff is absolutely useless because I just ignore the error now...
Jan 31 2018
Thanks for pointing me to status.cpp - now i've realized the status is just a 64 bit signed int. Interestingly enough the status isn't negative but plus 1 most of the time (and sometimes - quite rarely - it is actually zero). I've used debug_prtinf with %I64d for output what should be working?!
To be more specific: The status of SetFilePointerEx and SetEndOfFile are 1 most of the times, but while WARN_IF_FALSE(SetFilePointerEx( don't cause a crash WARN_IF_FALSE(SetEndOfFile( does. Replacing this line with the diff or just entirely removing the Macro (which doesn't sound that good) avoids crashing and the game is working then.
Diff update: Using WARN_IF_ERR instead of RETURN_STATUS_IF_ERR as suggested by elexis
Jan 30 2018
Yes, it seems so. But something is going wrong with the the "old" error handling for the handle, because the process dies spontaneously somewhere in the WARN_IF_FALSE-makro - when the anti-virus scanner is active.
With the macro RETURN_STATUS_IF_ERR however it is fully working...