MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / SetFilename

Method SetFilename

source/ParallelPrinter.cpp:164–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162#define DEFAULT_PRINT_FILENAME "Printer.txt"
163
164void ParallelPrinterCard::SetFilename(const std::string& prtFilename)
165{
166 if (!prtFilename.empty())
167 {
168 m_szPrintFilename = prtFilename;
169 }
170 else //No registry entry is available
171 {
172 m_szPrintFilename = g_sProgramDir + DEFAULT_PRINT_FILENAME;
173 RegSaveString(REG_CONFIG, REGVALUE_PRINTER_FILENAME, 1, m_szPrintFilename);
174 }
175}
176
177//===========================================================================
178

Callers 1

DlgPrinterOKMethod · 0.80

Calls 1

RegSaveStringFunction · 0.85

Tested by

no test coverage detected