Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
82
GameTools/WORLDCREATOR/MulFileDialog.cpp
Normal file
82
GameTools/WORLDCREATOR/MulFileDialog.cpp
Normal file
@@ -0,0 +1,82 @@
|
||||
// MulFileDialog.cpp: implementation of the CMulFileDialog class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "WorldCreator.h"
|
||||
#include "MulFileDialog.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[]=__FILE__;
|
||||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Construction/Destruction
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
CMulFileDialog::CMulFileDialog()
|
||||
{
|
||||
m_CurFileName=0;
|
||||
}
|
||||
|
||||
CMulFileDialog::~CMulFileDialog()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CMulFileDialog::DoModal()
|
||||
{
|
||||
strcpy(m_FileNameBuffer,"");
|
||||
OPENFILENAME ofn;
|
||||
ofn.lStructSize=sizeof(OPENFILENAME);
|
||||
ofn.hwndOwner=NULL;
|
||||
ofn.hInstance=NULL;
|
||||
ofn.lpstrFilter=m_strFilter;
|
||||
ofn.lpstrCustomFilter=NULL;
|
||||
ofn.nMaxCustFilter=0;
|
||||
ofn.nFilterIndex=200;
|
||||
ofn.lpstrFile=m_FileNameBuffer;
|
||||
ofn.nMaxFile=65536;
|
||||
ofn.lpstrFileTitle=NULL;
|
||||
ofn.nMaxFileTitle=100+3;
|
||||
ofn.lpstrInitialDir=NULL;
|
||||
ofn.lpstrTitle=NULL;
|
||||
ofn.Flags=0;
|
||||
ofn.nFileOffset=0;
|
||||
ofn.nFileExtension=0;
|
||||
ofn.lpstrDefExt="BMP";
|
||||
ofn.lCustData=0L;
|
||||
ofn.lpfnHook=NULL;
|
||||
ofn.lpTemplateName=NULL;
|
||||
ofn.Flags=OFN_HIDEREADONLY|OFN_CREATEPROMPT|OFN_ALLOWMULTISELECT|OFN_EXPLORER;
|
||||
GetOpenFileName(&ofn);
|
||||
|
||||
int FirstChar=0;
|
||||
m_CurFileName=0;
|
||||
for(int i=0;i<MAX_FILESELBUFFER;i++)
|
||||
{
|
||||
if(m_FileNameBuffer[i]==0)
|
||||
{
|
||||
if(FirstChar==0)
|
||||
{
|
||||
for(int j=FirstChar;j<i;j++)
|
||||
{
|
||||
m_Path+=m_FileNameBuffer[j];
|
||||
}
|
||||
FirstChar=i+1;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_FileName[m_CurFileName]=m_Path;
|
||||
for(int j=FirstChar;j<i;j++)
|
||||
{
|
||||
m_FileName[m_CurFileName]+=m_FileNameBuffer[j];
|
||||
}
|
||||
m_CurFileName++;
|
||||
FirstChar=i+1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user