[pandngdc] [commit] r346 - trunk/src

  • From: nicholas.samuel@xxxxxxxxx
  • To: pandngdc@xxxxxxxxxxxxx
  • Date: Sun, 07 Jun 2009 13:00:11 +0930

Author: enetheru
Date: Sun Jun  7 13:00:09 2009
New Revision: 346

Log:
preparation for relocatable data files

Modified:
   trunk/src/util.cpp
   trunk/src/util.h

Modified: trunk/src/util.cpp
==============================================================================
--- trunk/src/util.cpp  Sun May 31 16:11:48 2009        (r345)
+++ trunk/src/util.cpp  Sun Jun  7 13:00:09 2009        (r346)
@@ -1,11 +1,11 @@
 #include "util.h"
 #include "common.h"
 
-SDL_Surface* Image_Load(const char* arg_path)
+SDL_Surface* Image_Load(const string arg_path)
 {
        SDL_Surface *temp, *surface = NULL;
 
-       temp=IMG_Load(arg_path);
+       temp=IMG_Load(arg_path.c_str());
        if(temp != NULL)
        {
                surface = SDL_DisplayFormatAlpha( temp );

Modified: trunk/src/util.h
==============================================================================
--- trunk/src/util.h    Sun May 31 16:11:48 2009        (r345)
+++ trunk/src/util.h    Sun Jun  7 13:00:09 2009        (r346)
@@ -3,7 +3,7 @@
 
 #include "common.h"
 
-SDL_Surface* Image_Load(const char*);
+SDL_Surface* Image_Load(const string);
 
 bool Check_Collision( SDL_Rect A, SDL_Rect B );
 

Other related posts:

  • » [pandngdc] [commit] r346 - trunk/src - nicholas . samuel