mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 12:14:54 +01:00
Update Nemirtingas overlay to latest.
This commit is contained in:
parent
df94c38b0f
commit
c17fb0c931
82 changed files with 48737 additions and 59872 deletions
44
overlay_experimental/System/System.h
Normal file
44
overlay_experimental/System/System.h
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* Copyright (C) Nemirtingas
|
||||
* This file is part of System.
|
||||
*
|
||||
* System is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* System is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with the System; if not, see
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace System {
|
||||
|
||||
std::chrono::system_clock::time_point GetBootTime();
|
||||
std::chrono::microseconds GetUpTime();
|
||||
|
||||
// Get the current process argv
|
||||
std::vector<std::string> GetProcArgs();
|
||||
// Get User env variable
|
||||
std::string GetEnvVar(std::string const& var);
|
||||
// User appdata full path
|
||||
std::string GetUserdataPath();
|
||||
// Executable full path
|
||||
std::string GetExecutablePath();
|
||||
// .dll, .so or .dylib full path
|
||||
std::string GetModulePath();
|
||||
// List all loaded modules
|
||||
std::vector<std::string> GetModules();
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue