Ignore:
Timestamp:
04/22/15 04:14:59 (9 years ago)
Author:
sz
Message:

Renamed some classes and functions to make their purpose more obvious:

All MessageHandlers? must now be given the explicit "Enable" argument if you want them to automatically become active. This makes side effects clearly visible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/nonstd_stdio.cpp

    r297 r372  
    241241
    242242#ifdef __ANDROID__
    243 #include "framsg.h"
     243#include "hmessage.h"
    244244#include "nonstd.h"
    245245#include "nonstd_stl.h"
     
    247247{
    248248        string respath=getAppResourcesDir();
    249         //printFM("Opening '%s', mode='%s'",path,mode);
    250         //printFM("getAppResourcesDir()='%s'",respath.c_str());
     249        //printH("Opening '%s', mode='%s'",path,mode);
     250        //printH("getAppResourcesDir()='%s'",respath.c_str());
    251251        NvFile *rfile=NULL; //can only read
    252252        FILE *rwfile=NULL;
     
    255255                path+=respath.length(); //strip the prefix, we need a relative path in assets
    256256                if (strstr(mode,"w"))
    257                         printFM("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);
    258258                rfile=NvFOpen(path); //"mode" not supported! can only read
    259                 //printFM("Opened RES file as %p",rfile);
     259                //printH("Opened RES file as %p",rfile);
    260260                if (rfile==NULL) return NULL;
    261261        } else //a "normal" access (HOME)
    262262        {
    263263                rwfile=fopen(path,mode);
    264                 //printFM("Opened HOME file as %p",rwfile);
     264                //printH("Opened HOME file as %p",rwfile);
    265265                if (rwfile==NULL) return NULL;
    266266        }
Note: See TracChangeset for help on using the changeset viewer.