-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
1 parent
eff666f
commit bd44d0d
Showing
8 changed files
with
72 additions
and
97 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#define TELNETPASS_SETTING "telnet_pass" | ||
|
||
#define NTNET_RADIUS_MULTIPLIER config.ntnet_radius_multiplyer | ||
#define NTNET_SPEED_LIMITER config.ntnet_speed_limiter |
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
20 changes: 20 additions & 0 deletions
20
infinity/code/modules/modular_computers/file_system/configuration_data.dm
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/datum/computer_file/data/config | ||
filetype = "CFG" | ||
do_not_edit = 1 | ||
|
||
/datum/computer_file/data/config/proc/get_setting(var/setting_name) | ||
. = lowertext(replacetext(stored_data, " ", "")) | ||
. = splittext(stored_data, "<br>") | ||
for(var/i in .) if(copytext(i, 1, length(setting_name) + 1) == setting_name) | ||
i = splittext(i, ":") | ||
if(i) . = i[2] | ||
break | ||
if(!.) . = null | ||
|
||
/datum/computer_file/data/config/main | ||
filename = "config" | ||
|
||
/datum/computer_file/data/config/main/New() | ||
. = ..() | ||
stored_data += "[TELNETPASS_SETTING]:ROOT@[rand(1000, 9999)]<br>" | ||
|
This file was deleted.
Oops, something went wrong.