Filename Checker / Changer searched for Porting Windows Game

Maybe you could search for “fopen”. Hopefully the developer hasn’t scattered them all over the place. You can then lower case the name being passed in:

Code:
fp = fopen(filename, “rb”);

to

Code:
for (i=0;i<strlen(filename);i++)
{
filename[i] = tolower(filename[i]);
}

fp = fopen(filename, “rb”);

You’ll need to do the same with IMG_Load, Mix_LoadWAV, Mix_LoadMUS too.

This might be easier than trying to find every single file and renaming it.------------------------
The Legend of Edgar. A 2D platformer for Windows and Linux. (http://www.parallelrealities.co.uk/p/legend-of-edgar.html)

Thats a good idea. If it’s someone else’s code then maybe someone else has
already started on this or completed it or at least found an easier way to
do it. google :slight_smile: and be patient as you use different combinations of words.
I have found things I never thought I would online. And some of it’s not
porn!On Tue, Feb 14, 2012 at 2:08 AM, riksweeney wrote:

**
Maybe you could search for “fopen”. Hopefully the developer hasn’t
scattered them all over the place. You can then lower case the name being
passed in:

Code:

fp = fopen(filename, “rb”);

to

Code:

for (i=0;i** {
filename[i] = tolower(filename[i]);
}

fp = fopen(filename, “rb”);

You’ll need to do the same with IMG_Load, Mix_LoadWAV, Mix_LoadMUS too.

This might be easier than trying to find every single file and renaming
it.


The Legend of Edgar. A 2D platformer for Windows and Linux.http://www.parallelrealities.co.uk/p/legend-of-edgar.html


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org