Build 0.2 native launcher and portable Classic runtime (by Codex)

This commit is contained in:
Codex committed 2026-10-18 11:28:51 +02:00
1 parent 3a021fc160
commit 2552528176
84 files changed
+5004 -197

No files matched your search

+8
View File
@@ -20,6 +20,10 @@ public:
void srand(uint32_t seed) { seed_ = seed; }
uint32_t seed() const { return seed_; }
uint64_t calls() const { return calls_; }
void restore(uint32_t seed, uint64_t calls) {
seed_ = seed;
calls_ = calls;
}
int rand() {
calls_++;
if (draw_hook) draw_hook(1);
@@ -47,6 +51,10 @@ public:
int32_t seed() const { return seed_; }
void set_seed(int32_t seed) { seed_ = seed; }
uint64_t calls() const { return calls_; }
void restore(int32_t seed, uint64_t calls) {
seed_ = seed;
calls_ = calls;
}
int32_t range(int32_t lo, int32_t hi) {
calls_++;
if (draw_hook) draw_hook(0);