#ifndef XSTEAM_BASE_H #define XSTEAM_BASE_H #include #include #include #include #include // fetch remote type typedef enum { BRANCH, TAG } GIT_MODE; typedef enum{ STEAM, STEAMTOOLS }RUN_MODE; // vdf file read mode typedef enum { ADD, DEL } VDF_EDIT_MODE; // remote src url class typedef struct { std::string src_name = {}; std::string src_url = {}; GIT_MODE src_type = BRANCH; } SrcData; // gloabal game data struct typedef struct { std::string name = {}; std::string uid = {}; std::string m_time = {}; std::string i_time = {}; std::vector n_dlc={}; std::vector r_dlc={}; std::vector manifest = {}; std::string ico={}; // temp_save steam for uid and key, // first opt->uid // second->key=opt->uid type // second->value=opt->uid key std::map uid_key = {}; } UidData; typedef struct { int style = 0; int font = 0; std::string steam_dir={}; std::string steamtools_dir={}; std::string steamtools_st_dir={}; std::string steam_api_url={}; std::string steam_logo_url={}; } XSteamConfig; typedef struct { std::string t_g_uid = {}; std::string t_s_name{}; } InputData; // gloabal data typedef struct { XSteamConfig x_config = {}; std::vector s_data = {}; std::vector u_data = {}; std::map> s_ex_data = {}; } GloablData; extern GloablData _data; extern QString ex_base_exe_path; extern QString ex_base_exe_ex; // 保存目录路径 extern QString ex_save_path; // 保存目录路径带"/" extern QString ex_save_path_ex; // 源编辑表头文本 extern QStringList ex_src_table_head_tips; // 入库游戏表头文本 extern QStringList ex_uid_table_head_tips; extern QStringList ex_in_dlc_table_head_tips; extern QStringList ex_all_dlc_table_head_tips; #endif