Master Summoner
- Joined
- Nov 9, 2009
- Messages
- 579
- Reaction score
- 238
@torstmn: i know its messy and not complying to any standards but you need to know this was a 5 minute copy&aste project, copied from my launcher
regarding the snippet you posted .. when reading the bytes of a file bytes that are below (hex)10 will be written without a leading 0. inside the patch maker i append the leading 0 to it but when writing those bytes to file again with leading 0 it'll throw an exception (cant remember which one) so im removing the leading 0 again inside the manual patcher ... yes i know it sounds silly but i dont like it when byte strings contain bytes without leading 0 if you want to you can put that part into a function called AppendZero/RemoveZero or sth like that .. as i said already i copied this code from my launcher and didnt put much effort into it, just wanted to release something thats using my PK2Writer.dll ^^
@karemsame: yeah i know zszc patcher been using it for myself some time ago it works fine most of the times but sometimes it doesnt work for every on .. i had it several times that the patch had an error in step 1 or step 2 of loading the gfx file manager dll on some players' computers but on others it worked just fine .. thats why ive written something similar inside my launcher
regarding the snippet you posted .. when reading the bytes of a file bytes that are below (hex)10 will be written without a leading 0. inside the patch maker i append the leading 0 to it but when writing those bytes to file again with leading 0 it'll throw an exception (cant remember which one) so im removing the leading 0 again inside the manual patcher ... yes i know it sounds silly but i dont like it when byte strings contain bytes without leading 0 if you want to you can put that part into a function called AppendZero/RemoveZero or sth like that .. as i said already i copied this code from my launcher and didnt put much effort into it, just wanted to release something thats using my PK2Writer.dll ^^
@karemsame: yeah i know zszc patcher been using it for myself some time ago it works fine most of the times but sometimes it doesnt work for every on .. i had it several times that the patch had an error in step 1 or step 2 of loading the gfx file manager dll on some players' computers but on others it worked just fine .. thats why ive written something similar inside my launcher