-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
456 additions
and
190 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
use std::mem::size_of; | ||
|
||
use crate::structs::{ServerList, ServerName}; | ||
use crate::structs::{server_list::ServerList, server_name::ServerName, strdef::Strdef}; | ||
|
||
pub const LANGS_FOLDER: &str = "Lang"; | ||
|
||
pub const SERVER_LIST_FILE: &str = "serverlist.bin"; | ||
pub const SERVER_NAME_FILE: &str = "sn.bin"; | ||
pub const STRDEF_FILE: &str = "strdef.bin"; | ||
|
||
pub const SERVER_LIST_KEY_LEN: usize = 63; | ||
|
||
pub const SERVER_LIST_KEY: [u8; SERVER_LIST_KEY_LEN] = [ | ||
0xc1, 0xb6, 0xc0, 0xcc, 0xc0, 0xd3, 0xc6, 0xd1, 0xc6, 0xae, 0xbe, 0xcf, 0xc8, 0xa3, 0xc8, 0xad, | ||
0xc0, 0xdb, 0xbe, 0xf7, 0xc0, 0xbb, 0xc0, 0xa7, 0xc7, 0xd1, 0xbd, 0xba, 0xc5, 0xa9, 0xb8, 0xb3, | ||
0xc6, 0xae, 0xc0, 0xd4, 0xb4, 0xcf, 0xb4, 0xd9, 0xb8, 0xb8, 0xc7, 0xd1, 0xb1, 0xdb, 0xb7, 0xce, | ||
0xbe, 0xcf, 0xc8, 0xad, 0xc8, 0xad, 0xc7, 0xd2, 0xc1, 0xd9, 0xa4, 0xbb, 0xa4, 0xbb, 0x00, | ||
]; | ||
|
||
pub const STRDEF_MESSAGES_LEN: usize = 2000; | ||
|
||
pub const SERVER_LIST_SIZE: usize = size_of::<ServerList>(); | ||
pub const SERVER_NAME_SIZE: usize = size_of::<ServerName>(); | ||
pub const STRDEF_SIZE: usize = size_of::<Strdef>(); |
Oops, something went wrong.