Changeset 375 for cpp/common/nonstd_stdio.cpp
- Timestamp:
- 04/26/15 00:59:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd_stdio.cpp
r374 r375 242 242 243 243 #ifdef __ANDROID__ 244 #include " hmessage.h"244 #include "log.h" 245 245 #include "nonstd.h" 246 246 #include "nonstd_stl.h" … … 248 248 { 249 249 string respath=getAppResourcesDir(); 250 // printH("Opening '%s', mode='%s'",path,mode);251 // printH("getAppResourcesDir()='%s'",respath.c_str());250 //log_printf("Opening '%s', mode='%s'",path,mode); 251 //log_printf("getAppResourcesDir()='%s'",respath.c_str()); 252 252 NvFile *rfile=NULL; //can only read 253 253 FILE *rwfile=NULL; … … 256 256 path+=respath.length(); //strip the prefix, we need a relative path in assets 257 257 if (strstr(mode,"w")) 258 printH("Warning: attempt to open a read-only resource '%s' in writable mode '%s'",path,mode);258 log_printf("Warning: attempt to open a read-only resource '%s' in writable mode '%s'",path,mode); 259 259 rfile=NvFOpen(path); //"mode" not supported! can only read 260 // printH("Opened RES file as %p",rfile);260 //log_printf("Opened RES file as %p",rfile); 261 261 if (rfile==NULL) return NULL; 262 262 } else //a "normal" access (HOME) 263 263 { 264 264 rwfile=fopen(path,mode); 265 // printH("Opened HOME file as %p",rwfile);265 //log_printf("Opened HOME file as %p",rwfile); 266 266 if (rwfile==NULL) return NULL; 267 267 }
Note: See TracChangeset
for help on using the changeset viewer.