MCPcopy Create free account
hub / github.com/TASEmulators/fceux / open

Method open

src/emufile.cpp:64–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void EMUFILE_FILE::open(const char* fname, const char* mode)
65{
66 fp = fopen(fname,mode);
67 if(!fp)
68 {
69#ifdef _MSC_VER
70 std::wstring wfname = mbstowcs((std::string)fname);
71 std::wstring wfmode = mbstowcs((std::string)mode);
72 fp = _wfopen(wfname.c_str(),wfmode.c_str());
73#endif
74 if(!fp)
75 failbit = true;
76 }
77 this->fname = fname;
78 strcpy(this->mode,mode);
79}
80
81
82void EMUFILE_FILE::truncate(size_t length)

Callers 10

CheckFileExistsFunction · 0.45
app.min.jsFile · 0.45
app.min.jsFile · 0.45
jquery.min.jsFile · 0.45
jquery.min.jsFile · 0.45
fFunction · 0.45
jquery.min.jsFile · 0.45
jquery.min.jsFile · 0.45
fFunction · 0.45

Calls 1

mbstowcsFunction · 0.85

Tested by

no test coverage detected