mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 12:01:10 +00:00
Fix warning g_strdown is deprecated
This commit is contained in:
parent
b110546eee
commit
6acfd910ae
1 changed files with 3 additions and 3 deletions
|
@ -145,7 +145,7 @@ static void vfsInitPakFile( const char *filename ){
|
||||||
g_pakFiles = g_slist_append( g_pakFiles, file );
|
g_pakFiles = g_slist_append( g_pakFiles, file );
|
||||||
|
|
||||||
vfsFixDOSName( filename_inzip );
|
vfsFixDOSName( filename_inzip );
|
||||||
g_strdown( filename_inzip );
|
g_ascii_strdown( filename_inzip, -1 );//-1 null terminated string
|
||||||
|
|
||||||
file->name = strdup( filename_inzip );
|
file->name = strdup( filename_inzip );
|
||||||
file->size = file_info.uncompressed_size;
|
file->size = file_info.uncompressed_size;
|
||||||
|
@ -236,7 +236,7 @@ int vfsGetFileCount( const char *filename ){
|
||||||
|
|
||||||
strcpy( fixed, filename );
|
strcpy( fixed, filename );
|
||||||
vfsFixDOSName( fixed );
|
vfsFixDOSName( fixed );
|
||||||
g_strdown( fixed );
|
g_ascii_strdown( fixed, -1 );
|
||||||
|
|
||||||
for ( lst = g_pakFiles; lst != NULL; lst = g_slist_next( lst ) )
|
for ( lst = g_pakFiles; lst != NULL; lst = g_slist_next( lst ) )
|
||||||
{
|
{
|
||||||
|
@ -296,7 +296,7 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){
|
||||||
*bufferptr = NULL;
|
*bufferptr = NULL;
|
||||||
strcpy( fixed, filename );
|
strcpy( fixed, filename );
|
||||||
vfsFixDOSName( fixed );
|
vfsFixDOSName( fixed );
|
||||||
g_strdown( fixed );
|
g_ascii_strdown( fixed, -1 );
|
||||||
|
|
||||||
for ( i = 0; i < g_numDirs; i++ )
|
for ( i = 0; i < g_numDirs; i++ )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue