Commit graph

4506 commits

Author SHA1 Message Date
James Benton
efe354b398 Fix missing =1; 2015-11-29 11:02:55 -08:00
James Benton
d03f0c4ad6 Return nullptr instead of false! 2015-11-29 11:02:04 -08:00
James Benton
9f44c2fb72 Cheeky rvalues. 2015-11-29 11:02:04 -08:00
James Benton
bf71ae092a Add some stubs for posix filesystem. 2015-11-29 11:02:04 -08:00
James Benton
8fd90ce3f2 Add header for size_t to input.h 2015-11-29 11:02:04 -08:00
James Benton
5e95491b0c Fix copy initialisation. 2015-11-29 11:02:04 -08:00
James Benton
e4a120830b I love executable files 2015-11-29 11:02:04 -08:00
James Benton
4a20df80fe Update CMakeLists 2015-11-29 11:02:04 -08:00
James Benton
a2a5f6bf2a Add missing "override" 2015-11-29 18:56:51 +00:00
James Benton
c7cd804137 Oopsy file name. 2015-11-29 18:43:40 +00:00
James Benton
f0c603b6f9 Replace OSSprintfFromSystem with OSStringFromSystem.
Use fmt::format to get a formatted std::string to pass in.
2015-11-29 18:16:46 +00:00
James Benton
85ae2cee6e Rewrite file system.
Now using handles for open files / folders.
Close #79.
2015-11-29 18:09:31 +00:00
James Benton
95bcca1ff3 debuglog: Provide debug printf on non-MSVC targets 2015-11-29 12:49:27 +00:00
James Benton
534e9f890c glsl_generator: Provide default values for GenerateState members 2015-11-29 12:49:26 +00:00
James Benton
e3ed87a2fb coreinit_fs: replace strcpy_s usage with std::string::copy 2015-11-29 12:49:26 +00:00
archshift
eddf4ed631 gx2_event: don't use deleted std::atomic constructors 2015-11-29 12:49:25 +00:00
James Benton
57a60d9811 Const a bunch of references. 2015-11-29 12:43:05 +00:00
James Benton
74bd758f35 virtual_ptr: Explicitly cast to ppcaddr_t in initialiser 2015-11-29 12:43:05 +00:00
James Benton
70b92e6390 opengl_shader: use fmt::format instead of sprintf_s 2015-11-29 12:43:04 +00:00
archshift
d8d8708523 coreinit_debug: use format_string instead of snprintf 2015-11-29 12:43:04 +00:00
James Benton
91e52ef9a8 strutils: Add format_string.
Basically a sprintf to a std::string
2015-11-29 12:43:03 +00:00
archshift
18c1193c25 latte: explicitly disable copy constructor
std::vector<std::unique_ptr> is not copyable, so trying to use
the copy constructor only leads to compiler errors.
2015-11-29 12:43:03 +00:00
archshift
cb0511733d Use std::runtime_error instead of gsl-internal fail_fast 2015-11-29 12:43:02 +00:00
James Benton
7357c8bf08 Use fmt::MemoryWriter for ppcinvokelog 2015-11-29 12:43:02 +00:00
James Benton
8af621c488 Remove static from all "static inline" declarations.
Static is implied when using inline.
2015-11-29 12:43:01 +00:00
archshift
9a18eb1ecf Use explicit std::max template arguments in various places 2015-11-29 12:08:34 +00:00
archshift
8b0c1439aa ppcinvokeresult: fix function returning void value, void specialization 2015-11-29 12:08:00 +00:00
archshift
3614ee4671 Add some more missing include files 2015-11-29 11:59:54 +00:00
archshift
bbf6390e74 DisassembleState: provide default values to members 2015-11-29 11:59:41 +00:00
archshift
628607d1a9 Add missing header include for size_t 2015-11-29 11:58:43 +00:00
archshift
adda1ea428 instructiontable.cpp: remove brackets around scalar strings 2015-11-29 11:58:15 +00:00
James Benton
0c84bc7761 Include pthread.h header for platform_posix_thread 2015-11-29 11:57:58 +00:00
James Benton
cb00b2198f Disable debugnet on non-windows platforms.
Is tied to Windows socket implementation.
2015-11-29 11:57:57 +00:00
archshift
184d583233 CoreState: don't use deleted atomic_bool constructor 2015-11-29 11:57:57 +00:00
archshift
a9b791bc48 Provide CMake build system 2015-11-29 11:49:54 +00:00
James Benton
df923a6518 fuzztests: Remove temporary debug code. 2015-11-29 11:48:47 +00:00
James
cc861457a3 Merge pull request #100 from archshift/not-op
coreinit_alarm: apply not to entire if statement, not left side
2015-11-29 03:39:43 -08:00
archshift
7d38b16a8e coreinit_alarm: apply not to entire if statement, not left side
The previous functionality would be analogous to:
```
if ((!alarm->state) == OSAlarmState::Set) {
	...
}
```
2015-11-28 19:06:07 -08:00
Emmanuel Gil Peyrot
c6f6e7b62c Remove executable bit on source files which shouldn’t be executable. 2015-11-28 18:29:20 +00:00
James Benton
09e91041ec jit_internal: Use using instead of typedef. 2015-11-28 18:02:36 +00:00
James Benton
056df3daa8 Remove unused Windows.h 2015-11-28 18:02:36 +00:00
archshift
099ce0ea08 main.cpp: work around docopt bug 31
Details: Parser does not correctly identify option description if on new line
2015-11-28 10:02:28 -08:00
archshift
ea8f4d6d06 statedbg.h: add some missing header files 2015-11-28 10:02:27 -08:00
James Benton
0a81270335 Use thread_local instead of __declspec(thread) for tCurrentCore. 2015-11-28 17:54:33 +00:00
archshift
89184b7e0e fixup! Don't assume MSVC's ability to take a reference to an lvalue 2015-11-28 09:54:23 -08:00
archshift
ef76753642 Don't assume MSVC's ability to take a reference to an lvalue 2015-11-28 09:54:23 -08:00
archshift
040c39983a Replace usage of _rotl with cross-platform implementation from Citra 2015-11-28 09:48:18 -08:00
archshift
318b8fd6de Replace usage of _BitScanReverse with cross-platform implementation 2015-11-28 09:45:17 -08:00
archshift
7609ee9b34 Replace usages of sprintf_s, vsprintf_s, _strdup
Defined them to POSIX signatures to be somewhat portable.
2015-11-28 09:25:47 -08:00
archshift
d62dc2f2d9 debugnet: replace huge if blocks with switch blocks
It's neater and easier for the compiler to optimize into a LUT.
2015-11-28 09:18:34 -08:00