mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-11 03:55:07 -05:00
1c384c5b3e
This reverts commit 55f114e3d499f510eadab5f918b7eb95fd9dd249, reversing changes made to 2809cd01dffb7f1a1df1068adaae8f2b1b44ae85.
19 lines
658 B
C++
19 lines
658 B
C++
#include <Lib/spdlog/include/spdlog/spdlog.h>
|
|
|
|
void GenerateRandomizer() {
|
|
int ret = Playthrough::Playthrough_Init(std::hash<std::string>{}(Settings::seed));
|
|
|
|
if (ret < 0) {
|
|
if (ret == -1) { // Failed to generate after 5 tries
|
|
SPDLOG_ERROR(
|
|
"\n\nFailed to generate after 5 tries.\nPress B to go back to the menu.\nA different seed might be "
|
|
"successful.");
|
|
return;
|
|
} else {
|
|
SPDLOG_ERROR("\n\nError %d with fill.\nPress Select to exit or B to go back to the menu.\n", ret);
|
|
return;
|
|
}
|
|
}
|
|
|
|
const auto& randomizerHash = GetRandomizerHash();
|
|
} |