Commit Graph

651 Commits (716e5cf070251b9147f5ceb877e4417382a6c63b)

Author SHA1 Message Date
Kloen Lansfiel 30ff675f02 citra-qt: Don't attempt to scan files with unsupported extensions (#2402) 8 years ago
Yuri Kunde Schlesner 60fc0b086f VideoCore: Split regs.h inclusions 8 years ago
Yuri Kunde Schlesner f241bb72f5 Pica/Regs: Use binary search to look up reg names
This gets rid of the static unordered_map. Also changes the return type
const char*, avoiding unnecessary allocations (the result was only used
by calling .c_str() on it.)
8 years ago
Yuri Kunde Schlesner 5759d94b5c VideoCore: Move Regs to its own file 8 years ago
Yuri Kunde Schlesner 23713d5dee VideoCore: Split framebuffer regs from Regs struct 8 years ago
Yuri Kunde Schlesner 9017093f58 VideoCore: Split texturing regs from Regs struct 8 years ago
Yuri Kunde Schlesner 000e78144c VideoCore: Split rasterizer regs from Regs struct 8 years ago
Yuri Kunde Schlesner 97e06b0a0d Merge pull request #2476 from yuriks/shader-refactor3
Oh No! More shader changes!
8 years ago
Yuri Kunde Schlesner 09a750e866 Pica/Texture: Simplify/cleanup texture tile addressing 8 years ago
Yuri Kunde Schlesner a1c9ac7845 VideoCore: Move LookupTexture out of debug_utils.h 8 years ago
noah the goodra 6c41d87a9d removal of the -1 case in the configure_input switch
this case is unneeded because no enumeration value can possibly correspond to it
8 years ago
Yuri Kunde Schlesner 1410aa1824 Merge pull request #2368 from wwylele/camera-2
CAM: build the service framework with a dummy implementation
8 years ago
Yuri Kunde Schlesner 335df895b9 VideoCore: Consistently use shader configuration to load attributes 8 years ago
Yuri Kunde Schlesner ab6954e942 VideoCore: Rename some types to more accurate names 8 years ago
Yuri Kunde Schlesner bf14f4be22 Merge pull request #2346 from yuriks/shader-refactor2
More shader refactoring
8 years ago
Kloen Lansfiel f852369986 SDL: Select audio device (#2403)
* Initial Commit

Added Device logic to Sinks
Started on UI for selecting devices

Removed redundant import

* Audio Core: Complete Device Switching

Complete the device switching implementation by allowing the output
device to be loaded, changed and saved through the configurations menu.

Worked with the Sink abstraction and tuned the "Device Selection"
configuration so that the Device List is automatically populated when
the Sink is changed.
This hopefully addresses the concerns and recommendations mentioned in
the comments of the PR.

* Clean original implementation.

* Refactor GetSinkDetails
8 years ago
Yuri Kunde Schlesner 0e9081b973 VideoCore/Shader: Move entry_point to SetupBatch 8 years ago
Yuri Kunde Schlesner 0f64274145 VideoCore/Shader: Move per-batch ShaderEngine state into ShaderSetup 8 years ago
Yuri Kunde Schlesner ade7ed7c5f VideoCore/Shader: Move ProduceDebugInfo to InterpreterEngine 8 years ago
Yuri Kunde Schlesner a9b7752b9d Debugger: Always use interpreter for shader debugging 8 years ago
Yuri Kunde Schlesner dd4a1672a7 VideoCore/Shader: Split shader uniform state and shader engine
Currently there's only a single dummy implementation, which will be
split in a following commit.
8 years ago
Yuri Kunde Schlesner 1e1f939817 VideoCore/Shader: Use only entry_point as ShaderSetup param
This removes all implicit dependency of ShaderState on global PICA
state.
8 years ago
Yuri Kunde Schlesner e3caf669b0 VideoCore/Shader: Use self instead of g_state.vs in ShaderSetup 8 years ago
Kloen abc5c134a3 Removed unused and outdated external qhexedit 8 years ago
Kloen 380c165339 citra-qt: Removed unused and unimplemented ramview files. 8 years ago
Kloen 8d48798f1c QT: Fix ui file format 8 years ago
Kloen 551fe3dd69 QT: Fix some UI related warnings 8 years ago
wwylele cf3a272332 CAM: implement basic camera functions with a blank camera 8 years ago
bunnei 9fc8ead842 Merge pull request #2384 from bunnei/internal-res-option
config: Add option for specifying screen resolution scale factor.
8 years ago
bunnei 7cfe3ef046 Merge pull request #1951 from wwylele/motion-sensor
Emulate motion sensor in frontend
8 years ago
bunnei 22ad9094e6 config: Add option for specifying screen resolution scale factor. 8 years ago
Sebastian Valle f20d872643 Merge pull request #2393 from Subv/synch
Kernel: Mutex priority inheritance and synchronization improvements.
8 years ago
Subv cef5f45de2 Kernel: Use different thread statuses when a thread calls WaitSynchronization1 and WaitSynchronizationN with wait_all = true.
This commit removes the overly general THREADSTATUS_WAIT_SYNCH and replaces it with two more granular statuses:

THREADSTATUS_WAIT_SYNCH_ANY when a thread waits on objects via WaitSynchronization1 or WaitSynchronizationN with wait_all = false.

THREADSTATUS_WAIT_SYNCH_ALL when a thread waits on objects via WaitSynchronizationN with wait_all = true.
8 years ago
Jonathan Hao c18cb1b192 Fix some warnings (#2399) 8 years ago
bunnei f556d6ee90 Merge pull request #2240 from wwylele/auto-region
Config: auto-select region and language
8 years ago
wwylele bcf9d20d57 Frontend: emulate motion sensor 8 years ago
MerryMage 64f98f4d0f core: Move emu_window and key_map into core
* Removes circular dependences (common should not depend on core)
8 years ago
bunnei aa47af7fb6 Merge pull request #2343 from bunnei/core-cleanup
Core: Top-level consolidate & misc cleanup
8 years ago
bunnei e26fbfd1d7 core: Replace "AppCore" nomenclature with just "CPU". 8 years ago
bunnei 7623957f80 Merge pull request #2361 from lioncash/disasm
disassembler: Remove mutable specifier from breakpoints member variable
8 years ago
bunnei 5ac5cbeab7 Address clang-format issues. 8 years ago
bunnei 232ef55c1a core: Consolidate core and system state, remove system module & cleanups. 8 years ago
bunnei 198b6c9bdd core: Consolidate top-level system state into a singleton. 8 years ago
Lioncash 8309d0dade citra-qt: Move graphics debugging code into its own folder
Keeps all graphics debugging stuff from cluttering up the root debugger
folder
8 years ago
Lioncash f2c307557a disassembler: Remove mutable specifier from breakpoints member variable
Breakpoints has been const correct with regards to what the
DisassmblerModel needs for quite a while now.
8 years ago
Lioncash cc1f2c131b citra-qt: Move bits of constructor behavior to named functions
Makes the initialization process a tad easier to grok,
since the constructor isn't just a glob of random unrelated behaviors.
8 years ago
bunnei dac86b61ee Merge pull request #2351 from CaptV0rt3x/master
Fixed game_list focus issue.
8 years ago
CaptV0rt3x 393a0f99da line fixup for travis ci 8 years ago
Vamsi Krishna 77f4743199 screen swap - Hotkey mapping 8 years ago
Vamsi Krishna 27217c621b Fixed game_list focusing issue.
added line render_window->setFocus();
8 years ago
bunnei d30d6f81aa Merge pull request #2303 from freiro/citra-qt_missing_sdl2_dll
Copy SDL2.dll when compiling citra-qt with msvc
8 years ago
Merry acc83a1c32 Merge pull request #2322 from MerryMage/ctx-mnu
game_list: Add a context menu with "Open Save Location"  option
8 years ago
bunnei cda7210fad Merge pull request #2260 from Subv/scheduling
Threading: Reworked the way our scheduler works.
8 years ago
MerryMage 5a4e1b469d main: Open folder when open save folder location context menu is clicked 8 years ago
MerryMage f50dcc88bf game_list: Implement context menu for items in list
* Add a context menu with a "Open Save Data Location" action
8 years ago
Yuri Kunde Schlesner 905fc92ce1 Merge pull request #2249 from Subv/sessions_v3
Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
8 years ago
Subv 5b1edc6ae7 Fixed the codestyle to match our clang-format rules. 8 years ago
freiro b7b2627b37 Modularized Qt and SDL file copying
Now cmake relies on two submodules to copy the libraries in the proper folders
8 years ago
Sebastian Valle 2589c30cbe Merge pull request #2267 from JayFoxRox/fix-mingw-cc
Support mingw cross-compilation
8 years ago
freiro 031fc3a460 Modularization of copy_msvc_libraries cmake funct
Created a new folder in Citra's root called CMakeModules that should
contain cmake functions used by the various CMakeLists.txt.
8 years ago
Lioncash d0e4d1182b citra-qt: Make constructors explicit where applicable 8 years ago
freiro 942f70951d Removed redundant Qt check and other fixes
This removes a redundant check and moves part of the code to a separate
function.
8 years ago
Lioncash 327b23e4ce citra-qt: Add missing #pragma once directives 8 years ago
Lioncash 3bbd35dde9 game_list: Make slots private functions
The new Qt event syntax allows for regular member functions to be used in
connect(), so explicitly indicating slots isn't necessary.
8 years ago
Lioncash 7402001787 game_list: Make the constructor explicit 8 years ago
Lioncash db33d7668e game_list: Make the AddEntry argument a const reference
appendRow takes a QList by const reference, so it doesn't need to be
modifiable.
8 years ago
Lioncash aa05d36823 game_list: Replace 0 literals with nullptr 8 years ago
Lioncash dd4582f85d game_list: Use QT5's new event connection syntax
Makes for more compact code in most places.
8 years ago
Lioncash fd3d56740e game_list: Pass the parent constructor argument to the QWidget base class
If the control was ever passed an explicit parent, a potential memory leak
would happen, as the game list wouldn't be freed.

However, in our case, the game list was placed within a layout, which
automatically performs reparenting, avoiding this issue.
8 years ago
freiro 143bc8713d [MSVC] Copy SDL2.dll to build folder
CMake now copies SDL2.dll when compiling citra with citra-qt as a target
on MSVC.
8 years ago
Lioncash 4e7092881f graphics_cmdlists: Get rid of variable shadowing 8 years ago
Lioncash 1e5644935d graphics_cmdlists: Get rid of an unused variable 8 years ago
Lioncash f1ee7e4e0e graphics_cmdlists: Make LoadTexture and TextureInfoWidget src arguments const 8 years ago
Lioncash dcb8113347 graphics_cmdlists: Make LoadImage internally linked
Puts the TextureInfoWidget definition in the anonymous namespace as well,
as it's only used in the translation unit as well.
8 years ago
Lioncash 963aedd8cc Add all services to the Service namespace
Previously there was a split where some of the services were in the
Service namespace and others were not.
8 years ago
MerryMage a2d474386c configure_input: Modernize and cleanup input configuration tab
* Removed use of raw QTimer* pointer.
* Update to use type-safe QObject::connect.
* getKeyName can be a static local function.
* Prefer to use function arguments instead of member variables.
* Store Qt::Key instead of converting string back into keycode.
8 years ago
Subv 17b29d8865 WaitSynch: Removed unused variables and reduced SharedPtr copies.
Define a variable with the value of the sync timeout error code.

Use a boost::flat_map instead of an unordered_map to hold the equivalence of objects and wait indices in a WaitSynchN call.
8 years ago
wwylele 84e78790ab Config: auto-select region and language 8 years ago
emmauss c4e4fa53d9 Implement Frame rate limiter (#2223)
* implement frame limiter

* fixes
8 years ago
Jannik Vogel d2c39bdb29 Unify Windows ICON resource name 8 years ago
Jannik Vogel 45d941d62e Support mingw cross-compile 8 years ago
Subv bdad00c73f Threading: Added some utility functions and const correctness. 8 years ago
Subv 8634b8cb83 Threading: Reworked the way our scheduler works.
Threads will now be awakened when the objects they're waiting on are signaled, instead of repeating the WaitSynchronization call every now and then.

The scheduler is now called once after every SVC call, and once after a thread is awakened from sleep by its timeout callback.

This new implementation is based off reverse-engineering of the real kernel.

See https://gist.github.com/Subv/02f29bd9f1e5deb7aceea1e8f019c8f4 for a more detailed description of how the real kernel handles rescheduling.
8 years ago
Jannik Vogel 8efeb6ee2b Remove unused version.h 8 years ago
Subv 2eceee3a4c Fixed the rebase mistakes. 8 years ago
Yuri Kunde Schlesner 3174bfd50c Merge pull request #2196 from Subv/system_mode
Kernel/Loader: Grab the system mode from the NCCH ExHeader.
8 years ago
Subv d171409f29 Kernel/Loader: Grab the system mode from the NCCH ExHeader.
3dsx and elf files default to system mode 2 (96MB allocated to the application).

This allows Home Menu to boot without modifications.
Closes #1849
8 years ago
Emmanuel Gil Peyrot 0820c99462 GPU: Remove the broken frame_skip option.
Fixes #1960.
8 years ago
Subv 1323ab2f5f Kernel/Loader: Grab the system mode from the NCCH ExHeader.
3dsx and elf files default to system mode 2 (96MB allocated to the application).

This allows Home Menu to boot without modifications.
Closes #1849
8 years ago
bunnei fb13bfe693 Merge pull request #2172 from jroweboy/fix-mingw
Fix mingw compilation support
8 years ago
bunnei 5a31552764 Merge pull request #1753 from jroweboy/frame_layouts
Support additional screen layouts.
8 years ago
James Rowe c3ea6f4ddb Add mingw compile support 8 years ago
Pringo 51750dc8f5 Minor Menu Fixes 8 years ago
James Rowe d9305b0a07 Add default hotkey to swap primary screens.
Also minor style changes
8 years ago
James Rowe 2b1654ad9b Support additional screen layouts.
Allows users to choose a single screen layout or a large screen layout.
Adds a configuration option to change the prominent screen.
8 years ago
Jan Beich 2240cb2eb0 build: add default install for DragonFly, Solaris, etc. 8 years ago
Ricardo de Almeida Gonzaga 13d46f6820 Fix typos 8 years ago
bunnei 09c3e444d4 Merge pull request #1652 from wwylele/kernal-tool
Debugger: implement wait tree widget
9 years ago
wwylele 3aa047cd1d qt: shutdown system if error 9 years ago
wwylele f69a543110 implement wait tree widget 9 years ago
Yuri Kunde Schlesner 84fbbe2629 Use negative priorities to avoid special-casing the self-include 9 years ago
Emmanuel Gil Peyrot ebdae19fd2 Remove empty newlines in #include blocks.
This makes clang-format useful on those.

Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Yuri Kunde Schlesner 396a8d91a4 Manually tweak source formatting and then re-run clang-format 9 years ago
Emmanuel Gil Peyrot dc8479928c Sources: Run clang-format on everything. 9 years ago
bunnei d532f6b496 qt: Add UI configuration option to enable CPU JIT. 9 years ago
bunnei 14085ec670 core: Add configuration option for CPU JIT. 9 years ago
wwylele c0262001d8 Qt: fix birthday combo box updating 9 years ago
wwylele bdc59c4c21 Qt: unify running detection 9 years ago
bunnei 09063dc5bb Merge pull request #2032 from bunnei/qt-graphics
Qt graphics configure & V-Sync option
9 years ago
bunnei a71013cf16 qt: Rename all "toogle" to "toggle". 9 years ago
MerryMage dc3f6a34f8 configure_audio: User-configuratble option to enable/disable audio stretching 9 years ago
bunnei 74842116b2 qt: Add an option to settings for enabling V-Sync. 9 years ago
bunnei 02702c6605 qt: Recreate GL context on startup to support changing V-Sync. 9 years ago
bunnei 08ad9b36d4 config: Add a setting for graphics V-Sync. 9 years ago
bunnei 2267f98941 qt: Add a configuration tab for Graphics and move relevant fields. 9 years ago
bunnei 7b4dcacbb2 citra: Default to HW renderer. 9 years ago
Anon e91327c86a Input GUI: Add tab to remap controls (#1900) 9 years ago
Dale Whinham 78b97ee364 CMake: Fix Info.plist template for citra_qt/OSX
The Info.plist template incorrectly uses parentheses instead of curly braces,
which means that building the .app bundle using regular 'make' results in the
variable not being replaced, and hence the app bundle won't start because the
executable name is incorrect.

This commit fixes this issue.
9 years ago
wwylele ec3e99eec7 Qt: add system settings config tab 9 years ago
bunnei 4d31874c7c Merge pull request #1923 from yuriks/fix-recursive
Fix recursive scanning of directories
9 years ago
Yuri Kunde Schlesner d6792632f0 Fix recursive scanning of directories
ForeachDirectoryEntry didn't actually do anything with the `recursive`
parameter, and the corresponding callback parameter was shadowing the
actual recursion counters in the user functions.
9 years ago
Yuri Kunde Schlesner c52754e79a Qt: Fix MicroProfile dpi scaling 9 years ago
bunnei f99961581e Merge pull request #1789 from wwylele/input-refactor
Refactor input mapping & implement circle pad modifier
9 years ago
bunnei 98b1436b8b Merge pull request #1765 from JayFoxRox/debug-surface-viewer
Debugger: Pica surface viewer
9 years ago
archshift 3a4a424b70 Remove unused and bitrotted "controller config" files 9 years ago
LFsWang d24d047d45 AddFstEntriesToGameList - prevent loading a directory 9 years ago
bunnei 08e09184df Merge pull request #1751 from linkmauve/no-recursive-readdir
Make recursive FileUtil functions take a maximum recursion
9 years ago
bunnei ab4b27f0f5 Merge pull request #1692 from Subv/rm_getpointer2
Memory: Remove most usages of GetPointer
9 years ago
bunnei f50a32bfce Merge pull request #1817 from linkmauve/smdh-stuff
Improve SMDH support in loaders and frontends
9 years ago
bunnei c106f71beb New3DS: Minor style cleanup to #1520. 9 years ago
bunnei 2e5e7d9be0 Merge pull request #1520 from JamePeng/checknew3ds
Implement CheckNew3DS and CheckNew3DSApp
9 years ago
Emmanuel Gil Peyrot 080a2d719c Loader: Split SMDH into its own header and import helpers from QGameList
Also rewrite Qt wrappers to use those.
9 years ago
MerryMage b3b3dd7591 Debugger/Callstack: Replace Memory::GetPointer with Memory::IsValidVirtualAddress 9 years ago
Emmanuel Gil Peyrot 314ce5e505 CitraQt: Simplify the game list loader code 9 years ago
Emmanuel Gil Peyrot 8fc9c03126 Loader, Frontends: Refactor loader creation and game loading
This allows frontends to keep a single loader and use it multiple times
e.g. for code loading and SMDH parsing.
9 years ago
Emmanuel Gil Peyrot 8ab6f26c09 Common: Make recursive FileUtil functions take a maximum recursion
Fixes #1115.

Also improves the performances of DiskArchive’s directory
implementation a lot, simply by not going through the entire tree
instead of just listing the first level files.

Thanks to JayRoxFox for rebasing this on current master!
9 years ago
James Rowe 98923ab6e5 Config: Restore previously selected audio sink option (#1824) 9 years ago
bunnei d895bc1543 Merge pull request #1785 from MerryMage/mp-dpi
Microprofile: DPI-aware drawing
9 years ago
Maribel d014873916 Config: Audio sink configuration (#1798) 9 years ago
wwylele 416faa20d1 implement circle pad modifier 9 years ago
wwylele 03631f9b8f Refactor input subsystem 9 years ago
MerryMage 9b4187974b Microprofile: DPI-aware drawing 9 years ago
Jannik Vogel 6c6d99ca51 Move default_attributes into Pica state 9 years ago
Jannik Vogel ae7a82fa1c Turn ShaderSetup into struct 9 years ago
Alexander Laties 0a31e373f1 fixup simple type conversions where possible 9 years ago
Jannik Vogel 7d7849d71a citra_qt: Replace 'Pica Framebuffer Debugger' with 'Pica Surface Viewer' 9 years ago
Emmanuel Gil Peyrot aa4d4ff23c Frontends, VideoCore: Move glad initialisation to the frontend
On SDL2 this allows it to use SDL_GL_GetProcAddress() instead of the
default function loader, and fixes a crash when using apitrace with an
EGL context.

On Qt we will need to migrate from QGLWidget to QOpenGLWidget and
QOpenGLContext before we can use gladLoadGLLoader() instead of
gladLoadGL(), since the former doesn’t expose a function loader.
9 years ago
bunnei 55946cdc11 Merge pull request #1700 from wwylele/gamelist-icon
Qt: display game icon and title in the game list
9 years ago
wwylele 9da1534237 add missing header 9 years ago
wwylele 0176e2786f make the name column larger as default 9 years ago