mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-22 18:39:31 +00:00
The unzip function is still buggy!!
BugFix: - removed CheckBoxVSizer, it was unused, but object were detached - correct estimation of the number of hash entries in OTM_Sender::SendTextures Improvements: - added a comment support for tpf and zip files
This commit is contained in:
+3
-8
@@ -239,11 +239,10 @@ void OTM_Frame::OnAddGame( wxCommandEvent &event)
|
||||
void OTM_Frame::OnDeleteGame( wxCommandEvent &event)
|
||||
{
|
||||
OTM_Client *client = ((OTM_Event&)event).GetClient();
|
||||
int index = -1;
|
||||
for (int i=0; i<NumberOfGames; i++) if (Clients[i]==client)
|
||||
{
|
||||
Notebook->DeletePage(i);
|
||||
Clients[i]->Delete();
|
||||
Clients[i]->Wait();
|
||||
delete Clients[i];
|
||||
NumberOfGames--;
|
||||
for (int j=i; j<NumberOfGames; j++) Clients[j] = Clients[j+1];
|
||||
@@ -377,12 +376,8 @@ void OTM_Frame::OnMenuAddGame(wxCommandEvent& WXUNUSED(event))
|
||||
file_name = file_name.AfterLast('\\');
|
||||
|
||||
wxArrayString array;
|
||||
if (GetHookedGames( array))
|
||||
{
|
||||
wxMessageBox( LastError, "ERROR", wxOK|wxICON_ERROR);
|
||||
LastError.Empty();
|
||||
return;
|
||||
}
|
||||
if (GetHookedGames( array)) array.Empty();
|
||||
|
||||
int num = array.GetCount();
|
||||
for (int i=0; i<num; i++) if (array[i] == file_name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user