#ifndef GLOBAL_H_44945DBA #define GLOBAL_H_44945DBA #include #include const std::filesystem::path& GetExecutableDirectory(); std::string GetAbsolutePath(std::string_view path); #endif /* end of include guard: GLOBAL_H_44945DBA */ ef='https://code.fourisland.com/witness-tutorializer/atom/Source/ChallengeRandomizer.h?h=tutorial-v0.4.0' type='application/atom+xml'/>
about summary refs log tree commit diff stats
blob: 10944cdb40a3499ba6e7456d57ae052aacf84d86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#include "Memory.h"
#include <memory>

class ChallengeRandomizer {
public:
	ChallengeRandomizer(const std::shared_ptr<Memory>& memory, int seed);

private:
	void AdjustRng(int offset);
	std::shared_ptr<Memory> _memory;

	int RNG_ADDR;
	int RNG2_ADDR;
};