From 103b0270d86b6b79b84bd3b920d4d4f85b2389ef Mon Sep 17 00:00:00 2001 From: skidau Date: Mon, 18 May 2015 00:26:21 +0000 Subject: [PATCH] Fixed auto-patch extension setting. Patch by Mook. It appears that SetExt() doesn't require a leading period in the extension. This makes auto-loading of ups patches work (at least, for the one I tried). Updated the comment too, for grepablility. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1436 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/wx/panel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wx/panel.cpp b/src/wx/panel.cpp index d057977e..c5b98468 100644 --- a/src/wx/panel.cpp +++ b/src/wx/panel.cpp @@ -115,16 +115,16 @@ void GameArea::LoadGame(const wxString &name) if (loadpatch) { // SetExt may strip something off by accident, so append to text instead - // pfn.SetExt(wxT(".ips") + // pfn.SetExt(wxT("ips") pfn.SetFullName(pfn.GetFullName() + wxT(".ips")); if (!pfn.IsFileReadable()) { - pfn.SetExt(wxT(".ups")); + pfn.SetExt(wxT("ups")); if (!pfn.IsFileReadable()) { - pfn.SetExt(wxT(".ppf")); + pfn.SetExt(wxT("ppf")); loadpatch = pfn.IsFileReadable(); } }