Commit Graph

77 Commits

Author SHA1 Message Date
RadWolfie f7069152c4 Fixed missing GUI log indication 2018-08-17 02:35:38 -05:00
ergo720 82f429f3c9 Fixed LoggedModules bug + refactored log gui + allow to print debug messages also on release builds 2018-08-14 13:50:58 +02:00
ergo720 469f7e9f43 Improvements 2018-08-13 20:50:54 +02:00
ergo720 26c61b5381 Added log window to GUI 2018-08-13 20:50:54 +02:00
RadWolfie 07a05f0e52 Use settings ini file method (#1370)
* Import SimpleIni module

* Rename XBController to DInputController

Since it's only about configure DirectInput support.

* Append to previous 2 commits

* Initialize Settings class

* Append to previous commit

* Properly use EmuXTL header instead of EmuShared

* Move audio variables into setting class

* Move video variables into Settings class

* Append to previous commit

* Move hack variables into Settings class

* Append previous commit

* Append to third previous commit

* Move xbox controller port map to Settings class

* Append to second previous commit

* Move DirectInput Controller map to Settings class

* Remove old XInput member variable

* Append to second previous commit

* Tiny Fixup

* Remove Load/Save from EmuShared class

* Move both GUI and emulate/core to Settings class

* Oops, append to DirectInput controller's commit(s)

* Fix spaces to tab plus remove useless extra spaces

* Code format fixes

* Fix EmuShared's Set____ function to include const type.

Then "set" functions are supportive for both const and non-const variables.

* Add Sync and GetDataLocation functions to Settings class

* Move include filesystem into root header file.

* Introduce Verify function in Settings class

* Fix old bug for console remains open

* Making some adjustments...

* Append

* Another fix for any output prints crash.

* Add Delete function to Settings class

Plus keep save's file path if has given one.

* Fix LLE_USB to set into Settings class' member variable.

* No longer rely on GUI's end to reset LLE flags for multi-xbe titles.

* Simulate what GUI will do except in standalone kernel mode support.

* Move m_StorageLocation into Settings class as central.

Plus optimization for GetDataLocation function.

* Update sentence...

* Remove m_XbePath from EmuShared class.

Since kernel process is launching by on its own without rely on GUI process.

* Update copyright

* Fix DirectInput config not responding message

* Implement new feature: Bypass running as admin warning message

* Rename Emulate Settings to Core Settings

Plus move AllowAdminPrivilage option to core.

* Add reserve space for Settings' structure to integrate into EmuShared

* Ensure all reserves are set to 0 by default.

* Append to "Rename Emulate Settings to Core Settings" commit

* Fix rebase loss.

* Fix kernel mode process's window screen

* Correction: use bool for allowAdminPrivilege and add a save data

* Few fixes for allowAdminPrivilege

* Implement support to prevent tamper shared memory between GUI processes.

NOTE: Kernel process will be using same shared memory since guiProcessID will remain as 0.

* Various improvement

* Use std library functions
* Use single column spaces for align support on different tab size
* Include failsafe if custom and file path string values are bad format

Apparently ARRAYSIZE isn't define on other compilers.

* Last ARRAYSIZE replacement plus buffer overflow protection

* Replace WinAPI to std library's filesystem

* Revert support for 2+ emulation process at same time.

Emulation's graphic screen has corruption between both windows. Not even a wrapper to D3D9 will fix it.
2018-08-07 08:30:07 +01:00
ergo720 a42a114583 Disabled LLE USB 2018-07-31 21:44:10 +02:00
ergo720 669b1e8cd1 Added LLE USB flag 2018-07-17 01:09:36 +02:00
Luke Usher ba198202f2 Revert "Replace Uncap Framerate with Cap Framerate hack"
This reverts commit c1b99631fb.
2018-06-20 20:33:27 +01:00
Luke Usher c1b99631fb Replace Uncap Framerate with Cap Framerate hack
Why? The Xbox doesn't have a frame rate cap, as evidenced by XDK samples
like Dolphin and Benchmark, that run at high FPS on real hardware.

We only had a framerate cap by default to work-around a timing bug
relating to Rdtsc, which is mostly solved now!

The cap frame-rate hack will stay around as an OPTIONAL hack, for any
titles that are still problematic: however, it will never be default.
2018-06-20 08:27:41 +01:00
Luke Usher fc1252283a
Merge pull request #1295 from ggKismet/patch-1
Fix typo in Controller Dialog
2018-06-18 20:28:02 +01:00
ggKismet 48b65375f7
Update cxbx.rc , added a T removed an L. lol. 2018-06-18 12:21:38 -07:00
GXTX bff70dfa75 Enable checkmarks signaling where cxbx-reloaded data is being stored 2018-06-12 10:28:32 -04:00
GXTX 70d09224a4 Add submenu for quick location configuration 2018-06-11 18:29:08 -04:00
GXTX bc95707618 Add user configurable storage location 2018-06-11 13:33:00 -04:00
Luke Usher ef351ee31b Add new speedhack: Render Directly to Host BackBuffer 2018-06-09 08:01:01 +01:00
x1nixmzeng 70b76bb2d8 Removed unused resource file 2018-05-31 21:02:44 +01:00
Luke Usher 29dbe8b019
Merge pull request #1231 from jackchentwkh/vsbc_typo_fix
fix typos of controller mapping dialog and virtual SB dialog.
2018-05-31 16:59:25 +01:00
Luke Usher e6bc88ffe4 Remove Unused LLE options to prevent user-confusion 2018-05-31 13:31:27 +01:00
jackchentwkh 2ad3f2bad6 fix typos of controller mapping dialog and virtual SB dialog.
correct control names accordingly.
2018-05-30 16:52:53 +08:00
RadWolfie fef067833e Preview change from Visual Studio directly
First update cause it relocate for some reason. (Might be cause of manual edit.)
2018-05-29 13:51:34 -05:00
RadWolfie 9ded390a87 Enforce rc files as UTF-8 encode 2018-05-29 13:41:03 -05:00
jackchentwkh 6edf293699 Add controller port configuration GUI and support virtual SB controller with feedback status (#1196)
* Add XB_ prefix for xbox XInput related structures and variables to prevent mis-use host equivalent.
Add newly findings for device table related info.

* Revert g_Controller ZeroMemory() calls.
now the XINPUT_STATE is correctly refering to host type, no need to specify the name space.

* Add X_CONTROLLER_HOST_BRIDGE structure type.
Prepare for configurabale host input, and virtual xbox controller.

* Fix DeviceInfo initialization when device table is not found.
always set state to enable rumble.

* experimenting virtual SteelBatalion controller.
using console as controller output.
using XInput and direct input combined keys

* first attem to emulat SteelBatalion controller works.

* add dialog file to solution

* Restore missing dialog files and functions

* Minor fix

* fix dialog control grouping
now registry works.

* refine some controller related constants

* Using Dialog for showing
SBC controller feedback
add possibility of using same dialog for virtual controller input.

* using EmuUpdateTickCount() as modeless dialog message handler.
sort of working.
revert the dlg message handling from wnd.cpp

* Finally the dialog for virtual SB controller feedback status works!
modeless dialog got issues. modal dialog will occupy focus. only way is to use a DLL, load the DLL when cxbx-r emulation child process started, and create a dummy window from DLL then create a modal dialog.
lots of code change and clean up.

* fix debug build,  use same character set setting for all configurations.

* restore C++ optimiztion setting in master

* remove unitended included ribbon resources

* removed necessary official document mentioning

* Add src/CxbxVSBC/Release and src/CxbxVSBC/Debug to .gitignore

* Move Host Port assignment related code to src/common/win32

* fix merge confliction

* oops, fix merge conflictions again.

* Add OLD_XINPUT mark for those marked out old XInput code. need to be reviewed in the future.

* remove unintended binary files

* fix debug build, again.
revert unindteded changes to submodule

* rever unintended submodule change

* Relocate project to build/Win32 folder

Co-Authored-By: anita999 <anita999@ms12.hinet.net>

* Restore sln file base on master

* Include project dependency to build

* Final fixup for sln file

* Restore original new line code

* Update Wnd.cpp

* Remove old include

* Include CxbxVSBC.dll into AppVeyor

This should be the last fixup for pull request.

* Fix merge-conflict

* Fix files encode format to UTF-8

* treat .rc file as text instead of binary

* Revert "treat .rc file as text instead of binary"

This reverts commit 034039d723.
2018-05-29 13:33:01 +01:00
RadWolfie c37492b27e Fix rc file to UTF-8 encode format 2018-05-29 01:01:26 -05:00
RadWolfie 0a4c3bf6bf Force remove ignored file from source control system 2018-05-29 00:25:10 -05:00
Voxel9 18a48546fe Remove "LED" text and replace with LLE flags text 2018-05-28 11:24:57 +01:00
ergo720 bc2a551ee5 Align serial number text in eeprom menu 2018-05-27 14:54:00 +02:00
RadWolfie ccff183600 Editorconfig second revision
* Apply only for src and resource directories.

With this setup, it should work as intended only for Cxbx-Reloaded's source code without affecting third-party projects.
2018-05-16 10:20:48 -05:00
Luke Usher e54e7fbfcf Make new RDTSC patch the default, the old method is optional 2018-05-03 21:23:09 +01:00
patrickvl ccd82a8e0f HLE : Configurable viewport scaling (as a hack) 2018-05-02 19:10:03 +02:00
ergo720 55d0d36d3e Merge remote-tracking branch 'upstream/master' into eeprom_viewer 2018-04-26 11:06:09 +02:00
ergo720 88739baba9 Finished eeprom menu 2018-04-25 23:54:59 +02:00
ergo720 baabd55dc3 More eeprom menu work 2018-04-21 19:18:35 +02:00
Margen67 7552e92060 Remove legacy audio hack 2018-04-20 03:29:12 -07:00
ergo720 4ecfc4d5d4 Started to write eeprom menu 2018-04-19 19:56:20 +02:00
Luke Usher 95ad62c409 Oops, forgot to add resource files 2018-04-14 18:22:55 +01:00
RadWolfie d8ccff36f6 Disable LLE Placeholder Action
LLE APU is not implemented yet.
LLE JIT does nothing.

This will help users not to report problems with LLE placeholder
actions.
2018-04-05 10:52:02 -05:00
Luke Usher c0be3b47da Add optional speedhack to use all available cores 2018-04-03 10:57:45 +01:00
RadWolfie 1d993d2cba Replace main logo
stb image library does not work correctly for green/yellow outline on
main logo even with png and jpeg formats. Using bitmap format instead.
2018-04-02 01:13:44 -05:00
RadWolfie bdfbefa157 Icon replacment for 2nd gen of Cxbx
Icon is licenced as Creative Common 4.
Design & ideas was done by RadWolfie & Driveclub from discord.
SVG is include in this commit.
2018-04-02 00:13:53 -05:00
ergo720 54aeffd949 Load dashboard option 2018-04-01 18:16:56 +02:00
Luke Usher 65dfda6e2e Prevent frame-rate dependant games from running too fast 2018-03-06 09:15:04 +00:00
Voxel 7a8446b542 Move FPS Counter next to LED 2018-03-05 17:52:31 +00:00
x1nixmzeng facda08de8 Fixed corrupt resource files after merge 2018-02-07 22:30:25 +00:00
x1nixmzeng 5f3ddf6ee1 Merge https://github.com/Cxbx-Reloaded/Cxbx-Reloaded into cxbx-debugger 2018-02-07 22:05:11 +00:00
Voxel d09ebb106b Implement 'Reset to Defaults' menu feature. 2018-02-06 21:22:56 +00:00
x1nixmzeng f0a409a1b0 Treat resource file as binary to keep unicode 2018-02-04 22:16:23 +00:00
x1nixmzeng 9a1ae72145 Support for launching the debugger with a F9
Mimics the 'start' functionality by opening the last recently used XBE
if it isn't already
2018-02-01 23:38:19 +00:00
x1nixmzeng e28a02a4b5 Fixed corrupted resource files after merge 2018-02-01 21:07:47 +00:00
x1nixmzeng f57a74334f Merge https://github.com/Cxbx-Reloaded/Cxbx-Reloaded into cxbx-debugger 2018-02-01 20:58:01 +00:00
ergo720 753d9d89c2 Dashboard fatal error + fix issue #878 2018-01-28 10:06:11 +01:00