about summary refs log tree commit diff stats
path: root/Source/ChallengeRandomizer.h
blob: e642685ef94f3c3673dd494032b68f1cdf828fe1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
#include "Memory.h"
#include <memory>

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

private:
	void HandleSigScans(int i, const std::vector<byte>& data);

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

	int RNG_ADDR;
	int RNG2_ADDR;
};