| 584 | } |
| 585 | |
| 586 | std::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 | |
| 608 | std::string FCEU_MakeFName(int type, int id1, const char *cd1) |
| 609 | { |
no outgoing calls
no test coverage detected