Commit Graph

45 Commits (master)

Author SHA1 Message Date
Evil Eye abb120b439 Don't log a warning for reading to the end of the subrecord 4 years ago
jvoisin a35eae3dd1 Fix a read head-buffer-overflow in esm
The check forgot to account for the terminal zero.
4 years ago
jvoisin 54adb9cbed Fix an off-by-one in loadscpt 4 years ago
Andrei Kortunov a68d9aed4c Fix issues, found by CoverityScan 5 years ago
capostrophic 0467e8ee15 Avoid heap corruption while reading SCVR (bug #4680) 5 years ago
Andrei Kortunov 2fc819cdae Encode ID's in all places to UTF-8 (bug #3977) 5 years ago
elsid c91deaf7af
Use std::vector::data method to avoid reference binding to null pointer 6 years ago
jvoisin ca8744af56 Fix crash in the ESM reader, when SCVR has no variable names
Fixes bug [#4678](https://gitlab.com/OpenMW/openmw/issues/4678)
The `loadSCVR` method assumes that the list of variable
names won't be empty, which it might.
Instead of crashing, we show a warning and ignore the record.
6 years ago
Andrei Kortunov 1452684d9e Use new logging system for components 6 years ago
MiroslavR 06dc94552f Log a warning if size in SCHD (script header) does not match SCDT (bytecode) size instead of failing 8 years ago
Roman Proskuryakov d5dfa89060 Rewrite NAME_T into FIXED_STRING. 9 years ago
scrawl fc8e40889d Move common subrecord definitions (NAME, DELE) to defs.hpp 9 years ago
Stanislav Bas f9b0b7ede5 Make saving of deleted ESM records more consistent 10 years ago
Stanislav Bas 4a16eba716 Make deleted flag a parameter of load/save methods (instead of a record member) in ESM records 10 years ago
Stanislav Bas ad353e6dd0 Refine DELE handling in ESM records. Add position-independent DELE search 10 years ago
Stanislav Bas 7ecb54a776 Set Deleted flag to false when initializing ESM records 10 years ago
Stanislav Bas d2c15647a3 Add NAME and DELE handling to Script record 10 years ago
scrawl 236d628884 Merge branch 'master' of https://github.com/OpenMW/openmw into osg
Conflicts:
	apps/opencs/model/doc/document.cpp
	apps/opencs/model/doc/documentmanager.cpp
	components/CMakeLists.txt
	components/bsa/resources.cpp
	components/nif/data.hpp
	components/nif/node.cpp
	components/nifogre/mesh.hpp
	components/nifogre/ogrenifloader.cpp
	components/nifogre/particles.cpp
10 years ago
scrawl 8f0ab7d09f ESM component no longer relies on Ogre DataStreams 10 years ago
scrawl 49d912e5b6 Don't rely on subrecord order part 2
Nice side effects:
 - Subrecord name comparison now uses magic number instead of string (faster)
 - Improves the error message for unknown subrecords: will print the record in question instead of failing to read the next record with a strange error
10 years ago
scrawl e203127952 ESSImport: read script variables (not converted yet) 10 years ago
scrawl 031eec4550 Starting ESS importer for Morrowind save files 10 years ago
scrawl 3f0bc6eecb Ignore extra bytes after the SCVR string list (Fixes #2184) 10 years ago
scrawl dec9ffdb6c ESM: Make sure to clear old list when a list is overwritten by another content file (Fixes #1932) 10 years ago
Marc Zinnschlag d1d861e1be Merge branch 'run'
Conflicts:
	apps/opencs/model/world/columns.cpp
	apps/opencs/model/world/columns.hpp
	apps/opencs/model/world/data.cpp
	components/CMakeLists.txt
10 years ago
Marc Zinnschlag bf6150d009 allow project scope scripts 10 years ago
scrawl 1c178768f5 Allow Script records with missing SCDT (precompiled code, not used anyway)
Not sure on the exact conditions, but this was missing in a plugin that I made in the TES-CS, while vanilla MW would load it just fine.
10 years ago
cc9cii df87859d7c Move the workaround to loadscpt.cpp as per feedback comments. 10 years ago
Marc Zinnschlag ee3acc31a8 minor correction to previous commit 11 years ago
cc9cii c43bd3c345 Continue loading esm after detecting string table overflow condition. Should resolve bug #1774. 11 years ago
cc9cii b36bb58e8c Bug #1324: Artem's solution 11 years ago
Marc Zinnschlag bf4ffe94dc fixed a memory leak in the script record 11 years ago
Marc Zinnschlag c42e74dadf make 4 byte record type accessable from record struct 11 years ago
Marc Zinnschlag 874ce26bef added missing consts to record save functions 11 years ago
Marc Zinnschlag ff1d908af4 added script table 12 years ago
greye 8691eac557 resolve Script::mData.mName -> mId, resolve moving ESMStore 12 years ago
greye 5ac54d1fff alter ESM::Script for storing id as std::string 12 years ago
greye 1339787863 remove underscores from filenames in esm 12 years ago
greye 7606ebafd6 resolving conflicts, minor update 12 years ago
Alexander "Ace" Olofsson a74aeace73 Can now save strings with proper encoding, byte-perfect clones up until land records 13 years ago
Alexander "Ace" Olofsson f16a9ce5ed Working on making output identical to input. 13 years ago
Alexander "Ace" Olofsson fc8c75ab89 Esmtool can now clone an esm file in such a way that it can read it back again afterwards. 13 years ago
Alexander "Ace" Olofsson b81ac363fc Write names with a small sanity check 13 years ago
Alexander "Ace" Olofsson ba602929ef Adding basic save functions to all record types. 13 years ago
Nikolay Kasyanov fcfe267fc9 Refactored remaining headers in components/esm except defs.hpp.
Removed obsolete *.cpp files.
14 years ago