Compare commits

...

30 Commits
v2.0.0 ... main

Author SHA1 Message Date
7117b65cf5 meow
Some checks failed
Build & Release / build-windows (push) Has been cancelled
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 17:34:02 +03:00
e6404f781c meow
Some checks failed
Build & Release / build-windows (push) Has been cancelled
2026-04-28 06:32:09 +03:00
7e46f9a710 fix
Some checks failed
Build & Release / build-windows (push) Has been cancelled
2026-04-28 06:16:56 +03:00
5b9646ff75 mrow
Some checks failed
Build & Release / build-windows (push) Has been cancelled
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 06:13:23 +03:00
3e51a44e30 fix
Some checks failed
Build & Release / build-windows (push) Has been cancelled
2026-04-28 06:09:14 +03:00
e04660b93b Refactor user info properties to use snake_case naming convention 2026-04-28 06:05:13 +03:00
808420e601 s
Some checks failed
Build & Release / build-windows (push) Has been cancelled
2026-04-28 05:57:06 +03:00
58145f97a0 no way i forgot those
Some checks failed
Build & Release / build-windows (push) Has been cancelled
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 05:44:29 +03:00
2e9d26e674 clean up sum stuff
Some checks failed
Build & Release / build-windows (push) Has been cancelled
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 05:18:32 +03:00
9992e42eff Fix sum stuff
Some checks failed
Build & Release / build-windows (push) Has been cancelled
2026-04-28 04:34:03 +03:00
8a77c6e769 s 2026-04-27 22:49:54 +03:00
311dca1db9 new .gitignore 2026-04-27 22:48:14 +03:00
c57d70ddca Update README.md
Some checks failed
Build & Release / build-windows (push) Has been cancelled
2026-04-27 19:12:17 +00:00
37563fa53d add icons
Some checks failed
Build & Release / build-windows (push) Has been cancelled
2026-03-29 20:03:39 +00:00
d35ea4444f remove ubuntu workflow build
Some checks failed
Build & Release / build-windows (push) Has been cancelled
will add linux support in the future!
2026-03-29 22:20:36 +03:00
5a928b0b1b Merge ; commit '' 2026-03-29 22:19:34 +03:00
5cf74a49ce Remove ubuntu in build workflow
removed it because it would crash, ill work on fixing this when EAC is
implemented..
2026-03-29 22:18:00 +03:00
0865606056 Add .github/workflows/build.yml
Some checks failed
Build & Release / build (ubuntu-22.04, x86_64-unknown-linux-gnu) (push) Has been cancelled
Build & Release / build (windows-latest, x86_64-pc-windows-msvc) (push) Has been cancelled
2026-03-29 19:08:49 +00:00
f417559290 rewrite yml 2026-03-29 19:08:14 +00:00
403292d71c make builds trigger through actions
Some checks failed
Build & Release / build (ubuntu-22.04, x86_64-unknown-linux-gnu) (push) Has been cancelled
Build & Release / build (windows-latest, x86_64-pc-windows-msvc) (push) Has been cancelled
2026-03-29 19:00:22 +00:00
9ecabfb778 fixing sum stuff ahahah 2026-03-29 21:43:21 +03:00
2d60399989 fix sum studf 2026-03-29 20:50:02 +03:00
c6d8b61a00 Fix sum stuff 2026-03-29 20:46:48 +03:00
ee0e403195 Update src-tauri/tauri.conf.json 2026-03-29 17:33:40 +00:00
edd5cb5ca5 Update src-tauri/tauri.conf.json 2026-03-29 17:33:02 +00:00
7eb1cbffae Update src-tauri/Cargo.toml 2026-03-29 17:30:45 +00:00
a641bf4246 change rlidentity icon to top of README 2026-03-20 17:01:15 +00:00
9c3d0bf4b1 Update README.md 2026-03-18 22:18:26 +00:00
f50e8b3727 whoops 2026-03-18 05:00:42 +00:00
0b9fa9acd1 Fix large icon in README.md 2026-03-18 05:00:26 +00:00
70 changed files with 1475 additions and 858 deletions

42
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,42 @@
name: Build & Release
on:
push:
branches:
- main
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-msvc
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
src-tauri/target
key: windows-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: npm install
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
CARGO_BUILD_JOBS: "2"
with:
tagName: ${{ github.ref_name }}
releaseName: RLidentity ${{ github.ref_name }}
releaseBody: New release
releaseDraft: false

66
.gitignore vendored
View File

@ -22,3 +22,69 @@ dist-ssr
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?
# Environment
.env
.env.*
# Node / package managers
package-lock.json
pnpm-lock.yaml
yarn.lock
.turbo
# Vite / build caches
.vite/
.cache/
dist/
build/
/node_modules/
# TypeScript
*.tsbuildinfo
# Tauri / Rust
src-tauri/target/
target/
/dist/tauri
# CMake / build artifacts
build/
build-x64/
cmake-build-debug/
CMakeFiles/
bin/
lib/
Debug/
Release/
*.obj
*.o
*.lib
*.a
*.so
*.dylib
*.pdb
*.ilk
*.key
*.pvk
*.pfx
# Visual Studio
.vs/
bin/
obj/
*.user
*.userosscache
*.VC.db
*.VC.VC.opendb
*.cer
# IDEs
.idea/
*.sublime-workspace
# Misc
.DS_Store
Thumbs.db
# Logs again (catch-all)
*.log

View File

@ -1,10 +1,12 @@
# RLidentity v2.0.0 # RLidentity v2.0.1
> **Be anyone, Win everything.** > **Be anyone, Win everything.**
RLidentity is a modern, high-performance identity management tool for Rocket League. It features a sleek, glass-morphism GUI built with Tauri and React, backed by a powerful C++ injection system. ![App Logo](https://cdn.discordapp.com/icons/1470914465515049083/88f78baaa66b440109a59a7999951cd8.webp?size=128)
RLidentity is a modern, high-performance Name Spoofing tool for Rocket League. It features a sleek, glass-morphism GUI built with Tauri and React, backed by a powerful C++ injection system.
![App Logo](public/rlidentity.webp)
## Features ## Features
@ -42,10 +44,7 @@ The DLL and Injector are built using Visual Studio 2022 (v143 toolset). Ensure `
* **Lead Dev & Owner**: Bits * **Lead Dev & Owner**: Bits
* **Dev & Admin**: Danni * **Dev & Admin**: Danni
* **Co-Owner**: Deniz
* **Administrator**: Kairo
* **Helpers**: Quinn, sndr * **Helpers**: Quinn, sndr
* **Tester**: Emir
## 🔗 Links ## 🔗 Links

BIN
RLIdentity.dll Normal file

Binary file not shown.

BIN
injector.exe Normal file

Binary file not shown.

BIN
logo.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -1,7 +1,7 @@
{ {
"name": "rlidentitygui", "name": "RLIdentity",
"private": true, "private": true,
"version": "2.0.0", "version": "2.0.1",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

16
src-tauri/.gitignore vendored
View File

@ -1,3 +1,19 @@
# src-tauri (Rust / Tauri) ignores
# Rust
/target/
**/target/
# Tauri build artifacts
/.tauri/build/
/.tauri/bundle/
# Editor
.vscode/
.idea/
# Logs
*.log
# Generated by Cargo # Generated by Cargo
# will have compiled files and executables # will have compiled files and executables
/target/ /target/

38
src-tauri/Cargo.lock generated
View File

@ -2,6 +2,26 @@
# It is not intended for manual editing. # It is not intended for manual editing.
version = 4 version = 4
[[package]]
name = "RLIdentity"
version = "2.0.1"
dependencies = [
"dirs 5.0.1",
"hex",
"reqwest 0.12.28",
"serde",
"serde_json",
"sha2",
"sysinfo",
"tauri",
"tauri-build",
"tauri-plugin-opener",
"tauri-plugin-process",
"tauri-plugin-updater",
"tokio",
"window-vibrancy 0.5.3",
]
[[package]] [[package]]
name = "adler2" name = "adler2"
version = "2.0.1" version = "2.0.1"
@ -3452,24 +3472,6 @@ dependencies = [
"windows-sys 0.52.0", "windows-sys 0.52.0",
] ]
[[package]]
name = "rlidentitygui"
version = "2.0.0"
dependencies = [
"dirs 5.0.1",
"reqwest 0.12.28",
"serde",
"serde_json",
"sysinfo",
"tauri",
"tauri-build",
"tauri-plugin-opener",
"tauri-plugin-process",
"tauri-plugin-updater",
"tokio",
"window-vibrancy 0.5.3",
]
[[package]] [[package]]
name = "rustc_version" name = "rustc_version"
version = "0.4.1" version = "0.4.1"

View File

@ -1,8 +1,8 @@
[package] [package]
name = "rlidentitygui" name = "RLIdentity"
version = "2.0.0" version = "2.0.1"
description = "A Tauri App" description = "check out https://rlidentity.me for more info!"
authors = ["you"] authors = ["bits", "danni :3"]
edition = "2021" edition = "2021"
[lib] [lib]
@ -13,9 +13,8 @@ crate-type = ["staticlib", "cdylib", "rlib"]
tauri-build = { version = "2", features = [] } tauri-build = { version = "2", features = [] }
[dependencies] [dependencies]
reqwest = { version = '0.12', features = ['json'] } reqwest = { version = "0.12", features = ["json"] }
tokio = { version = '1', features = ['full'] } tokio = { version = "1", features = ["full"] }
window-vibrancy = "0.5.2"
tauri = { version = "2", features = ["tray-icon", "image-png"] } tauri = { version = "2", features = ["tray-icon", "image-png"] }
tauri-plugin-opener = "2" tauri-plugin-opener = "2"
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
@ -24,4 +23,7 @@ sysinfo = "0.30"
dirs = "5" dirs = "5"
tauri-plugin-updater = "2.10.0" tauri-plugin-updater = "2.10.0"
tauri-plugin-process = "2.3.1" tauri-plugin-process = "2.3.1"
sha2 = "0.10"
hex = "0.4"
[target.'cfg(target_os = "windows")'.dependencies]
window-vibrancy = "0.5.2"

View File

@ -14,6 +14,6 @@
"opener:default", "opener:default",
"updater:default", "updater:default",
"process:allow-restart", "process:allow-restart",
"default" "allow-main-commands"
] ]
} }

BIN
src-tauri/icons/128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
src-tauri/icons/32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
src-tauri/icons/64x64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<background android:drawable="@color/ic_launcher_background"/>
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#fff</color>
</resources>

Binary file not shown.

BIN
src-tauri/icons/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
src-tauri/icons/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1,16 @@
{
"identifier": "allow-main-commands",
"description": "Allows RLIdentity core commands",
"commands": {
"allow": [
"minimize_to_tray",
"save_config",
"inject_dll",
"validate_key",
"check_status",
"get_hwid",
"get_app_version",
"download_assets"
]
}
}

View File

@ -13,5 +13,6 @@ commands.allow = [
"inject_dll", "inject_dll",
"validate_key", "validate_key",
"check_status", "check_status",
"get_hwid" "get_hwid",
"download_assets"
] ]

View File

@ -1,11 +1,15 @@
use reqwest; use reqwest::Client;
use tauri::{Manager, WebviewWindow}; use serde::{Deserialize, Serialize};
use window_vibrancy::apply_acrylic; use std::path::{Path, PathBuf};
use serde::Serialize;
use std::fs;
use sysinfo::System;
use std::process::Command; use std::process::Command;
use std::path::Path; use std::sync::Mutex;
use tokio::fs;
use tauri::{Manager, State, WebviewWindow};
use window_vibrancy::apply_acrylic;
use sysinfo::{ProcessRefreshKind, RefreshKind, System};
use sha2::{Sha256, Digest};
// --- types ---
#[derive(Serialize)] #[derive(Serialize)]
pub struct Status { pub struct Status {
@ -13,247 +17,247 @@ pub struct Status {
pub is_injected: bool, pub is_injected: bool,
} }
#[derive(Serialize)] #[derive(Serialize, Deserialize)]
pub struct UserInfo { pub struct UserInfo {
pub userId: Option<String>, #[serde(rename = "userId")]
pub discordId: Option<String>, pub user_id: Option<String>,
pub epicId: Option<String>, #[serde(rename = "discordId")]
pub discord_id: Option<String>,
#[serde(rename = "epicId")]
pub epic_id: Option<String>,
pub username: Option<String>, pub username: Option<String>,
pub globalName: Option<String>, #[serde(rename = "globalName")]
pub global_name: Option<String>,
pub logins: Option<i32>, pub logins: Option<i32>,
} }
#[derive(Serialize)] #[derive(Serialize, Deserialize)]
pub struct KeyValidationResponse { pub struct KeyValidationResponse {
pub status: String, pub status: String,
pub user: Option<UserInfo>, pub user: Option<UserInfo>,
} }
#[tauri::command] #[derive(Serialize, Deserialize)]
fn minimize_to_tray(window: WebviewWindow) { struct SaveConfigPayload {
let _ = window.hide(); #[serde(rename = "spoofedName")]
name: String,
platform: String,
} }
#[tauri::command] #[derive(Deserialize)]
fn get_hwid() -> String { struct AssetManifest {
// Simple HWID using Windows UUID injector_hash: String,
let output = Command::new("wmic") dll_hash: String,
.args(["csproduct", "get", "uuid"])
.output()
.ok();
if let Some(out) = output {
let s = String::from_utf8_lossy(&out.stdout);
let lines: Vec<&str> = s.lines().collect();
if lines.len() >= 2 {
return lines[1].trim().to_string();
}
}
"UNKNOWN-HWID".to_string()
} }
fn get_last_epic_id() -> String { struct AppState {
if let Some(mut path) = dirs::data_dir() { client: Client,
path.push("RLidentity"); app_data: PathBuf,
path.push("last_epic_id.txt"); sys: Mutex<System>,
}
if let Ok(content) = fs::read_to_string(path) {
let trimmed = content.trim(); // --- helpers ---
if trimmed.len() == 32 {
return trimmed.to_string(); async fn get_last_epic_id(base_path: &Path) -> String {
} let path = base_path.join("last_epic_id.txt");
if let Ok(content) = fs::read_to_string(path).await {
let trimmed = content.trim();
if trimmed.len() == 32 {
return trimmed.to_string();
} }
} }
"".to_string() "".to_string()
} }
#[tauri::command] // --- commands ---
async fn validate_key(key: String, hwid: String) -> Result<KeyValidationResponse, String> {
let epic_id = get_last_epic_id();
// Added epicId query parameter to the URL
let url = format!(
"https://api.rlidentity.me/keys/{}?hwid={}&epicId={}",
key, hwid, epic_id
);
let client = reqwest::Client::builder()
.danger_accept_invalid_certs(true)
.build()
.map_err(|e| format!("Client Error: {}", e))?;
println!("[LOG] Connecting to: {}", url);
println!("[LOG] Sending Epic ID: {}", epic_id);
let res = client.get(&url) #[tauri::command(rename_all = "snake_case")]
fn get_hwid() -> String {
let output = Command::new("reg")
.args(["query", r"HKLM\SOFTWARE\Microsoft\Cryptography", "/v", "MachineGuid"])
.output();
if let Ok(out) = output {
let s = String::from_utf8_lossy(&out.stdout);
if let Some(guid) = s.split_whitespace().last() {
if guid.len() == 36 && guid.contains('-') {
return guid.to_string();
}
}
}
"00000000-0000-0000-0000-000000000000".to_string()
}
#[tauri::command(rename_all = "snake_case")]
async fn validate_key(
key: String,
hwid: String,
state: State<'_, AppState>
) -> Result<KeyValidationResponse, String> {
let epic_id = get_last_epic_id(&state.app_data).await;
let url = format!("https://api.rlidentity.me/keys/{}?hwid={}&epicId={}", key, hwid, epic_id);
let res = state.client.get(&url)
.send() .send()
.await .await
.map_err(|e| { .map_err(|e| format!("network error: {}", e))?;
let err_msg = format!("Network Error: {}. Is the server on 443?", e);
println!("[ERROR] {}", err_msg);
err_msg
})?;
println!("[LOG] HTTP Status: {}", res.status()); res.json::<KeyValidationResponse>()
.await
let json: serde_json::Value = res.json().await.map_err(|e| { .map_err(|e| format!("api schema mismatch: {}", e))
let err_msg = format!("JSON Parse Error: {}", e);
println!("[ERROR] {}", err_msg);
err_msg
})?;
println!("[LOG] Server Payload: {:?}", json);
let status = json.get("status").and_then(|v| v.as_str()).unwrap_or("unknown").to_string();
let user = json.get("user").map(|u| UserInfo {
userId: u.get("userId").and_then(|v| {
v.as_str().map(|s| s.to_string()).or_else(|| v.as_i64().map(|n| n.to_string()))
}),
discordId: u.get("discordId").and_then(|v| v.as_str()).map(|s| s.to_string()),
epicId: u.get("epicId").and_then(|v| v.as_str()).map(|s| s.to_string()),
username: u.get("username").and_then(|v| v.as_str()).map(|s| s.to_string()),
globalName: u.get("globalName").and_then(|v| v.as_str()).map(|s| s.to_string()),
logins: u.get("logins").and_then(|v| v.as_i64()).map(|n| n as i32),
});
Ok(KeyValidationResponse { status, user })
} }
#[tauri::command] #[tauri::command(rename_all = "snake_case")]
async fn save_config(name: String, platform: String) -> Result<(), String> { async fn inject_dll(state: State<'_, AppState>) -> Result<String, String> {
let mut path = dirs::data_dir().ok_or("Could not find AppData")?; let injector_path = state.app_data.join("injector.exe");
path.push("RLidentity"); let dll_path = state.app_data.join("RLIdentity.dll");
fs::create_dir_all(&path).map_err(|e| e.to_string())?;
path.push("config.json");
let json = serde_json::json!({
"spoofedName": name,
"platform": platform
});
fs::write(path, serde_json::to_string_pretty(&json).unwrap()).map_err(|e| e.to_string())?;
Ok(())
}
#[tauri::command]
async fn check_status() -> Status {
let mut s = System::new_all();
s.refresh_processes();
let is_running = s.processes_by_exact_name("RocketLeague.exe").next().is_some();
Status { is_running, is_injected: false }
}
#[tauri::command]
async fn download_assets() -> Result<(), String> {
let mut path = dirs::data_dir().ok_or("Could not find AppData")?;
path.push("RLidentity");
fs::create_dir_all(&path).map_err(|e| e.to_string())?;
let client = reqwest::Client::new();
let assets = [
("injector.exe", "https://git.rlidentity.me/bits/RLidentity/raw/branch/dll/injector.exe"),
("RLIdentity.dll", "https://git.rlidentity.me/bits/RLidentity/raw/branch/dll/RLIdentity.dll"),
];
for (name, url) in assets {
let mut file_path = path.clone();
file_path.push(name);
let response = client.get(url).send().await.map_err(|e| e.to_string())?;
let bytes = response.bytes().await.map_err(|e| e.to_string())?;
fs::write(file_path, bytes).map_err(|e| e.to_string())?;
}
Ok(())
}
#[tauri::command]
async fn inject_dll(_discordId: Option<String>) -> Result<String, String> {
let mut base_path = dirs::data_dir().ok_or("Could not find AppData")?;
base_path.push("RLidentity");
let injector_path = base_path.join("injector.exe"); let is_running = {
let dll_path = base_path.join("RLIdentity.dll"); let mut sys = state.sys.lock().unwrap();
sys.refresh_processes_specifics(ProcessRefreshKind::new());
let x = sys.processes_by_exact_name("RocketLeague.exe").next().is_some(); x
};
let mut s = System::new_all(); if !is_running {
s.refresh_processes(); return Err("rocket league is not running".into());
if s.processes_by_exact_name("RocketLeague.exe").next().is_none() {
return Err("Rocket League is not running!".into());
} }
if !injector_path.exists() || !dll_path.exists() { if !injector_path.exists() || !dll_path.exists() {
return Err("Required files missing. Please wait for update to finish.".into()); return Err("files missing, please update".into());
} }
// Run the injector and capture FULL output
let output = Command::new(injector_path) let output = Command::new(injector_path)
.arg("RocketLeague.exe") .arg("RocketLeague.exe")
.arg(dll_path) .arg(&dll_path)
.output() .output()
.map_err(|e| format!("Execution failed: {}", e))?; .map_err(|e| format!("exec failed: {}", e))?;
let stdout = String::from_utf8_lossy(&output.stdout).to_string();
let stderr = String::from_utf8_lossy(&output.stderr).to_string();
let full_log = format!("STDOUT:\n{}\n\nSTDERR:\n{}", stdout, stderr);
println!("[LOG] Injector results:\n{}", full_log);
if output.status.success() { if output.status.success() {
Ok(format!("Successfully injected!\n\n{}", stdout)) Ok("injected".into())
} else { } else {
Err(format!("Injection failed!\n\n{}", full_log)) Err("injection failed: check admin privileges".into())
} }
} }
#[tauri::command(rename_all = "snake_case")]
async fn download_assets(state: State<'_, AppState>) -> Result<(), String> {
fs::create_dir_all(&state.app_data).await.map_err(|e| e.to_string())?;
let manifest: AssetManifest = state.client.get("https://api.rlidentity.me/manifest")
.send().await.map_err(|e| e.to_string())?
.json().await.map_err(|e| e.to_string())?;
let assets = [
("injector.exe", "https://git.rlidentity.me/bits/RLidentity/raw/branch/main/injector.exe", manifest.injector_hash),
("RLIdentity.dll", "https://git.rlidentity.me/bits/RLidentity/raw/branch/main/RLIdentity.dll", manifest.dll_hash),
];
for (name, url, expected_hash) in assets {
let file_path = state.app_data.join(name);
let res = state.client.get(url).send().await.map_err(|e| e.to_string())?;
let bytes = res.bytes().await.map_err(|e| e.to_string())?;
let mut hasher = Sha256::new();
hasher.update(&bytes);
let actual_hash = hex::encode(hasher.finalize());
if actual_hash != expected_hash {
return Err(format!("integrity check failed for {}", name));
}
fs::write(file_path, bytes).await.map_err(|e| e.to_string())?;
}
Ok(())
}
#[tauri::command(rename_all = "snake_case")]
async fn check_status(state: State<'_, AppState>) -> Result<Status, String> {
let is_running = {
let mut sys = state.sys.lock().unwrap();
sys.refresh_processes_specifics(ProcessRefreshKind::new());
let x = sys.processes_by_exact_name("RocketLeague.exe").next().is_some(); x
};
Ok(Status { is_running, is_injected: false })
}
#[tauri::command(rename_all = "snake_case")]
async fn save_config(name: String, platform: String, state: State<'_, AppState>) -> Result<(), String> {
let config_path = state.app_data.join("config.json");
let payload = SaveConfigPayload { name, platform };
if !state.app_data.exists() {
fs::create_dir_all(&state.app_data).await.map_err(|e| e.to_string())?;
}
let json = serde_json::to_string(&payload).map_err(|e| e.to_string())?;
fs::write(config_path, json).await.map_err(|e| e.to_string())
}
#[tauri::command(rename_all = "snake_case")]
fn get_app_version(app: tauri::AppHandle) -> String {
app.package_info().version.to_string()
}
#[tauri::command(rename_all = "snake_case")]
fn minimize_to_tray(window: WebviewWindow) {
let _ = window.hide();
}
// --- main ---
pub fn run() { pub fn run() {
tauri::Builder::default() tauri::Builder::default()
.plugin(tauri_plugin_opener::init()) .manage(AppState {
.plugin(tauri_plugin_process::init()) client: Client::builder()
.plugin(tauri_plugin_updater::Builder::new().build()) .danger_accept_invalid_certs(false)
.timeout(std::time::Duration::from_secs(30))
.build()
.unwrap(),
app_data: dirs::data_dir().expect("could not find data dir").join("RLidentity"),
sys: Mutex::new(System::new_with_specifics(
RefreshKind::new().with_processes(ProcessRefreshKind::new())
)),
})
.invoke_handler(tauri::generate_handler![ .invoke_handler(tauri::generate_handler![
minimize_to_tray, minimize_to_tray,
save_config,
inject_dll, inject_dll,
validate_key, validate_key,
check_status, check_status,
get_hwid, get_hwid,
download_assets download_assets,
save_config,
get_app_version
]) ])
.setup(|app| { .setup(|app| {
let icon_bytes = include_bytes!("../icons/32x32.png");
let icon = tauri::image::Image::from_bytes(icon_bytes)?;
let window = app.get_webview_window("main").unwrap(); let window = app.get_webview_window("main").unwrap();
window.set_icon(icon.clone())?;
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
apply_acrylic(&window, Some((18, 18, 18, 125))).ok(); apply_acrylic(&window, Some((18, 18, 18, 125))).ok();
let handle = app.handle().clone(); let monitor_handle = app.handle().clone();
let tray_menu = tauri::menu::Menu::with_items(app, &[ tauri::async_runtime::spawn(async move {
&tauri::menu::MenuItem::with_id(app, "tray_quit", "Quit", true, None::<&str>)?, let mut last_seen_running = false;
])?; loop {
tokio::time::sleep(std::time::Duration::from_secs(3)).await;
let state = monitor_handle.state::<AppState>();
let is_running = {
let mut sys = state.sys.lock().unwrap();
sys.refresh_processes_specifics(ProcessRefreshKind::new());
let x = sys.processes_by_exact_name("RocketLeague.exe").next().is_some(); x
};
tauri::tray::TrayIconBuilder::new() if is_running && !last_seen_running {
.icon(icon) println!("auto-detect: rocket league started. injecting...");
.menu(&tray_menu) let _ = inject_dll(state).await;
.on_menu_event(move |_app, event| {
if event.id().as_ref() == "tray_quit" { handle.exit(0); }
})
.on_tray_icon_event(|tray, event| {
if let tauri::tray::TrayIconEvent::Click {
button: tauri::tray::MouseButton::Left,
..
} = event {
let app = tray.app_handle();
if let Some(window) = app.get_webview_window("main") {
let _ = window.show();
let _ = window.set_focus();
}
} }
}) last_seen_running = is_running;
.build(app)?; }
});
Ok(()) Ok(())
}) })
.run(tauri::generate_context!()) .run(tauri::generate_context!())
.expect("error while running tauri application"); .expect("error while running tauri application");
} }

View File

@ -1,7 +1,7 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "rlidentitygui", "productName": "rlidentitygui",
"version": "2.0.0", "version": "2.0.1",
"identifier": "me.rlidentity.gui", "identifier": "me.rlidentity.gui",
"build": { "build": {
"beforeDevCommand": "npm run dev", "beforeDevCommand": "npm run dev",
@ -19,24 +19,29 @@
"fullscreen": false, "fullscreen": false,
"transparent": false, "transparent": false,
"decorations": false, "decorations": false,
"devtools": true "devtools": false
} }
], ],
"security": { "security": {
"csp": null "csp": "default-src 'self'; connect-src 'self' https://api.rlidentity.me https://git.rlidentity.me"
} }
}, },
"plugins": { "plugins": {
"updater": { "updater": {
"endpoints": [ "endpoints": [
"https://api.rlidentity.me/version" "https://api.rlidentity.me/version"
], ],
"pubkey": "DWY+YmX5uY2E3N0N3Q0N3Q0N3Q0N3Q0N3Q0N3Q0N3Q0N3Q==" "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEFGNUM0MTdBMUQxQTBBQzUKUldURkNob2Rla0Zjcng4TWxpSWh3QVhlQ2xFZnRZUE5Ock1KQmk0T3ZkV25EQ1R2dWZrNWZPNUEK"
} }
}, },
"bundle": { "bundle": {
"active": true, "active": true,
"targets": "all", "targets": "all",
"resources": [
"E:\\projects\\Rocket League\\RLIdentityDLL\\injector.exe",
"E:\\projects\\Rocket League\\RLIdentityDLL\\RLIdentity.dll"
],
"icon": [ "icon": [
"icons/32x32.png", "icons/32x32.png",
"icons/128x128.png", "icons/128x128.png",

View File

@ -0,0 +1 @@
dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEFGNUM0MTdBMUQxQTBBQzUKUldURkNob2Rla0Zjcng4TWxpSWh3QVhlQ2xFZnRZUE5Ock1KQmk0T3ZkV25EQ1R2dWZrNWZPNUEK

File diff suppressed because it is too large Load Diff

View File

@ -1,22 +1,22 @@
import { useMemo, useState, useEffect } from "react"; import { useMemo, useState, useEffect } from "react";
type Status = type Status =
| "ready" | "ready"
| "saved successfully" | "saved successfully"
| "injection started" | "injection started"
| "validating key..." | "validating key..."
| "invalid key" | "invalid key"
| "injecting..." | "injecting..."
| "RL Running" | "RL Running"
| "RL Closed" | "RL Closed"
| string; | string;
interface UserInfo { interface UserInfo {
userId: string | null; user_id: string | null;
discordId: string | null; discord_id: string | null;
epicId: string | null; epic_id: string | null;
username: string | null; username: string | null;
globalName: string | null; global_name: string | null;
logins?: number; logins?: number;
} }
@ -25,16 +25,28 @@ interface KeyValidationResponse {
user: UserInfo | null; user: UserInfo | null;
} }
const THEMES = [
{ id: "phantom", label: "Phantom", color: "#a855f7" },
{ id: "glacier", label: "Glacier", color: "#38bdf8" },
{ id: "inferno", label: "Inferno", color: "#f97316" },
{ id: "matrix", label: "Matrix", color: "#00ff41" },
{ id: "synthwave", label: "Synthwave", color: "#f72585" },
{ id: "eclipse", label: "Eclipse", color: "#fbbf24" },
] as const;
type ThemeId = typeof THEMES[number]["id"];
const LS_KEYS = { const LS_KEYS = {
spoofed: "neonGlass.spoofedUsername", spoofed: "rlidentity.spoofedUsername",
apiKey: "neonGlass.apiKey", apiKey: "rlidentity.apiKey",
minimizeToTray: "neonGlass.minimizeToTray", minimizeToTray: "rlidentity.minimizeToTray",
platform: "neonGlass.platform", platform: "rlidentity.platform",
autoInject: "neonGlass.autoInject", autoInject: "rlidentity.autoInject",
theme: "rlidentity.theme",
} as const; } as const;
const GITHUB_URL = "https://github.com/RLidentity"; const GITHUB_URL = "https://git.rlidentity.me/bits/rlidentity";
const FAQ_URL = "https://rlidentity.me/faq"; const FAQ_URL = "https://rlidentity.me/#faq";
function isTauriRuntime() { function isTauriRuntime() {
return typeof window !== "undefined" && typeof (window as any).__TAURI_INTERNALS__ !== "undefined"; return typeof window !== "undefined" && typeof (window as any).__TAURI_INTERNALS__ !== "undefined";
@ -56,7 +68,6 @@ async function tryInvoke<T>(cmd: string, args?: Record<string, unknown>) {
async function openUrl(url: string) { async function openUrl(url: string) {
const fallback = () => window.open(url, "_blank", "noopener,noreferrer"); const fallback = () => window.open(url, "_blank", "noopener,noreferrer");
if (!isTauriRuntime()) return fallback(); if (!isTauriRuntime()) return fallback();
try { try {
const mod: any = await import("@tauri-apps/plugin-opener"); const mod: any = await import("@tauri-apps/plugin-opener");
if (typeof mod.openUrl === "function") { if (typeof mod.openUrl === "function") {
@ -70,30 +81,35 @@ async function openUrl(url: string) {
} }
export default function App() { export default function App() {
const initialApiKey = useMemo(() => localStorage.getItem(LS_KEYS.apiKey) ?? "", []); const initialApiKey = useMemo(() => localStorage.getItem(LS_KEYS.apiKey) ?? "", []);
const initialSpoofed = useMemo(() => localStorage.getItem(LS_KEYS.spoofed) ?? "", []); const initialSpoofed = useMemo(() => localStorage.getItem(LS_KEYS.spoofed) ?? "", []);
const initialMinToTray = useMemo(() => localStorage.getItem(LS_KEYS.minimizeToTray) === "true", []); const initialMinToTray = useMemo(() => localStorage.getItem(LS_KEYS.minimizeToTray) === "true", []);
const initialPlatform = useMemo(() => localStorage.getItem(LS_KEYS.platform) ?? "Epic", []); const initialPlatform = useMemo(() => localStorage.getItem(LS_KEYS.platform) ?? "Epic", []);
const initialAutoInject = useMemo(() => localStorage.getItem(LS_KEYS.autoInject) === "true", []); const initialAutoInject = useMemo(() => localStorage.getItem(LS_KEYS.autoInject) === "true", []);
const initialTheme = useMemo(() => (localStorage.getItem(LS_KEYS.theme) ?? "phantom") as ThemeId, []);
const [apiKey, setApiKey] = useState(initialApiKey); const [version, setVersion] = useState('');
const [apiKey, setApiKey] = useState(initialApiKey);
const [spoofedUsername, setSpoofedUsername] = useState(initialSpoofed); const [spoofedUsername, setSpoofedUsername] = useState(initialSpoofed);
const [isAuthorized, setIsAuthorized] = useState(false); const [isAuthorized, setIsAuthorized] = useState(false);
const [isRevoked, setIsRevoked] = useState(false); const [isRevoked, setIsRevoked] = useState(false);
const [userData, setUserData] = useState<UserInfo | null>(null); const [userData, setUserData] = useState<UserInfo | null>(null);
const [status, setStatus] = useState<Status>("ready"); const [status, setStatus] = useState<Status>("ready");
const [rlStatus, setRlStatus] = useState("Checking..."); const [rlStatus, setRlStatus] = useState("Checking...");
const [settingsOpen, setSettingsOpen] = useState(false); const [settingsOpen, setSettingsOpen] = useState(false);
const [logsOpen, setLogsOpen] = useState(false); const [logsOpen, setLogsOpen] = useState(false);
const [lastLog, setLastLog] = useState(""); const [lastLog, setLastLog] = useState("");
const [minimizeToTray, setMinimizeToTray] = useState(initialMinToTray); const [minimizeToTray, setMinimizeToTray] = useState(initialMinToTray);
const [platform, setPlatform] = useState(initialPlatform); const [platform, setPlatform] = useState(initialPlatform);
const [autoInject, setAutoInject] = useState(initialAutoInject); const [autoInject, setAutoInject] = useState(initialAutoInject);
const [platformPickerOpen, setPlatformPickerOpen] = useState(false); const [platformPickerOpen, setPlatformPickerOpen] = useState(false);
const [theme, setTheme] = useState<ThemeId>(initialTheme);
// Easter Egg State
const [debugOpen, setDebugOpen] = useState(false); // Update modal
const [pendingUpdate, setPendingUpdate] = useState<{ version: string; install: () => Promise<void> } | null>(null);
// Easter egg
const [debugOpen, setDebugOpen] = useState(false);
const [logoClicks, setLogoClicks] = useState(0); const [logoClicks, setLogoClicks] = useState(0);
const handleLogoClick = (e: React.MouseEvent) => { const handleLogoClick = (e: React.MouseEvent) => {
@ -112,121 +128,115 @@ export default function App() {
return () => clearTimeout(timer); return () => clearTimeout(timer);
}, [logoClicks]); }, [logoClicks]);
// Tutorial State // Apply theme
const [tutorialStep, setTutorialStep] = useState(-1);
// Startup Authorization & Update Check
useEffect(() => { useEffect(() => {
if (initialApiKey) { document.documentElement.setAttribute("data-theme", theme);
authorize(initialApiKey); localStorage.setItem(LS_KEYS.theme, theme);
} }, [theme]);
// Startup
useEffect(() => {
if (initialApiKey) authorize(initialApiKey);
syncAssetsAndCheckUpdates(); syncAssetsAndCheckUpdates();
loadAppVersion();
}, []); }, []);
async function syncAssetsAndCheckUpdates() { async function loadAppVersion() {
if (!isTauriRuntime()) return; if (!isTauriRuntime()) return;
// 1. Download DLL and Injector
try { try {
await tryInvoke("download_assets"); const app = await import("@tauri-apps/api/app");
console.log("Assets synced successfully"); setVersion(await app.getVersion());
} catch (e) { } catch (e) {
console.error("Failed to sync assets:", e); console.error("Failed to get app version:", e);
setVersion("");
} }
// 2. Check for App updates
checkForUpdates();
} }
async function syncAssetsAndCheckUpdates() {
if (!isTauriRuntime()) return;
try {
setStatus("syncing assets...");
await tryInvoke("download_assets");
setStatus("ready");
} catch (e) {
console.error("Failed to sync assets:", e);
setStatus("Sync Error: " + String(e));
}
checkForUpdates();
}
async function checkForUpdates() { async function checkForUpdates() {
if (!isTauriRuntime()) return; if (!isTauriRuntime()) return;
try { try {
const { check } = await import("@tauri-apps/plugin-updater"); const { check } = await import("@tauri-apps/plugin-updater");
const update = await check(); const update = await check();
if (update) { if (update) {
console.log(`Update available: ${update.version}`); setPendingUpdate({
const confirmed = window.confirm(`A new version (${update.version}) is available. Would you like to update?`); version: update.version,
if (confirmed) { install: async () => {
setStatus("Updating..."); setStatus("Updating...");
await update.downloadAndInstall(); await update.downloadAndInstall();
// The app will restart automatically after install on some platforms, const { relaunch } = await import("@tauri-apps/plugin-process");
// or we might need to relaunch. Tauri v2 updater usually handles this. await relaunch();
const { relaunch } = await import("@tauri-apps/plugin-process"); },
await relaunch(); });
}
} }
} catch (e) { } catch (e) {
console.error("Failed to check for updates:", e); console.error("Failed to check for updates:", e);
} }
} }
// Sync revoked background to body // Revoked bg
useEffect(() => { useEffect(() => {
if (isRevoked) { document.body.classList.toggle("revoked-bg", isRevoked);
document.body.classList.add('revoked-bg');
} else {
document.body.classList.remove('revoked-bg');
}
}, [isRevoked]); }, [isRevoked]);
// Poll for Rocket League status & Auto Inject // Poll RL status + auto-inject
useEffect(() => { useEffect(() => {
if (!isAuthorized || isRevoked) return; if (!isAuthorized || isRevoked) return;
const interval = setInterval(async () => { const interval = setInterval(async () => {
try { try {
const res = await tryInvoke<{is_running: boolean}>("check_status"); const res = await tryInvoke<{ is_running: boolean }>("check_status");
if (res) { if (res) {
const wasRunning = rlStatus === "RL Running"; const wasRunning = rlStatus === "RL Running";
const isRunning = res.is_running; const isRunning = res.is_running;
setRlStatus(isRunning ? "RL Running" : "RL Closed"); setRlStatus(isRunning ? "RL Running" : "RL Closed");
if (!wasRunning && isRunning && autoInject) inject();
// Auto Inject Logic: if it just started running and autoInject is on
if (!wasRunning && isRunning && autoInject) {
inject();
}
}
} catch (e) {
console.error(e);
} }
} catch (e) {
console.error(e);
}
}, 2000); }, 2000);
return () => clearInterval(interval); return () => clearInterval(interval);
}, [isAuthorized, isRevoked, rlStatus, autoInject]); }, [isAuthorized, isRevoked, rlStatus, autoInject]);
async function authorize(keyToTry: string) { async function authorize(keyToTry: string) {
if (!keyToTry.trim()) { if (!keyToTry.trim()) { setStatus("Please enter a key"); return; }
setStatus("Please enter a key");
return;
}
setStatus("validating key..."); setStatus("validating key...");
setIsRevoked(false); setIsRevoked(false);
try { try {
const hwid = await tryInvoke<string>("get_hwid") || "UNKNOWN"; const hwid = await tryInvoke<string>("get_hwid") || "UNKNOWN-HWID";
const res = await tryInvoke<KeyValidationResponse>("validate_key", { key: keyToTry.trim(), hwid }); const res = await tryInvoke<KeyValidationResponse>("validate_key", { key: keyToTry.trim(), hwid });
if (res && res.status === "valid") { if (res?.status === "valid") {
localStorage.setItem(LS_KEYS.apiKey, keyToTry.trim()); localStorage.setItem(LS_KEYS.apiKey, keyToTry.trim());
setUserData(res.user); setUserData(res.user);
setIsAuthorized(true); setIsAuthorized(true);
setIsRevoked(false); setIsRevoked(false);
setStatus("ready"); setStatus("ready");
} else if (res?.status === "revoked") {
// Check for tutorial setIsRevoked(true);
if (res.user?.logins === 0) { setIsAuthorized(false);
setTutorialStep(0); setStatus("Error: Key Revoked");
} } else if (res?.status === "invalid_hwid") {
} else if (res && res.status === "revoked") { setStatus("Error: Key locked to another PC");
setIsRevoked(true); setIsAuthorized(false);
setIsAuthorized(false); } else {
setStatus("Error: Key Revoked"); setStatus("Error: Invalid key");
} else if (res && res.status === "invalid_hwid") { setIsAuthorized(false);
setStatus("Error: Key locked to another PC"); }
setIsAuthorized(false); } catch {
} else { setStatus("Network Error: Check connection");
setStatus("Error: Invalid key");
setIsAuthorized(false);
}
} catch (e) {
setStatus("Network Error: Check connection");
} }
} }
@ -234,25 +244,25 @@ export default function App() {
localStorage.setItem(LS_KEYS.spoofed, spoofedUsername.trim()); localStorage.setItem(LS_KEYS.spoofed, spoofedUsername.trim());
localStorage.setItem(LS_KEYS.platform, platform); localStorage.setItem(LS_KEYS.platform, platform);
try { try {
await tryInvoke("save_config", { name: spoofedUsername.trim(), platform }); await tryInvoke("save_config", { name: spoofedUsername.trim(), platform });
setStatus("saved successfully"); setStatus("saved successfully");
window.setTimeout(() => setStatus("ready"), 1400); window.setTimeout(() => setStatus("ready"), 1400);
} catch (e) { } catch (e) {
setStatus("Save error: " + String(e)); setStatus("Save error: " + String(e));
} }
} }
async function inject() { async function inject() {
setStatus("injecting..."); setStatus("injecting...");
try { try {
const res = await tryInvoke<string>("inject_dll", { discordId: userData?.discordId }); const res = await tryInvoke<string>("inject_dll");
setLastLog(res || "Successfully Injected!"); setLastLog(res || "Successfully Injected!");
setStatus("Successfully Injected!"); setStatus("Successfully Injected!");
window.setTimeout(() => setStatus("ready"), 1400); window.setTimeout(() => setStatus("ready"), 1400);
} catch (e) { } catch (e) {
setStatus("Injection Failed!"); setStatus("Injection Failed!");
setLastLog(String(e)); setLastLog(String(e));
setLogsOpen(true); setLogsOpen(true);
} }
} }
@ -260,7 +270,7 @@ export default function App() {
setMinimizeToTray(next); setMinimizeToTray(next);
localStorage.setItem(LS_KEYS.minimizeToTray, String(next)); localStorage.setItem(LS_KEYS.minimizeToTray, String(next));
} }
function toggleAutoInject(next: boolean) { function toggleAutoInject(next: boolean) {
setAutoInject(next); setAutoInject(next);
localStorage.setItem(LS_KEYS.autoInject, String(next)); localStorage.setItem(LS_KEYS.autoInject, String(next));
@ -271,7 +281,7 @@ export default function App() {
if (minimizeToTray) { if (minimizeToTray) {
await tryInvoke("minimize_to_tray"); await tryInvoke("minimize_to_tray");
} else { } else {
await tryWindowApi((w) => w.minimize()); await tryWindowApi(w => w.minimize());
} }
} }
@ -280,41 +290,53 @@ export default function App() {
window.location.reload(); window.location.reload();
}; };
const tutorialSteps = [ const closeAllModals = () => {
{ title: "Welcome to RLidentity", text: "Let's show you around. First, enter your spoofed username here.", target: "input" }, setSettingsOpen(false);
{ title: "Injection", text: "Once Rocket League is running, click Inject to start. Or enable Auto-Inject in settings!", target: "btn-primary" }, setLogsOpen(false);
{ title: "Settings", text: "Customize your experience here. Change your platform or toggle Auto-Injection.", target: "tb-action" }, setDebugOpen(false);
{ title: "All Set!", text: "You're ready to win. Happy gaming!", target: "none" } };
];
const isModalOpen = settingsOpen || logsOpen || debugOpen;
// ── Auth screen ───────────────────────────────────────────────────────────
if (!isAuthorized) { if (!isAuthorized) {
return ( return (
<div className="app-shell"> <div className="app-shell">
<div className={`bg-aurora ${isRevoked ? 'revoked-aurora' : ''}`} aria-hidden="true" /> <div className={`bg-aurora ${isRevoked ? "revoked-aurora" : ""}`} aria-hidden="true" />
<div className="window-titlebar" data-tauri-drag-region> <div className="window-titlebar" data-tauri-drag-region>
<div className="window-titlebar-left"> <div className="window-titlebar-left">
<img src="/rlidentity.webp" className="app-logo" alt="logo" onClick={handleLogoClick} draggable="false" style={{ cursor: 'default' }} /> <img
src="/rlidentity.webp"
className="app-logo"
alt="logo"
onClick={handleLogoClick}
draggable="false"
style={{ cursor: "default" }}
/>
<div className="titlebar-text" data-tauri-drag-region> <div className="titlebar-text" data-tauri-drag-region>
<div className="app-name neon-text-soft">RLidentity <span style={{ fontSize: '10px', opacity: 0.6, marginLeft: '4px' }}>v2.0.0</span></div> <div className="app-name neon-text-soft">
<div className="app-slogan">{isRevoked ? 'License Revoked' : 'Authorize to continue'}</div> RLidentity <span style={{ fontSize: "10px", opacity: 0.6, marginLeft: "4px" }}>
v{version || "2.0.1"}
</span>
</div>
<div className="app-slogan">{isRevoked ? "License Revoked" : "Authorize to continue"}</div>
</div> </div>
</div> </div>
<div className="titlebar-controls"> <div className="titlebar-controls">
<button className="win-btn" onClick={handleMinimizeClick}></button> <button className="win-btn" onClick={handleMinimizeClick}></button>
<button className="win-btn" onClick={async () => await tryWindowApi(w => w.close())}></button> <button className="win-btn" onClick={() => tryWindowApi(w => w.close())}></button>
</div> </div>
</div> </div>
<main className="panel-wrap"> <main className="panel-wrap">
<section className={`glass-card neon-ring ${isRevoked ? 'revoked' : ''}`} style={{ maxWidth: '400px', margin: 'auto' }}> <section className={`glass-card neon-ring ${isRevoked ? "revoked" : ""}`} style={{ maxWidth: "400px", margin: "auto" }}>
<header className="card-header"> <header className="card-header">
<h1 className={`headline neon-text ${isRevoked ? 'red' : ''}`}> <h1 className={`headline neon-text ${isRevoked ? "red" : ""}`}>
{isRevoked ? 'ACCESS REVOKED' : 'RLidentity'} {isRevoked ? "ACCESS REVOKED" : "RLidentity"}
</h1> </h1>
<p className="app-slogan"> <p className="app-slogan">
{isRevoked ? 'This license is no longer active' : 'Enter your API key to continue'} {isRevoked ? "This license is no longer active" : "Enter your API key to continue"}
</p> </p>
</header> </header>
<div className="form-stack"> <div className="form-stack">
@ -326,21 +348,24 @@ export default function App() {
type="password" type="password"
className="input" className="input"
value={apiKey} value={apiKey}
onChange={(e) => setApiKey(e.target.value)} onChange={e => setApiKey(e.target.value)}
onKeyDown={e => e.key === "Enter" && authorize(apiKey)}
placeholder="Enter your license key..." placeholder="Enter your license key..."
/> />
</div> </div>
</div> </div>
)} )}
<button className="btn btn-primary" onClick={() => isRevoked ? logout() : authorize(apiKey)}> <button className="btn btn-primary" onClick={() => isRevoked ? logout() : authorize(apiKey)}>
{isRevoked ? 'Change Key' : 'Login'} {isRevoked ? "Change Key" : "Login"}
</button> </button>
{status !== "ready" && ( {status !== "ready" && (
<p className="status-value" style={{textAlign:'center', marginTop:'10px', color: (isRevoked || status.startsWith('Error')) ? '#ff5555' : 'inherit'}}> <p className="status-value" style={{
{status} textAlign: "center",
</p> marginTop: "10px",
color: (isRevoked || status.startsWith("Error")) ? "var(--red0)" : "inherit",
}}>
{status}
</p>
)} )}
</div> </div>
</section> </section>
@ -349,234 +374,235 @@ export default function App() {
); );
} }
// ── Main app ──────────────────────────────────────────────────────────────
return ( return (
<div className="app-shell"> <div className="app-shell">
<div className="bg-aurora" aria-hidden="true" /> <div className="bg-aurora" aria-hidden="true" />
<div className="window-titlebar" data-tauri-drag-region> <div className="window-titlebar" data-tauri-drag-region>
<div className="window-titlebar-left"> <div className="window-titlebar-left">
<img src="/rlidentity.webp" className="app-logo" alt="logo" onClick={handleLogoClick} draggable="false" style={{ cursor: 'default' }} /> <img
<div className="titlebar-app-name neon-text-soft" data-tauri-drag-region>RLidentity</div> src="/rlidentity.webp"
className="app-logo"
alt="logo"
onClick={handleLogoClick}
draggable="false"
style={{ cursor: "default" }}
/>
<div className="titlebar-app-name neon-text-soft" data-tauri-drag-region>RLidentity</div>
</div>
<div className="titlebar-controls-wrap" data-tauri-drag-region>
<div className="titlebar-controls">
<button className="tb-action" onClick={() => setSettingsOpen(true)}>Settings</button>
<button className="tb-action" onClick={() => openUrl(GITHUB_URL)}>GitHub</button>
<button className="win-btn" onClick={handleMinimizeClick}></button>
<button className="win-btn" onClick={() => tryWindowApi(w => w.close())}></button>
</div>
</div>
</div>
<main className="panel-wrap">
<header className="welcome-section">
<h2 className="welcome-text">
Welcome, <span className="neon-text-soft">{userData?.global_name || userData?.username || "User"}</span>
</h2>
<div className="user-id-badge">User #{userData?.user_id || "0"}</div>
</header>
<section className="glass-card neon-ring">
<header className="card-header">
<h1 className="headline neon-text">Be anyone, Win everything</h1>
</header>
<div className="form-stack">
<div className="field">
<label className="label">spoofed username</label>
<div className="glass-input">
<input
className="input"
value={spoofedUsername}
onChange={e => setSpoofedUsername(e.target.value)}
placeholder="Enter a username..."
/>
</div>
</div>
<button
className="btn btn-primary"
onClick={inject}
disabled={rlStatus !== "RL Running"}
>
{rlStatus === "RL Running" ? "Inject" : "Start Rocket League"}
</button>
<div className="btn-row">
<button className="btn btn-secondary" onClick={() => openUrl(FAQ_URL)}>FAQ</button>
<button className="btn btn-tertiary" onClick={saveConfig}>Save Name</button>
</div>
</div> </div>
<div className="titlebar-controls-wrap" data-tauri-drag-region> <footer className="status-bar">
<div className="titlebar-controls"> <div className="status-item">
<button id="step-settings" className="tb-action" onClick={() => setSettingsOpen(true)}>Settings</button> <span className="status-label">status</span>
<button className="tb-action" onClick={() => openUrl(GITHUB_URL)}>GitHub</button> <span className="status-value">{status}</span>
<button className="win-btn" onClick={handleMinimizeClick}></button> </div>
<button className="win-btn" onClick={async () => await tryWindowApi(w => w.close())}></button> <div className="status-item">
<span className="status-label">game</span>
<span className={`status-value ${rlStatus === "RL Running" ? "status-active" : ""}`}>{rlStatus}</span>
</div>
</footer>
</section>
</main>
{/* ── Modals ── */}
{isModalOpen && (
<div className="modal-overlay" onClick={closeAllModals}>
<div
className="modal glass-card neon-ring"
onClick={e => e.stopPropagation()}
style={{ maxWidth: logsOpen || debugOpen ? "600px" : "420px" }}
>
{debugOpen ? (
<>
<h2 className="modal-title neon-text-soft">System Credits</h2>
<div className="credits-grid glass-input">
{[
{ role: "Lead Dev & Owner", name: "Bits", accent: true },
{ role: "Dev & Admin", name: "Danni" },
{ role: "Co-Owner", name: "Deniz" },
{ role: "Administrator", name: "Kairo" },
{ role: "Helpers", name: "Quinn, SNDR" },
{ role: "Tester", name: "Emir" },
].map(({ role, name, accent }) => (
<div key={role} className="credit-row">
<span className="credit-role">{role}</span>
<span className={accent ? "neon-text-soft" : "credit-name"}>{name}</span>
</div>
))}
<hr className="credit-divider" />
<button className="btn btn-secondary" style={{ width: "100%" }} onClick={() => openUrl("https://rlidentity.me/discord")}>
Join Discord rlidentity.me/discord
</button>
</div>
<button className="btn btn-primary" style={{ marginTop: "14px" }} onClick={() => setDebugOpen(false)}>Close</button>
</>
) : logsOpen ? (
<>
<h2 className="modal-title neon-text-soft">Injection Logs</h2>
<div className="glass-input" style={{ height: "300px", padding: "10px", overflowY: "auto" }}>
<pre style={{ fontSize: "12px", color: "#fff", whiteSpace: "pre-wrap", margin: 0 }}>
{lastLog || "No logs yet..."}
</pre>
</div>
<button className="btn btn-primary" style={{ marginTop: "14px" }} onClick={() => setLogsOpen(false)}>Close Logs</button>
</>
) : (
<>
<h2 className="modal-title neon-text-soft">Settings</h2>
{/* Platform */}
<div className="setting-row">
<div className="setting-text">
<div className="setting-title">Platform</div>
</div>
<div className="custom-dropdown-wrap">
<button
className="dropdown-trigger"
onClick={() => setPlatformPickerOpen(p => !p)}
>
<span>{platform === "Epic" ? "Epic Games" : "Steam"}</span>
<span className="dropdown-arrow"></span>
</button>
{platformPickerOpen && (
<div className="dropdown-menu">
{["Epic", "Steam"].map(p => (
<button
key={p}
className={`dropdown-item ${platform === p ? "active" : ""}`}
onClick={() => { setPlatform(p); setPlatformPickerOpen(false); }}
>
{p === "Epic" ? "Epic Games" : "Steam"}
</button>
))}
</div>
)}
</div>
</div>
{/* Theme picker */}
<div className="setting-row">
<div className="setting-text">
<div className="setting-title">Theme</div>
<div className="setting-sub">Accent color</div>
</div>
<div className="theme-swatches">
{THEMES.map(t => (
<button
key={t.id}
className={`theme-swatch ${theme === t.id ? "active" : ""}`}
style={{ "--swatch-color": t.color } as React.CSSProperties}
onClick={() => setTheme(t.id)}
title={t.label}
aria-label={`${t.label} theme`}
/>
))}
</div>
</div>
{/* Auto inject */}
<div className="setting-row">
<div className="setting-text">
<div className="setting-title">Auto Injection</div>
<div className="setting-sub">Injects automatically when RL starts</div>
</div>
<label className="switch">
<input type="checkbox" checked={autoInject} onChange={e => toggleAutoInject(e.target.checked)} />
<span className="switch-ui" />
</label>
</div>
{/* Minimize to tray */}
<div className="setting-row">
<div className="setting-text">
<div className="setting-title">Minimize to tray</div>
</div>
<label className="switch">
<input type="checkbox" checked={minimizeToTray} onChange={e => toggleMinimizeToTray(e.target.checked)} />
<span className="switch-ui" />
</label>
</div>
<div className="btn-stack">
<button className="btn btn-tertiary" onClick={() => { setSettingsOpen(false); setLogsOpen(true); }}>
View Last Injection Log
</button>
<button className="btn btn-secondary" onClick={logout}>Logout</button>
<button className="btn btn-primary" onClick={() => setSettingsOpen(false)}>Close</button>
</div>
</>
)}
</div>
</div>
)}
{/* ── Update modal ── */}
{pendingUpdate && (
<div className="modal-overlay" onClick={() => setPendingUpdate(null)}>
<div className="modal glass-card neon-ring" onClick={e => e.stopPropagation()} style={{ maxWidth: "380px" }}>
<h2 className="modal-title neon-text-soft">Update Available</h2>
<p style={{ margin: "0 0 20px", color: "var(--muted)", fontSize: "14px" }}>
Version <strong style={{ color: "var(--text)" }}>{pendingUpdate.version}</strong> is ready to install.
The app will restart automatically.
</p>
<div className="btn-row">
<button className="btn btn-secondary" onClick={() => setPendingUpdate(null)}>Later</button>
<button className="btn btn-primary" style={{ width: "100%" }} onClick={pendingUpdate.install}>
Update Now
</button>
</div> </div>
</div> </div>
</div> </div>
)}
<main className="panel-wrap"> </div>
<header className="welcome-section">
<h2 className="welcome-text">Welcome, <span className="neon-text-soft">{userData?.globalName || userData?.username || "User"}</span></h2>
<div className="user-id-badge">User #{userData?.userId || "0"}</div>
</header>
<section className="glass-card neon-ring">
<header className="card-header">
<h1 className="headline neon-text">Be anyone, Win everything</h1>
</header>
<div className="form-stack">
<div className="field" id="step-username">
<label className="label">spoofed username</label>
<div className="glass-input">
<input
className="input"
value={spoofedUsername}
onChange={(e) => setSpoofedUsername(e.target.value)}
/>
</div>
</div>
<button
id="step-inject"
className="btn btn-primary"
onClick={inject}
disabled={rlStatus !== "RL Running" && tutorialStep !== 1}
>
{rlStatus === "RL Running" ? "Inject" : "Start Rocket League"}
</button>
<div className="btn-row">
<button className="btn btn-secondary" onClick={() => openUrl(FAQ_URL)}>FAQ</button>
<button className="btn btn-tertiary" onClick={saveConfig}>Save Name</button>
</div>
</div>
<footer className="status-bar">
<div className="status-item">
<span className="status-label">status</span>
<span className="status-value">{status}</span>
</div>
<div className="status-item">
<span className="status-label">game</span>
<span className="status-value">{rlStatus}</span>
</div>
</footer>
</section>
</main>
{(settingsOpen || logsOpen || debugOpen) && (
<div className="modal-overlay" onClick={() => { setSettingsOpen(false); setLogsOpen(false); setDebugOpen(false); }}>
<div className="modal glass-card neon-ring" onClick={e => e.stopPropagation()} style={{ maxWidth: (logsOpen || debugOpen) ? '600px' : '400px' }}>
{debugOpen ? (
<>
<h2 className="modal-title neon-text-soft">System Credits & Debug</h2>
<div className="glass-input" style={{ padding: '15px', marginBottom: '15px' }}>
<div style={{ display: 'grid', gap: '10px', fontSize: '13px' }}>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<span style={{ color: '#aaa' }}>Lead Dev & Owner:</span>
<span className="neon-text-soft">Bits</span>
</div>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<span style={{ color: '#aaa' }}>Dev & Admin:</span>
<span style={{ color: '#fff' }}>Danni</span>
</div>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<span style={{ color: '#aaa' }}>Co-Owner:</span>
<span style={{ color: '#fff' }}>Deniz</span>
</div>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<span style={{ color: '#aaa' }}>Administrator:</span>
<span style={{ color: '#fff' }}>Kairo</span>
</div>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<span style={{ color: '#aaa' }}>Helpers:</span>
<span style={{ color: '#fff' }}>Quinn, SNDR</span>
</div>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<span style={{ color: '#aaa' }}>Tester:</span>
<span style={{ color: '#fff' }}>Emir</span>
</div>
<hr style={{ border: 'none', borderTop: '1px solid rgba(255,255,255,0.1)', margin: '5px 0' }} />
<div style={{ textAlign: 'center' }}>
<button
className="btn btn-secondary"
style={{ width: '100%', marginTop: '5px' }}
onClick={() => openUrl('https://rlidentity.me/discord')}
>
Join Discord (rlidentity.me/discord)
</button>
</div>
</div>
</div>
<button className="btn btn-primary" onClick={() => setDebugOpen(false)}>Close Debug</button>
</>
) : logsOpen ? (
<>
<h2 className="modal-title neon-text-soft">Injection Logs</h2>
<div className="glass-input" style={{ height: '300px', padding: '10px', overflowY: 'auto' }}>
<pre style={{ fontSize: '12px', color: '#fff', whiteSpace: 'pre-wrap' }}>
{lastLog || "No logs yet..."}
</pre>
</div>
<button className="btn btn-primary" onClick={() => setLogsOpen(false)}>Close Logs</button>
</>
) : (
<>
<h2 className="modal-title neon-text-soft">Settings</h2>
<div className="setting-row">
<div className="setting-text">
<div className="setting-title">Platform</div>
</div>
<div className="custom-dropdown-wrap">
<button
className="glass-input dropdown-trigger"
onClick={() => setPlatformPickerOpen(!platformPickerOpen)}
>
<span className="dropdown-value">{platform === "Epic" ? "Epic Games" : "Steam"}</span>
<span className="dropdown-arrow"></span>
</button>
{platformPickerOpen && (
<div className="dropdown-menu glass-card neon-ring">
<button
className={`dropdown-item ${platform === "Epic" ? "active" : ""}`}
onClick={() => { setPlatform("Epic"); setPlatformPickerOpen(false); }}
>
Epic Games
</button>
<button
className={`dropdown-item ${platform === "Steam" ? "active" : ""}`}
onClick={() => { setPlatform("Steam"); setPlatformPickerOpen(false); }}
>
Steam
</button>
</div>
)}
</div>
</div>
<div className="setting-row" id="step-autoinject">
<div className="setting-text">
<div className="setting-title">Auto Injection</div>
<div className="setting-sub">Injects automatically when RL starts</div>
</div>
<label className="switch">
<input type="checkbox" checked={autoInject} onChange={e => toggleAutoInject(e.target.checked)} />
<span className="switch-ui" />
</label>
</div>
<div className="setting-row">
<div className="setting-text">
<div className="setting-title">Minimize to tray</div>
</div>
<label className="switch">
<input type="checkbox" checked={minimizeToTray} onChange={e => toggleMinimizeToTray(e.target.checked)} />
<span className="switch-ui" />
</label>
</div>
<div className="btn-row" style={{ flexDirection: 'column', gap: '10px', marginTop: '10px' }}>
<button className="btn btn-tertiary" onClick={() => { setSettingsOpen(false); setLogsOpen(true); }}>View Last Injection Log</button>
<button className="btn btn-secondary" onClick={logout}>Logout</button>
<button className="btn btn-primary" onClick={() => setSettingsOpen(false)}>Close</button>
</div>
</>
)}
</div>
</div>
)}
{tutorialStep >= 0 && (
<div className="tutorial-overlay">
<div className={`tutorial-spotlight step-${tutorialStep}`} />
<div className={`tutorial-card glass-card neon-ring step-${tutorialStep}`}>
<h2 className="modal-title neon-text">{tutorialSteps[tutorialStep].title}</h2>
<p className="modal-p">{tutorialSteps[tutorialStep].text}</p>
<div className="btn-row">
<button
className="btn btn-secondary"
onClick={() => setTutorialStep(-1)}
>
Skip
</button>
<button
className="btn btn-primary"
onClick={() => {
if (tutorialStep === 2) {
setSettingsOpen(true);
}
if (tutorialStep < tutorialSteps.length - 1) {
setTutorialStep(tutorialStep + 1);
} else {
setSettingsOpen(false);
setTutorialStep(-1);
}
}}
>
{tutorialStep < tutorialSteps.length - 1 ? "Next" : "Finish"}
</button>
</div>
</div>
</div>
)}
</div>
); );
} }