mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-24 12:06:45 +00:00
Changes: you can now see each file type in the open file dialog, but an error is raised, if opening an unsupported file type
This commit is contained in:
@@ -73,6 +73,17 @@ OTM_File::~OTM_File(void)
|
||||
}
|
||||
|
||||
|
||||
bool OTM_File::FileSupported(void)
|
||||
{
|
||||
wxString file_type = FileName.AfterLast( '.');
|
||||
if (file_type == L"zip") return true;
|
||||
else if (file_type == L"tpf") return true;
|
||||
else if (file_type == L"dds") return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
int OTM_File::GetComment( wxString &tool_tip)
|
||||
{
|
||||
wxString file_type = FileName.AfterLast( '.');
|
||||
|
||||
Reference in New Issue
Block a user