Basic scheduler + job

This commit is contained in:
2026-08-05 12:09:25 +02:00
parent ab0090ddb1
commit 2f48b90cf8
4 changed files with 84 additions and 3 deletions
+10 -1
View File
@@ -1,9 +1,18 @@
#include "xrbx/xrbx.h"
#include "xrbx/engine/scheduler.h"
#include <format>
#include <iostream>
int main() {
Process rbx(L"notepad.exe");
Process rbx(L"RobloxPlayerBeta.exe");
std::cout << std::format("Image Base: {:X}", uintptr_t(rbx.imageBase())) << std::endl;
RBX::Scheduler sched(rbx.Read<BYTE *>(rbx.VA(RVA_TASK_SCHEDULER)), rbx);
try {
for (const auto &job : sched.getJobs()) {
std::cout << std::format("Job {} @ {:x}", job.getName(), uintptr_t(job.VA())) << std::endl;
}
} catch (std::exception &e) {
std::cout << "err: " << e.what() << std::endl;
}
return 0;
}