CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/Core/Dialog/PSPNetconfDialog.h
Views: 1401
// Copyright (c) 2012- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include "Core/Dialog/PSPDialog.h"20#include "Core/MemMapHelpers.h"2122struct SceUtilityNetconfData {23char groupName[8];24int timeout;25};2627struct SceUtilityNetconfParam {28pspUtilityDialogCommon common;29int netAction; // sets how to connect30PSPPointer<SceUtilityNetconfData> NetconfData;31int netHotspot; // Flag to allow hotspot connections32int netHotspotConnected; // Flag to check if a hotspot connection is active33int netWifiSpot; // Flag to allow WIFI connections34};353637class PSPNetconfDialog: public PSPDialog {38public:39PSPNetconfDialog(UtilityDialogType type);40~PSPNetconfDialog();4142int Init(u32 paramAddr);43int Update(int animSpeed) override;44int Shutdown(bool force = false) override;45void DoState(PointerWrap &p) override;46pspUtilityDialogCommon* GetCommonParam() override;4748protected:49bool UseAutoStatus() override {50return false;51}5253private:54void DisplayMessage(std::string_view text1, std::string_view text2a = "", std::string_view text2b = "", std::string_view text3a = "", std::string_view text3b = "", bool hasYesNo = false, bool hasOK = false);55void DrawBanner();56void DrawIndicator();5758SceUtilityNetconfParam request = {};59u32 requestAddr = 0;60int connResult = -1;61bool hideNotice = false;6263int yesnoChoice = 0;64float scrollPos_ = 0.0f;65int framesUpHeld_ = 0;66int framesDownHeld_ = 0;6768u32 scanInfosAddr = 0;69int scanStep = 0;70u64 startTime = 0;71};727374