From ee71943e7433059d9326867d5dd62385ab76ab58 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Thu, 16 Jan 2025 01:26:49 +0800 Subject: first commit --- src/launcher/config.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/launcher/config.rs (limited to 'src/launcher/config.rs') diff --git a/src/launcher/config.rs b/src/launcher/config.rs new file mode 100644 index 0000000..fafc229 --- /dev/null +++ b/src/launcher/config.rs @@ -0,0 +1,13 @@ +pub struct Config { + pub username: String, + pub resolution: (u32, u32), +} + +impl Config { + pub fn new(username: &str, resolution: (u32, u32)) -> Self { + Config { + username: username.to_string(), + resolution, + } + } +} \ No newline at end of file -- cgit v1.2.3-70-g09d2