Beispiel #1
0
	void QSPCallBacks::UpdateGamePath()
	{
		QFileInfo fi(QString::fromWCharArray(QSPGetQstFullPath()));
		m_gamePath = fi.absoluteDir().path() + QDir::separator();
		m_gameUrl = QUrl::fromLocalFile(fi.absoluteFilePath());
		m_window->GetDesc()->SetContentUrl(m_gameUrl);
		m_window->GetVars()->SetContentUrl(m_gameUrl);
	}
Beispiel #2
0
void QSPCallBacks::UpdateGamePath()
{
    QSPString fullPath = QSPGetQstFullPath();
    wxFileName file(wxString(fullPath.Str, fullPath.End));
    m_gamePath = file.GetPath(wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR);
    m_frame->GetDesc()->SetGamePath(m_gamePath);
    m_frame->GetObjects()->SetGamePath(m_gamePath);
    m_frame->GetActions()->SetGamePath(m_gamePath);
    m_frame->GetVars()->SetGamePath(m_gamePath);
}