Esempio n. 1
0
	void updateMessages()
	{
		memset(this->strs, 0, sizeof(this->strs));
		snprintf(this->strs[0], sizeof(this->strs[0]) - 1, "Set username (%s)",
				Gui::gui->np->NetworkName);
		snprintf(this->strs[1], sizeof(this->strs[1]) - 1, "Server (%s)",
				Gui::gui->np->NetworkServer);
		snprintf(this->strs[2], sizeof(this->strs[2]) - 1, "Set region (%s)",
				region_to_str(Gui::gui->np->NetworkRegion));
		snprintf(this->strs[3], sizeof(this->strs[3]) - 1, "Set SMB user (%s)",
				Gui::gui->np->SmbUser);
		snprintf(this->strs[4], sizeof(this->strs[4]) - 1, "Set SMB psw (%s)",
				Gui::gui->np->SmbPwd);
		snprintf(this->strs[5], sizeof(this->strs[5]) - 1, "Set SMB folder (%s)",
				Gui::gui->np->SmbShare);		
		snprintf(this->strs[6], sizeof(this->strs[6]) - 1, "Set SMB IP (%s)",
				Gui::gui->np->SmbIp);
				
		this->messages[0] = this->strs[0];
		this->messages[1] = this->strs[1];
		this->messages[2] = this->strs[2];

		this->messages[3] = " ";
		this->messages[4] = TheC64->network ? "Disconnect C64 network" : "Connect to C64 network!";
		this->messages[5] = " ";
		this->messages[6] = "Post network message";
		this->messages[7] = "Post peer message";
		this->messages[8] = " ";
		this->messages[9] = this->strs[3];
		this->messages[10] = this->strs[4];
		this->messages[11] = this->strs[5];
		this->messages[12] = this->strs[6];
		this->messages[13] = smbismount ? "Disconnect from SMB share" : "Connect to SMB share";
		this->messages[14] = NULL;
		this->setText(this->messages);
	}
	const char *getRegion()
	{
		return region_to_str(this->region);
	}