Skip to content

Commit a942357

Browse files
author
loki
committed
Improve clearity instructions
1 parent 34b1ef8 commit a942357

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

README.txt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Requirements:
44
Ubuntu 19.10: cmake libssl-dev libavdevice-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libpulse-dev libopus-dev libxtst-dev libx11-dev libxfixes-dev libevdev-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev
55

66
Compilation:
7-
* git clone <repository> --recurse-submodules
8-
* mkdir build && cd build
7+
* git clone https://github.com/loki-47-6F-64/sunshine.git --recurse-submodules
8+
* cd sunshine && mkdir build && cd build
99
* cmake ..
1010
* make
1111

@@ -41,14 +41,24 @@ Requirements:
4141
MSYS2 : mingw-w64-x86_64-openssl mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-boost
4242

4343
Compilation:
44-
* git clone <repository> --recurse-submodules
45-
* mkdir build && cd build
44+
* git clone https://github.com/loki-47-6F-64/sunshine.git --recurse-submodules
45+
* cd sunshine && mkdir build && cd build
4646
* cmake -G"Unix Makefiles" ..
4747
* make
4848

4949
Setup:
5050
* <optional> Gamepad support: Download and run 'ViGEmBus_Setup_1.16.116.exe' from [https://github.com/ViGEm/ViGEmBus/releases]
5151

52+
== Static build ==
53+
Requirements:
54+
MSYS2 : mingw-w64-x86_64-openssl mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-boost git-lfs
55+
56+
Compilation:
57+
* git lfs install
58+
* git clone https://github.com/loki-47-6F-64/sunshine.git --recurse-submodules
59+
* cd sunshine && mkdir build && cd build
60+
* cmake -DSUNSHINE_STANDALONE=ON -DSUNSHINE_ASSETS_DIR=assets -G"Unix Makefiles" ..
61+
* make
5262

5363

5464

sunshine/config.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,12 @@ void int_between_f(std::unordered_map<std::string, std::string> &vars, const std
152152
void print_help(const char *name) {
153153
std::cout <<
154154
"Usage: "sv << name << " [options] [/path/to/configuration_file]"sv << std::endl <<
155-
" Any configurable option can be overwritten with: <name>=<value>"sv << std::endl << std::endl <<
155+
" Any configurable option can be overwritten with: \"name=value\""sv << std::endl << std::endl <<
156156
" --help | print help"sv << std::endl << std::endl <<
157157
" flags"sv << std::endl <<
158158
" -0 | Read PIN from stdin"sv << std::endl <<
159-
" -1 | Do not read/write state to/from disk" << std::endl;
159+
" -1 | Do not load previously saved state and do retain any state after shutdown"sv << std::endl <<
160+
" | Effectively starting as if for the first time without overwriting any pairings with your devices"sv;
160161
}
161162

162163
int apply_flags(const char *line) {
@@ -167,7 +168,7 @@ int apply_flags(const char *line) {
167168
config::sunshine.flags[config::flag::PIN_STDIN].flip();
168169
break;
169170
case '1':
170-
config::sunshine.flags[config::flag::CLEAN_SLATE].flip();
171+
config::sunshine.flags[config::flag::FRESH_STATE].flip();
171172
break;
172173
default:
173174
std::cout << "Warning: Unrecognized flag: ["sv << *line << ']' << std::endl;

sunshine/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct input_t {
5858
namespace flag {
5959
enum flag_e : std::size_t {
6060
PIN_STDIN = 0, // Read PIN from stdin instead of http
61-
CLEAN_SLATE, // Do not load or save state
61+
FRESH_STATE, // Do not load or save state
6262
FLAG_SIZE
6363
};
6464
}

sunshine/nvhttp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void update_id_client(const std::string &uniqueID, std::string &&cert, op_e op)
162162
break;
163163
}
164164

165-
if(!config::sunshine.flags[config::flag::CLEAN_SLATE]) {
165+
if(!config::sunshine.flags[config::flag::FRESH_STATE]) {
166166
save_state();
167167
}
168168
}
@@ -724,7 +724,7 @@ int create_creds(const std::string &pkey, const std::string &cert) {
724724
}
725725

726726
void start(std::shared_ptr<safe::signal_t> shutdown_event) {
727-
bool clean_slate = config::sunshine.flags[config::flag::CLEAN_SLATE];
727+
bool clean_slate = config::sunshine.flags[config::flag::FRESH_STATE];
728728
if(clean_slate) {
729729
unique_id = util::uuid_t::generate().string();
730730

0 commit comments

Comments
 (0)