empty input is empty realpath.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3290
This commit is contained in:
parent
c90ebb3028
commit
9d16fb980e
1 changed files with 5 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: setup.cpp,v 1.52 2009-02-01 14:19:20 qbix79 Exp $ */
|
||||
/* $Id: setup.cpp,v 1.53 2009-02-01 15:52:25 qbix79 Exp $ */
|
||||
|
||||
#include "dosbox.h"
|
||||
#include "cross.h"
|
||||
|
@ -271,6 +271,10 @@ void Prop_path::SetValue(std::string const& input){
|
|||
Value val(input,Value::V_STRING);
|
||||
SetVal(val,false,true);
|
||||
|
||||
if(input.empty()) {
|
||||
realpath = "";
|
||||
return;
|
||||
}
|
||||
std::string workcopy(input);
|
||||
Cross::ResolveHomedir(workcopy); //Parse ~ and friends
|
||||
//Prepend config directory in it exists. Check for absolute paths later
|
||||
|
|
Loading…
Add table
Reference in a new issue