RigsofRods
Soft-body Physics Simulation
Data Structures | Functions
GUI_RepositorySelector.cpp File Reference
#include "GUI_RepositorySelector.h"
#include "Application.h"
#include "GameContext.h"
#include "AppContext.h"
#include "Console.h"
#include "ContentManager.h"
#include "GUIManager.h"
#include "GUIUtils.h"
#include "Language.h"
#include "PlatformUtils.h"
#include "RoRVersion.h"
#include <imgui.h>
#include <imgui_internal.h>
#include <rapidjson/document.h>
#include <vector>
#include <fmt/core.h>
#include <stdio.h>
#include <OgreFileSystemLayer.h>
#include <curl/curl.h>
#include <curl/easy.h>
+ Include dependency graph for GUI_RepositorySelector.cpp:

Go to the source code of this file.

Data Structures

struct  RepoProgressContext
 

Functions

static size_t CurlWriteFunc (void *ptr, size_t size, size_t nmemb, std::string *data)
 
static size_t CurlProgressFunc (void *ptr, double filesize_B, double downloaded_B)
 
static size_t CurlOgreDataStreamWriteFunc (char *data_ptr, size_t _unused, size_t data_length, void *userdata)
 
std::vector< GUI::ResourceCategoriesGetResourceCategories (std::string portal_url)
 
void GetResources (std::string portal_url)
 
void GetResourceFiles (std::string portal_url, int resource_id)
 
void DownloadResourceFile (int resource_id, std::string filename, int id)
 

Detailed Description

Author
Rafael Galvan, 04/2021
Petr Ohlidal, 2022
tritonas00, 2022

Definition in file GUI_RepositorySelector.cpp.

Function Documentation

◆ CurlOgreDataStreamWriteFunc()

static size_t CurlOgreDataStreamWriteFunc ( char *  data_ptr,
size_t  _unused,
size_t  data_length,
void *  userdata 
)
static

Definition at line 100 of file GUI_RepositorySelector.cpp.

+ Here is the caller graph for this function:

◆ CurlProgressFunc()

static size_t CurlProgressFunc ( void *  ptr,
double  filesize_B,
double  downloaded_B 
)
static

Definition at line 74 of file GUI_RepositorySelector.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CurlWriteFunc()

static size_t CurlWriteFunc ( void *  ptr,
size_t  size,
size_t  nmemb,
std::string *  data 
)
static

Definition at line 62 of file GUI_RepositorySelector.cpp.

+ Here is the caller graph for this function:

◆ DownloadResourceFile()

void DownloadResourceFile ( int  resource_id,
std::string  filename,
int  id 
)

Definition at line 314 of file GUI_RepositorySelector.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetResourceCategories()

std::vector<GUI::ResourceCategories> GetResourceCategories ( std::string  portal_url)

Definition at line 113 of file GUI_RepositorySelector.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetResourceFiles()

void GetResourceFiles ( std::string  portal_url,
int  resource_id 
)

Definition at line 256 of file GUI_RepositorySelector.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetResources()

void GetResources ( std::string  portal_url)

Definition at line 168 of file GUI_RepositorySelector.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: