PNG repair tools?

If it's not ZDoom, it goes here.
dpJudas
Posts: 3177
Joined: Sat May 28, 2016 1:01 pm

Re: PNG repair tools?

Post by dpJudas »

Edward-san wrote:no checks for fopen possibly returning nullptr? Cat exterminator! :cry:
If my code had included all the error handling it wouldn't have been short. ;) Plus I'd never have used fopen in a serious project because it has no proper unicode support and needs to be wrapped by a RAII class.

PS. You missed the two other cat-killing features. :D
User avatar
Rachael
Posts: 13978
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: PNG repair tools?

Post by Rachael »

Poor cats. :( Think of the cats!
cattycat.jpg
You do not have the required permissions to view the files attached to this post.
dpJudas
Posts: 3177
Joined: Sat May 28, 2016 1:01 pm

Re: PNG repair tools?

Post by dpJudas »

No worries, it takes 9 cat-killing features before it will actually kill a cat. :)
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: PNG repair tools?

Post by Gez »

I lost too many cats to find this joke funny.
User avatar
Rachael
Posts: 13978
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: PNG repair tools?

Post by Rachael »

Gez wrote:I lost too many cats to find this joke funny.
Sorry. :( I'll stop quipping about it.
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm

Re: PNG repair tools?

Post by ibm5155 »

dpJudas wrote: Plus I'd never have used fopen in a serious project because it has no proper unicode support and needs to be wrapped by a RAII class.
I beat one cookie your fopen file is better than mine :lol:

Code: Select all

            FileOpenPicker openPicker = new FileOpenPicker();
            openPicker.ViewMode = PickerViewMode.Thumbnail;
            openPicker.SuggestedStartLocation = PickerLocationId.Downloads;
            openPicker.FileTypeFilter.Add(".csv");
            StorageFile file = await openPicker.PickSingleFileAsync();
            if (file != null)
            {
                var read = await FileIO.ReadTextAsync(file);
                string TextBuffer = read;
           }
SO MANY lines for just opening a FREAKIN FILE!!!! and I dont even know if there's a need for something like fclose D:
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: PNG repair tools?

Post by Graf Zahl »

dpJudas wrote:
Edward-san wrote:no checks for fopen possibly returning nullptr? Cat exterminator! :cry:
If my code had included all the error handling it wouldn't have been short. ;) Plus I'd never have used fopen in a serious project because it has no proper unicode support and needs to be wrapped by a RAII class.
What alternative is there when targeting multiple platforms? For this reason I actually have written a wrapper which on Unix-likes wraps fopen and on Windows wraps _wfopen. I don't know what these C standards guys had been smoking when they decided something as essential as opening a file does not need a proper system independent implementation for Unicode.

Return to “Off-Topic”