| 1996 | } |
| 1997 | |
| 1998 | void CMainFrame::OnFileExportRows() // // // |
| 1999 | { |
| 2000 | #ifdef DISABLE_SAVE // // // |
| 2001 | SetMessageText(IDS_DISABLE_SAVE); |
| 2002 | return; |
| 2003 | #endif |
| 2004 | |
| 2005 | CFamiTrackerDoc &Doc = GetDoc(); |
| 2006 | |
| 2007 | auto initPath = FTEnv.GetSettings()->GetPath(PATH_NSF); // // // |
| 2008 | if (auto path = GetSavePath(Doc.GetFileTitle(), initPath.c_str(), IDS_FILTER_CSV, L"*.csv")) { |
| 2009 | CTextExport Exporter; |
| 2010 | CStringA sResult = Exporter.ExportRows(*path, *Doc.GetModule()); |
| 2011 | if (!sResult.IsEmpty()) |
| 2012 | AfxMessageBox(conv::to_wide(sResult).data(), MB_OK | MB_ICONERROR); |
| 2013 | } |
| 2014 | } |
| 2015 | |
| 2016 | void CMainFrame::OnFileExportJson() { // // // |
| 2017 | #ifdef DISABLE_SAVE // // // |
nothing calls this directly
no test coverage detected