<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Problem:<br>
<br>
saveConfig<br>
"write info about the current configuration to a file."<br>
<br>
(UIManager default request: 'Save VMMaker configuration...'
initialAnswer: self configFileName)<br>
ifNotNilDo: [:file | | path |<br>
('*.config' match: file)<br>
ifFalse: [<font color="#ff0000"><big>Cannot store
into -></big></font>file := file , '.config'].<br>
"If path is not valid, this is probably because we are
running the image on a different<br>
platform. Assume this is the case, and change the path
to current default if it appears<br>
to be invalid."<br>
path := file copyUpToLast: FileDirectory
pathNameDelimiter.<br>
(FileDirectory default directoryExists: path)<br>
ifFalse: [ file := file copyReplaceAll: path with:
FileDirectory default pathName].<br>
vmMaker saveConfigurationTo: file.<br>
configFileName := file]<br>
</body>
</html>