NovaRain
3b29088818
Edited the log messages in LoadOrder.cpp
...
Cleaned up some module headers.
Updated version number in documents.
Updated changelog in sslc document, and removed the mention about
empty statements (it never worked).
2023-06-21 22:21:12 +08:00
phobos2077
3a3760704c
Load order: more informative logging
2023-06-20 20:44:57 +02:00
NovaRain
b619ea3fba
Updated function docs for get_ini_config
2023-06-19 12:15:17 +08:00
NovaRain
ae7921fe26
Some format/textual edits to code
...
* line indents.
* remove trailing spaces.
* use nullptr instead of NULL for pointers.
Edited the error messages of get_ini_config.
2023-06-19 12:14:31 +08:00
NovaRain and GitHub
14f6de0329
Merge pull request #481 from sfall-team/feature/fo-ini-reader
...
INI Config reader:
- Replaced GetPrivateProfile* functions for reading ini with vanilla-based INI reader.
- Changed IniReader classes to read INI files once using new Config class and cache results until GameReset (going to main menu).
- Added metarule to read entire INI file in one operation and return as two-dimensional map array.
- Increased limits for INI strings to 1021.
2023-06-19 11:22:27 +08:00
phobos2077
e33a025c62
get_ini_config: sanitize and validate INI path
2023-06-18 15:01:25 +02:00
phobos2077
20088ffcb1
Save window positions in OnBeforeGameClose
...
- This way we can guarantee sfall has not started to "destruct" yet, so we don't have to rely on the order of destructor calls
2023-06-18 00:41:45 +02:00
phobos2077
cec091bda2
IniReader: Remove ini file from cache when it's changed by SetString
...
- Had to reorganize some code to make this work. Changed how some singletons are created to guarantee destructor calls in correct order (IniReader is constructed first and destructed last, after every other module).
2023-06-17 23:33:37 +02:00
NovaRain
97c2b111ff
Updated the description of ConsoleWindow
...
Simplified ASM code in Premade.cpp a bit.
2023-06-17 21:40:11 +08:00
Vlad and GitHub
1e4bbaedbd
Merge branch 'develop' into feature/fo-ini-reader
2023-06-16 18:13:12 +02:00
NovaRain and GitHub
fce35c7e14
Merge pull request #480 from sfall-team/feature/debug-log-overflow-fix
...
Fixed buffer overflow when DebugMode is enabled and printing messages longer than 259 via script.
2023-06-16 23:37:59 +08:00
phobos2077
4d19fa2d60
Use single function for all string-to-integer conversions for consistent behavior
...
- Reading INI from within sfall as well as get_ini_setting opcode
- calling atoi opcode
- Support auto-detecting 0x, 0 and 0b for hex, octal and binary representations respectively
2023-06-16 16:06:24 +02:00
phobos2077
0a6a604abc
Add support for using 0b prefix in INI files to denote binary base (consistent with GetPrivateProfile*)
2023-06-16 15:10:25 +02:00
phobos2077
2cef5310e2
Rewrite console writing
...
- Separate debug_msg and display_msg as separate Source
- Merge writing to one function with proper filtering
2023-06-16 14:57:41 +02:00
phobos2077
fe7aa9ae04
Removed unused code
2023-06-16 02:16:25 +02:00
phobos2077
b36771da48
Increase maximum size of one INI line to 1023 and fix potential crash in IniReader::getString()
...
- Now can read strings up to 1021 from INI files using all available functions (get_ini_string, get_ini_section, get_ini_config)
2023-06-16 00:53:03 +02:00
phobos2077
ad6491d61e
Increase array string limit to 1024 bytes
...
- Because it is now safe to log longer stuff
2023-06-16 00:16:36 +02:00
phobos2077
4de5de6a0c
Restore code page option from NovaRain
2023-06-16 00:02:55 +02:00
phobos2077
347b4a3ecb
Fix buffer overflow when DebugMode is enabled and printing messages longer than 259 via script
...
- Refactoring: moved ConsoleWindow into separate file
2023-06-15 23:57:41 +02:00
phobos2077
0b161c7374
Rename metarule for consistency with other ini-related functions, add to functions.yml
2023-06-15 21:48:06 +02:00
phobos2077
7bbc15ab0b
Made Config queries case-insensitive for both section names and keys to match GetPrivateProfile* behavior
2023-06-15 21:01:24 +02:00
phobos2077
ac02971d61
get_ini_section(s): switched to using Config class
...
- Load configs via IniReader to take advantage of it's cache
2023-06-15 19:28:52 +02:00
phobos2077
e4ea3645d6
Add config_load metarule to efficiently load INI into array and also load INI from DAT
...
- Refactoring: moved all ini-related handlers into new cpp
- Moved modified_ini opcode to C++
2023-06-15 19:01:07 +02:00
NovaRain
f9dc7a3e25
Added code page setting for the console window
2023-06-15 23:27:07 +08:00
phobos2077
3f7ce8c412
Custom Config parser based on Vanilla & Fallout CE
2023-06-15 15:30:46 +02:00