mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-07-01 04:20:23 -04:00
Address rando pr comments (#742)
* prefix randomizer methods with Randomizer_ * make filename a local var * remove unused file, update malon to use new names * move randomizertypes to randomizer directory * rename to Randomizer_GetSettingValue Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
#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();
|
||||
}
|
||||
Reference in New Issue
Block a user