781538313c
use lib/wchar.h for UTF8 conversion (avoid duplication, more aware of wchar_t differences and surrogate pairs)
...
fixes #400
This was SVN commit r7201.
2009-11-16 20:05:03 +00:00
ff15c522fe
implement changes suggested by Philip:
...
- add self-test
- allow decoding UTF8 values beyond BMP (and replace them later)
- quietly replace invalid bytes
This was SVN commit r7187.
2009-11-09 20:53:48 +00:00
450da0aaf7
rename [w]string_to_[w]string UTF8
...
add safer/more portable/less dependent on locale implementation of
wchar_t <-> UTF8
This was SVN commit r7185.
2009-11-09 14:52:51 +00:00
43e26aa3f6
2 more dehydra fixes
...
This was SVN commit r7180.
2009-11-07 12:31:18 +00:00
f432d9d18b
fix dehydra warnings (some of which were dangerous pass-user-string-as-format-string vulnerabilities)
...
This was SVN commit r7177.
2009-11-07 09:32:19 +00:00
378bd89c1d
Annotate some more printf-style functions, for type checking
...
This was SVN commit r7176.
2009-11-06 23:06:50 +00:00
3334c83ce0
Fix build and tests on Linux
...
This was SVN commit r7174.
2009-11-06 18:35:32 +00:00
607ea6f8b4
chip away at gcc errors/warnings
...
This was SVN commit r7172.
2009-11-06 16:15:09 +00:00
6ec9128e78
refactor: move reload functionality into ps/Filesystem to allow reloading non-resource files (e.g. scripts); VFS is now responsible for returning VirtualPath and invalidating the changed file/directory
...
This was SVN commit r7171.
2009-11-06 11:50:04 +00:00
9662666403
more string drudgery
...
- sprintf, snprintf -> sprintf_s (ensures 0-termination of result)
- use %s instead of %hs with sprintf_s to avoid GCC warnings
- convert h_mgr's to_string to unicode
This was SVN commit r7170.
2009-11-06 10:59:10 +00:00
25717ef768
add VirtualPath API to VFS in preparation for moving hotload logic out of library code and into the game. also rename GetRealPath -> RealPath + some cleanup/documentation
...
This was SVN commit r7169.
2009-11-06 01:30:16 +00:00
8fefedb5ae
fix: native and vfs directory paths should end with '/' (more code cares about this now)
...
refactor: simplify dir_watch_Poll interface (returns vector)
wdir_watch: major refactor: use shared_ptr for reference-counting shared
watch state
remove no longer needed path_util functions
This was SVN commit r7168.
2009-11-05 20:46:15 +00:00
b48e877f5b
VFS fixes+refactoring
...
- fix: archive_zip: avoid crash if zip file contains empty filenames
- real_directory: enable dir watch
- refactor vfs_tree interface (move recursive calls into VFS)
- VFS: return text representation instead of only printing it
This was SVN commit r7165.
2009-11-04 17:26:54 +00:00
77d2c67ada
misc. string fixes
...
convert remaining %s to %hs or %ls
use WPRINTF_ARGS on unicode printf functions
fix: __func__ can't be widened via preprocessor (-> revert to char*)
convert remaining external_[directory|file_string to string()
Util: don't mix fwprintf and fprintf
Formation: fix dangling pointer (storing result of c_str())
This was SVN commit r7164.
2009-11-04 15:29:28 +00:00
da3030cfe6
more unicode/string cleanup:
...
- swprintf -> swprintf_s
- use secure_crt's _wfopen_s instead of conversion+fopen
- centralize all MBS <-> WCS conversion in new wchar.cpp (requires
workspace rebuild)
- remove no longer needed os_path
- remove unnecessary fs::wpath / VfsPath constructor casts
- fixed buffer size parameters -> ARRAY_SIZE
This was SVN commit r7162.
2009-11-03 22:27:25 +00:00
8a52113e60
huge cleanup and conversion of most string handling (especially paths) to unicode
...
please note: format strings must be %hs for char* arguments and %ls for
wchar_t*
This was SVN commit r7161.
2009-11-03 21:46:35 +00:00
e257bef5da
Fix even more 64-bit warnings
...
This was SVN commit r7152.
2009-10-05 16:15:51 +00:00
92637c1041
refactoring all PS_RESULT in GUI to PSRETURN/PSERROR
...
closes #128
This was SVN commit r7147.
2009-09-27 15:04:46 +00:00
90f6641c1d
Removing PS_RESULT errors from GUI, return values still need work
...
Affects Ticket #128
This was SVN commit r7145.
2009-09-23 21:16:55 +00:00
cd6a926c14
Fix #293 (Lots of printf format string errors), based on patch from Cygal
...
This was SVN commit r7113.
2009-08-14 18:42:39 +00:00
f4cdd7098c
Fix #251 (Config parser doesn't ignore comments), based on patch from Cygal
...
This was SVN commit r7109.
2009-08-12 15:17:35 +00:00
10cc678ffb
move Paths into separate file (requires update-workspaces)
...
This was SVN commit r7088.
2009-08-08 11:11:26 +00:00
62122370b5
# fix self-test
...
(needed to replace the functionality formerly provided by path_SetRoot)
This was SVN commit r7087.
2009-08-08 11:10:56 +00:00
6b619cfb38
remove obsolete NO_GUI that's just cluttering up the code
...
This was SVN commit r7086.
2009-08-08 10:04:43 +00:00
5c8861adf4
Remove redundant -L linker arguments on non-Windows.
...
Fix some compiler warnings.
Fix missing non-PCH headers.
This was SVN commit r7083.
2009-08-07 17:22:05 +00:00
58ee7038db
Fix CLogger tests
...
This was SVN commit r7080.
2009-08-07 14:25:14 +00:00
5b302658a3
# fix permissions of created directories
...
also took the opportunity to move file_system_posix to file_system since
a further FS abstraction layer = YAGNI. also namespaced
file_system_util.
This was SVN commit r7074.
2009-08-04 19:57:53 +00:00
4a4269824b
Add more vararg error-checking annotation
...
This was SVN commit r7073.
2009-08-04 16:08:41 +00:00
d83945e1e7
Annotate functions that have printf-style format strings, for compile-time type checking (see #293 )
...
This was SVN commit r7072.
2009-08-04 13:31:41 +00:00
bcd47ddcbb
Change default (when no config file is loaded) from fullscreen to windowed
...
This was SVN commit r7069.
2009-08-03 20:22:04 +00:00
36e534fc22
compile fix for non-windows platforms
...
This was SVN commit r7066.
2009-08-02 15:04:52 +00:00
ebac85ee81
# hopefully support non-admin accounts and unwritable directories by moving output folders to home/appdata
...
the old behavior (using directories under binaries/) can be kept by
passing -writableRoot on the command line.
the first game load will be slower than usual due to re-creation of
cached XMBs.
This was SVN commit r7065.
2009-08-02 11:07:42 +00:00
38737202cb
wseh: write the minidump as soon as possible (inspired by http://www.wildfiregames.com/forum/index.php?showtopic=12533 )
...
GameSetup: fix fs::path append (previous code compiled with VC2005 but
is apparently invalid)
This was SVN commit r7064.
2009-08-01 22:01:01 +00:00
c8cfd8b40b
# groundwork for separated data/cache etc. directories (XDG)
...
remove path.cpp (it was based on the premise that all data files lie
below binaries/data)
This was SVN commit r7063.
2009-08-01 19:37:38 +00:00
7976d84a3d
Remove external resources and make log files standalone, to simplify installation
...
This was SVN commit r7062.
2009-08-01 18:16:12 +00:00
4d1ad62e81
# improvements to HPET driver
...
(experimental, use -wNoMahaf command line argument if this causes
breakage)
see #280
This was SVN commit r7058.
2009-08-01 11:22:29 +00:00
cdfb58a62f
Fix some more GCC warnings
...
This was SVN commit r7045.
2009-07-28 09:27:56 +00:00
f5f1d47aed
Fix some GCC -Wextra warnings
...
This was SVN commit r7043.
2009-07-27 18:32:59 +00:00
cd0554c6bc
Fix Linux build warnings
...
This was SVN commit r7034.
2009-07-25 20:35:48 +00:00
6525cfd39e
Patch from #259 : [FreeBSD compat] portability fixes
...
This was SVN commit r7002.
2009-07-16 16:57:59 +00:00
fcf9db0d53
Decode invalid utf-8 more gracefully (invalid bytes becomes U+FFFD)
...
This was SVN commit r6999.
2009-07-16 15:52:18 +00:00
271823cf7e
Decode input as utf-8 in JSI_VFS::ReadFile, JSI_VFS::ReadFileLines
...
This was SVN commit r6998.
2009-07-16 15:51:35 +00:00
af7f2a2300
Add includes of ScriptableComplex.inl to fix link errors in release config
...
This was SVN commit r6988.
2009-07-14 15:11:05 +00:00
ea29b5fac2
# Simplified local configuration changes.
...
default.cfg shouldn't be edited by normal users; local.cfg can be used
for any local tweaks.
Removed old profile files, since they add clutter and aren't useful yet.
This was SVN commit r6919.
2009-06-23 17:48:34 +00:00
c4ae6001f9
fix relics of GPL comment insertion (removing empty description comments and in some cases adding new file descriptions)
...
test_XeroXMB.h: fix warning
This was SVN commit r6851.
2009-05-03 11:47:38 +00:00
Zyi
60e76c01da
Small adjustment to the code.
...
This was SVN commit r6834.
2009-04-21 15:24:04 +00:00
1743645fd3
Simplify the overly-complex CppDoc-breaking file headers
...
This was SVN commit r6832.
2009-04-18 17:51:05 +00:00
c9fa7f13d9
Add GPL header
...
This was SVN commit r6830.
2009-04-18 17:00:33 +00:00
Zyi
ab4b930042
Fixed bugs:
...
- Game crash when taking a "Big Screenshot" on the main menu.
- GUI used to be visible on each of the tiles when taking a Big
Screenshot while playing the game. Removed the GUI all together from the
Big Screenshot.
This was SVN commit r6827.
2009-04-18 15:27:38 +00:00
Zyi
6822796a95
Simplified the logger:
...
- Removed the configurable interestingness from system.cfg.
- InterestingLog contains all warning and errors now.
- Modified and implemented methods in CLogger to write messages,
warnings and errors to the log.
- Modified a warning in CLocale so that the log wouldn't get spammed.
To do:
- Modify all of the logging statements in the source code.
- Remove the current preprocessor directives LOG_INFO, LOG_WARNING and
LOG_ERROR so that they can be used to log messages.
This was SVN commit r6817.
2009-04-11 22:53:33 +00:00