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

Function FCEU_MakePath

src/file.cpp:586–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584}
585
586std::string FCEU_MakePath(int type, const char* filebase)
587{
588 char ret[FILENAME_MAX];
589
590 switch(type)
591 {
592 case FCEUMKF_MOVIE:
593 if(odirs[FCEUIOD_MOVIES])
594 return (string)odirs[FCEUIOD_MOVIES] + PSS + filebase;
595 else
596 return BaseDirectory + PSS + "movies" + PSS + filebase;
597 break;
598 case FCEUMKF_STATE:
599 if(odirs[FCEUIOD_STATES])
600 return (string)odirs[FCEUIOD_STATES] + PSS + filebase;
601 else
602 return BaseDirectory + PSS + "fcs" + PSS + filebase;
603 break;
604 }
605 return ret;
606}
607
608std::string FCEU_MakeFName(int type, int id1, const char *cd1)
609{

Callers 3

GetReplayPathFunction · 0.85
GetRecordPathFunction · 0.85
GetSavePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected