Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
Kieaer committed Aug 30, 2023
1 parent d4b3b77 commit b5122ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/library.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
use std::fs;
use std::fs::File;
use std::io::Read;

use chrono::{DateTime, Local, NaiveDateTime, TimeZone};
use chrono::format::{DelayedFormat, StrftimeItems};
use dirs::config_dir;

use crate::structs::{RipperData, UserData};

pub fn convert_time<'a>(value: u64) -> DelayedFormat<StrftimeItems<'a>> {
Expand Down
7 changes: 3 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{fs, ptr, thread};
use std::cell::Cell;
use std::collections::HashMap;
use std::fs::File;
use std::io::{BufRead, BufReader, Read, stdin};
use std::io::{BufRead, BufReader, Read};
use std::path::PathBuf;
use std::process::{Command, exit};
use std::rc::Rc;
Expand All @@ -21,7 +21,6 @@ use reqwest::blocking::{Client, RequestBuilder};
use reqwest::cookie::Cookie;
use reqwest::header::{AUTHORIZATION, COOKIE, HeaderMap, HeaderValue, USER_AGENT};
use rodio::{Decoder, OutputStream, Source};
use rpassword::read_password;
use rusqlite::Connection;
use self_update::cargo_crate_version;
use serde_json::{json, Value};
Expand All @@ -32,7 +31,7 @@ use winapi::shared::minwindef::{DWORD, MAX_PATH};
use winapi::um::tlhelp32::{CreateToolhelp32Snapshot, Process32First, Process32Next, PROCESSENTRY32};

use crate::library::{convert_time, get_id, get_ripper, get_user, set_ripper, set_user};
use crate::structs::{AvatarData, AvatarList, AvatarItem, PcInfo, RipperData, SaveData, SearchData, UserData};
use crate::structs::{AvatarData, AvatarItem, AvatarList, RipperData, SaveData, SearchData, UserData};

mod structs;
mod library;
Expand Down Expand Up @@ -631,7 +630,7 @@ fn play_audio() {

fn main() -> Result<(), Box<dyn std::error::Error>> {
print_author();
// auto_update().expect("업데이트 확인 오류");
auto_update().expect("업데이트 확인 오류");

fs::create_dir_all(config_dir().unwrap().join("VRCX/Anti-Ripper")).expect("폴더 생성 오류");

Expand Down
3 changes: 2 additions & 1 deletion src/structs.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![allow(non_snake_case)]
use serde::{Deserialize, Deserializer, Serialize};

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct UserData {
Expand Down

0 comments on commit b5122ed

Please sign in to comment.