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

Function FCEU_GetPath

src/file.cpp:498–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496 #endif
497
498std::string FCEU_GetPath(int type)
499{
500 switch (type)
501 {
502 case FCEUMKF_STATE:
503 {
504 if(odirs[FCEUIOD_STATES])
505 return (odirs[FCEUIOD_STATES]);
506 else
507 return BaseDirectory + PSS + "fcs";
508 break;
509 }
510 case FCEUMKF_CHEAT:
511 {
512 if(odirs[FCEUIOD_CHEATS])
513 return (odirs[FCEUIOD_CHEATS]);
514 else
515 return BaseDirectory + PSS + "cheats";
516 break;
517 }
518 case FCEUMKF_MOVIE:
519 {
520 if(odirs[FCEUIOD_MOVIES])
521 return (odirs[FCEUIOD_MOVIES]);
522 else
523 return BaseDirectory + PSS + "movies";
524 break;
525 }
526 case FCEUMKF_MEMW:
527 {
528 if(odirs[FCEUIOD_MEMW])
529 return (odirs[FCEUIOD_MEMW]);
530 else
531 return ""; //adelikat: 03/02/09 - return null so it defaults to last directory used
532 //return BaseDirectory + PSS + "tools";
533 break;
534 }
535 //adelikat: TODO: this no longer exist and could be removed (but that would require changing a lot of other directory arrays
536 case FCEUMKF_BBOT:
537 {
538 if(odirs[FCEUIOD_BBOT])
539 return (odirs[FCEUIOD_BBOT]);
540 else
541 return BaseDirectory + PSS + "tools";
542 break;
543 }
544 case FCEUMKF_ROMS:
545 {
546 if(odirs[FCEUIOD_ROMS])
547 return (odirs[FCEUIOD_ROMS]);
548 else
549 return ""; //adelikat: removing base directory return, should return null it goes to last used directory
550 break;
551 }
552 case FCEUMKF_INPUT:
553 {
554 if(odirs[FCEUIOD_INPUT])
555 return (odirs[FCEUIOD_INPUT]);

Callers 15

FCEUD_SaveStateAsFunction · 0.85
FCEUD_LoadStateFromFunction · 0.85
ConvertFCMFunction · 0.85
LoadNewGameyFunction · 0.85
FCEUD_AviRecordToFunction · 0.85
SaveSnapshotAsFunction · 0.85
SaveMemWatchFunction · 0.85
LoadMemWatchFunction · 0.85
PresetExportFunction · 0.85
PresetImportFunction · 0.85
ShowCheatFileBoxFunction · 0.85
DlgLuaScriptDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected