added a flag so a file must exist to open it
This commit is contained in:
parent
3e6e30cc12
commit
a5346b6ac3
@ -157,7 +157,7 @@ void fileOpen()
|
||||
ofn.nMaxFile = _MAX_FNAME;
|
||||
ofn.lpstrDefExt = "rocket";
|
||||
ofn.lpstrFilter = "ROCKET File (*.rocket)\0*.rocket\0All Files (*.*)\0*.*\0\0";
|
||||
ofn.Flags = OFN_SHOWHELP;
|
||||
ofn.Flags = OFN_SHOWHELP | OFN_FILEMUSTEXIST;
|
||||
if (GetOpenFileName(&ofn))
|
||||
{
|
||||
fileNew();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user