Robert Müller
569753125e
Add IStorage::NumPaths
to get number of storage locations
2023-07-03 20:06:39 +02:00
Robert Müller
fd98ed0295
Add IStorage::RemoveFolder
...
Wrapper for `fs_removedir`.
2023-03-25 16:58:51 +01:00
Robert Müller
f80e962888
Add IStorage::FileExists
and IStorage::FolderExists
...
As wrappers around `fs_is_file` and `fs_is_dir`.
2023-01-22 17:22:11 +01:00
Robert Müller
6e28ca6fe4
Extract method IStorage::GetBinaryPathAbsolute
2023-01-02 15:29:43 +01:00
Robert Müller
7ae5b1474a
Add TYPE_ALL_OR_ABSOLUTE
and TYPE_SAVE_OR_ABSOLUTE
storage types
...
The types are translated to `TYPE_ALL`/`TYPE_SAVE` respectively if a given path is relative and to `TYPE_ABSOLUTE` if a path is absolute.
These types are only supported with the `OpenFile`, `ReadFile`, `ReadFileStr` and `GetCompletePath` methods.
This reduces duplicate code when calling the methods.
2022-11-20 16:07:40 +01:00
Robert Müller
896dd4ecd4
Add IStorage::FindFiles
to find all files with a specific name
...
This function searches in all subfolder of the given folder and fills the given `std::vector` with all files with the given filename.
A `std::set` is used to prevent duplicate entries when a file with the same path is present in multiple storage locations. In that case we only need the path once, as we only use it against the highest priority storage location anyway.
2022-11-05 15:42:39 +01:00
Robert Müller
c1c8797f84
Add IStorage::ReadFile
and ReadFileStr
:
...
Storage wrappers around `io_read_all` and `io_read_all_str`.
2022-06-16 10:19:36 +02:00
ChillerDragon
3667061b68
Use nullptr in generated and editor
...
-Wzero-as-null-pointer-constant
2022-06-13 18:28:13 +02:00
def
790c1cc0aa
Switch new players to DDNet config dir, support Teeworlds as fallback
...
This way new players will get DDNet directory, old ones can switch
directory if they want, or keep using the old one.
If we ever enforce a switch in a future version, this will make it
easier since older DDNet versions will also support the DDNet directory
already.
2022-04-25 09:50:45 +02:00
def
1a02a20fa6
Add IStorage::FormatTmpPath static method
...
Not sure I prefer it, but now it's done. Any opinions?
2021-12-20 16:12:15 +01:00
ChillerDragon
3eb3dcd48b
Make use of IO_MAX_PATH_LENGTH
...
Inspired by
0a7d0fee7c
2021-09-13 12:14:50 +02:00
Robert Müller
4a375242c5
fix fs_listdir and fs_listdir_fileinfo with unicode on windows
2021-08-23 12:49:15 +02:00
heinrich5991
4301ffab58
Give tests their own playground IStorage
...
Also add a function to clean it up after the test.
2021-05-14 01:00:41 +02:00
def
3be8a592e5
Run clang-format
...
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:
$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00
def
f7b37eaf6a
clang-format fixes
2020-09-10 20:16:09 +02:00
def
90f3199d98
Implement opening server on Windows (reading autoexec_server.log not working yet)
2020-09-10 20:13:01 +02:00
def
6f9cfd5af1
Increase MAX_PATH_LENGTH to support our own downloadedmaps names
2019-03-12 18:43:03 +01:00
heinrich5991
22be1be389
Fix and rename the CEditor::ExtractName
function
...
Fixes #846 .
2017-08-30 13:59:42 +02:00
def
f2444b0de7
Add map_diff tool to compare tile layers of map versions
2017-07-12 20:15:00 +02:00
east
675c6eb1e0
Demo browser column listbox added
2015-08-27 15:05:24 +02:00
heinrich5991
d13ebf93a2
Add config_store
and config_retrieve
tool
2015-08-27 12:55:35 +02:00
def
d835826461
Use proper path for autoupdater on *nix
2015-03-14 20:01:18 +01:00
oy
4073520214
cleaned up content folder creation. Closes #845
2012-01-09 01:38:45 +01:00
oy
bafd22ebe7
show path in the editor file dialog. Closes #786
2012-01-08 13:14:02 +01:00
oy
06115dd49d
added "Whitespace and line Endings cleanup" by GreYFoX
2011-04-13 20:37:12 +02:00
oy
088ec3e2f3
made the client's map search work with sub folders. Closes #254
2011-02-21 11:23:30 +01:00
oy
d30dd9da8f
added Storage function to move/rename files by Batchyx
2010-12-08 00:09:18 +01:00
Sworddragon
fc9211c777
Updated copyrights
2010-11-20 21:26:06 +01:00
oy
85fd272846
added the possibility to create a new folder within the editor's save file dialog
2010-10-16 18:33:54 +02:00
oy
3a98f7a048
added mod system. Closes #34
2010-10-06 23:07:35 +02:00
oy
7e0b37e06c
fixed that it checks the current dir for demos too
2010-09-24 13:38:03 +02:00
Choupom
fcfaa8389f
added Remove button in demos browser ( #66 )
2010-09-05 17:40:51 +02:00
oy
665205327d
added lost datadir override feature
2010-08-05 20:26:03 +02:00
Magnus Auvinen
72c06a2589
copied refactor to trunk
2010-05-29 07:25:38 +00:00