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