1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 14:38:30 +02:00
VVVVVV/desktop_version/src
Dav999-v b884b7e4e9 Replace TiXmlDocument load and save functions by PHYSFS
The TinyXml functions to load and save files don't properly support
unicode file paths on Windows, so in order to support that properly, I
saw no other option than to do the actual loading and saving via PHYSFS
(or to use the Windows API on Windows and retain doc.LoadFile and
doc.SaveFile on other OSes, but that'd be more complicated and
unnecessary, we already have PHYSFS, right?).

There are two new functions in FileSystemUtils:
bool FILESYSTEM_saveTiXmlDocument(const char *name, TiXmlDocument *doc)
bool FILESYSTEM_loadTiXmlDocument(const char *name, TiXmlDocument *doc)

Any instances of doc.SaveFile(<FULL_PATH>) have been replaced by
FILESYSTEM_saveTiXmlDocument(<VVVVVV_FOLDER_PATH>, &doc), where
<FULL_PATH> included the full path to the saves or levels directory,
and <VVVVVV_FOLDER_PATH> only includes the path relative to the VVVVVV
directory.
When loading a document, a TiXmlDocument used to be created with a full
path in its constructor and doc.LoadFile() would then be called, now a
TiXmlDocument is constructed with no path name and
FILESYSTEM_loadTiXmlDocument(<VVVVVV_FOLDER_PATH>, &doc) is called.
2020-01-12 10:44:11 -05:00
..
BinaryBlob.cpp Fix warnings raised by GCC 8 2020-01-11 08:53:32 -05:00
BinaryBlob.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
BlockV.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
BlockV.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
editor.cpp Replace TiXmlDocument load and save functions by PHYSFS 2020-01-12 10:44:11 -05:00
editor.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Ent.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Ent.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Entity.cpp Simplify std::vector initializations 2020-01-12 10:29:17 -05:00
Entity.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Enums.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
FileSystemUtils.cpp Replace TiXmlDocument load and save functions by PHYSFS 2020-01-12 10:44:11 -05:00
FileSystemUtils.h Replace TiXmlDocument load and save functions by PHYSFS 2020-01-12 10:44:11 -05:00
Finalclass.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Finalclass.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Game.cpp Replace TiXmlDocument load and save functions by PHYSFS 2020-01-12 10:44:11 -05:00
Game.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Graphics.cpp Use NULL instead of nullptr 2020-01-11 11:33:36 -05:00
Graphics.h fix uninitialized member vars everywhere 2020-01-10 21:06:59 -05:00
GraphicsResources.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
GraphicsResources.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
GraphicsUtil.cpp Fix warnings raised by GCC 8 2020-01-11 08:53:32 -05:00
GraphicsUtil.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Input.cpp Replace TiXmlDocument load and save functions by PHYSFS 2020-01-12 10:44:11 -05:00
Input.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
KeyPoll.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
KeyPoll.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Labclass.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Labclass.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Logic.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Logic.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
main.cpp fix uninitialized member vars everywhere 2020-01-10 21:06:59 -05:00
MakeAndPlay.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Map.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Map.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Maths.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Music.cpp fix uninitialized member vars everywhere 2020-01-10 21:06:59 -05:00
Music.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Network.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Otherlevel.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Otherlevel.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
preloader.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
preloader.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Screen.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Screen.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Script.cpp Simplify std::vector initializations 2020-01-12 10:29:17 -05:00
Script.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Scripts.cpp fix Victoria typo "scentists" in the Secret Lab 2020-01-10 22:41:15 -05:00
SoundSystem.cpp add myself to the contributors file, fix formatting 2020-01-10 15:07:29 -07:00
SoundSystem.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Spacestation2.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Spacestation2.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
SteamNetwork.c Add OpenBSD support 2020-01-11 00:25:31 -05:00
TerminalScripts.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Textbox.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Textbox.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
titlerender.cpp Correct "seperately" to "separately" 2020-01-10 20:46:25 -05:00
titlerender.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Tower.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
Tower.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
UtilityClass.cpp Use SDL_HasIntersection for UtilityClass::intersects 2020-01-12 10:25:22 -05:00
UtilityClass.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
WarpClass.cpp Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00
WarpClass.h Hello WWWWWWorld! 2020-01-08 10:37:50 -05:00