===========================================================================
| 8844 | |
| 8845 | //=========================================================================== |
| 8846 | bool ProfileSave () |
| 8847 | { |
| 8848 | bool bStatus = false; |
| 8849 | |
| 8850 | const std::string sFilename = g_sProgramDir + g_FileNameProfile; // TODO: Allow user to decide? |
| 8851 | |
| 8852 | FILE *hFile = fopen( sFilename.c_str(), "wt" ); |
| 8853 | |
| 8854 | if (hFile) |
| 8855 | { |
| 8856 | const int nLine = g_nProfileLine; |
| 8857 | |
| 8858 | for ( int iLine = 0; iLine < nLine; iLine++ ) |
| 8859 | { |
| 8860 | ProfileLine_t prfline = ProfileLinePeek( iLine ); |
| 8861 | if ( prfline.buf ) |
| 8862 | { |
| 8863 | fputs( prfline.buf, hFile ); |
| 8864 | } |
| 8865 | } |
| 8866 | |
| 8867 | fclose( hFile ); |
| 8868 | bStatus = true; |
| 8869 | } |
| 8870 | return bStatus; |
| 8871 | } |
| 8872 | |
| 8873 | |
| 8874 | static void InitDisasm (void) |
no test coverage detected