Commit Graph

63 Commits

Author SHA1 Message Date
PatrickvL 9cf3591393 Turn Cxbx version define into a variable
This is intended to reduce the number of files that need to be
recompiled when updating a repository.
2019-11-18 14:44:44 +01:00
Luke Usher 422e95db88 Remove all RenderState/TextureState Patches, bar one.
With this work, all of these patches are no longer required, and
instead, are replaced with a RenderStateConverter and
TextureStateConverter object

One single render state patch (D3DDevice_SetRenderState_Simple) is still
required, as that bypasses the D3D__RenderStates array in some XDK
versions.
2019-10-03 19:03:37 +01:00
RadWolfie 19ca5361af fix new GUI input breakage for loader projects to compile 2019-09-27 11:08:21 -05:00
RadWolfie f38dc91075 replace std's wstring_convert to SDL's iconv library 2019-09-26 10:19:01 -05:00
PatrickvL a6c0353c5b Fix a large part of XTL-hell (#1731)
* Rename g_CurrentXboxVertexShaderHandle to g_Xbox_VertexShader_Handle

* Remove CxbxDrawContext.XboxVertexShaderHandle field, and replaced reads from this field by g_Xbox_VertexShader_Handle (since all writes to this field used that as source)

* Removed commented-out #include's

* Removed duplicate DEF_VSH_* defines, replaced usage by existing X_D3DVSD_*() defines.

* Removed commented-out #include's from src/vsbc

* Removed nearly all "namespace XTL"-wrappers around #includes; Instead, wrap applicable contents of these included files in namespace XTL. Removed all now-obsolete "XTL::" prefixes.

* Moved all host D3D9 symbols outside of namespace XTL (finally!)

* Removed all "using namespace XTL;" occurences (except one, which is marked with a TODO)

* Restored Unix EOL style (to avoid large diffs with upstream)

* Moved CxbxInitAudio outside XTL namespace (this was the last Cxbx* symbol in XTL)

* Removed final "using namespace XTL" occurence by cleaner wrapping of logging intrinsics inside and outside namespace XTL.

* Prefix a few Xbox types with X_ (and avoid compile-error by removing the now-obsolete duplicate of X_D3DCALLBACK).
Also nicely indent all Direct3D9 alias defines, introduced when porting from Direct3D8. Who knows, one day we might re-define them once again to port to more recent Direct3D versions?

* Made EmuXTL.h obsolete, by #include'ing specific headers instead of it.

* Removed unused #include's of EmuFS.h

* Remove #pragma once, when there's already an include guard present.

* Delete EmuXTL.h and XOnline.cpp, keep but disable XOnline.h for documentation purposes.

* Fix all compiler warnings that have no functional impact. What's left requires more research

* Remove GetVersion, retain Wine check
2019-09-24 16:25:52 -05:00
ergo720 d8b0075c93 New input gui (#1713) 2019-09-05 16:10:09 -05:00
RadWolfie e646eada8d fix universal error message output 2019-07-20 01:47:46 -05:00
Luke Usher f36cd0540a Implement Vertex Buffer Caching 2019-06-26 16:37:18 +02:00
RadWolfie c2c2f01e55 fix the code style from previous pull request #1613
Plus make github happy with end of file.
2019-05-16 12:43:48 -05:00
Luke Usher 863b999841 Define MSVC default build configruations, build paths, etc 2019-05-16 12:02:16 +01:00
Luke Usher 9553eb4add Allow Cxbx-R to compile (without debugger) if a C# compiler isn't found 2019-05-16 10:59:15 +01:00
RadWolfie 2c8f2d546f disable supress regeneration
Best to keep top-level inspect if there is new changes to CMakeLists file and its children.
2019-05-13 09:47:08 -05:00
RadWolfie e815f42e4c add cmake support 2019-05-10 19:07:58 -05:00