mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-08-28 03:24:25 -05:00
Fix MVSC builds
This commit is contained in:
1
.gitignore
vendored
Normal file → Executable file
1
.gitignore
vendored
Normal file → Executable file
@@ -1,5 +1,6 @@
|
||||
# Byte-compiled / optimized / DLL files
|
||||
*.o
|
||||
openal32.dll
|
||||
cc3dsfs
|
||||
cc3dsfs.exe
|
||||
*.conf
|
||||
|
||||
10
include/3dscapture.hpp
Normal file → Executable file
10
include/3dscapture.hpp
Normal file → Executable file
@@ -24,19 +24,23 @@
|
||||
|
||||
#define FIX_PARTIAL_FIRST_FRAME_NUM 3
|
||||
|
||||
struct __attribute__ ((packed)) VideoInputData {
|
||||
#pragma pack(push, 1)
|
||||
|
||||
struct PACKED VideoInputData {
|
||||
uint8_t screen_data[IN_VIDEO_SIZE][3];
|
||||
};
|
||||
|
||||
struct __attribute__ ((packed)) CaptureReceived {
|
||||
struct PACKED CaptureReceived {
|
||||
VideoInputData video_data;
|
||||
uint16_t audio_data[MAX_SAMPLES_IN];
|
||||
};
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
struct CaptureData {
|
||||
FT_HANDLE handle;
|
||||
CaptureReceived capture_buf[NUM_CONCURRENT_DATA_BUFFERS];
|
||||
uint32_t read[NUM_CONCURRENT_DATA_BUFFERS];
|
||||
ULONG read[NUM_CONCURRENT_DATA_BUFFERS];
|
||||
double time_in_buf[NUM_CONCURRENT_DATA_BUFFERS];
|
||||
volatile int curr_in = 0;
|
||||
volatile int cooldown_curr_in = FIX_PARTIAL_FIRST_FRAME_NUM;
|
||||
|
||||
0
include/audio.hpp
Normal file → Executable file
0
include/audio.hpp
Normal file → Executable file
0
include/conversions.hpp
Normal file → Executable file
0
include/conversions.hpp
Normal file → Executable file
6
include/frontend.hpp
Normal file → Executable file
6
include/frontend.hpp
Normal file → Executable file
@@ -31,10 +31,14 @@ struct DisplayData {
|
||||
bool split;
|
||||
};
|
||||
|
||||
struct __attribute__ ((packed)) VideoOutputData {
|
||||
#pragma pack(push, 1)
|
||||
|
||||
struct PACKED VideoOutputData {
|
||||
uint8_t screen_data[IN_VIDEO_SIZE][4];
|
||||
};
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
struct SFEvent {
|
||||
SFEvent(sf::Event::EventType type, sf::Keyboard::Key code, uint32_t unicode) : type(type), code(code), unicode(unicode) {}
|
||||
|
||||
|
||||
0
include/hw_defs.hpp
Normal file → Executable file
0
include/hw_defs.hpp
Normal file → Executable file
6
include/utils.hpp
Normal file → Executable file
6
include/utils.hpp
Normal file → Executable file
@@ -5,6 +5,12 @@
|
||||
#include <condition_variable>
|
||||
#include <chrono>
|
||||
|
||||
#if _MSC_VER && !__INTEL_COMPILER
|
||||
#define PACKED
|
||||
#else
|
||||
#define PACKED __attribute__((packed))
|
||||
#endif
|
||||
|
||||
#define NAME "cc3dsfs"
|
||||
|
||||
// This isn't precise, however we can use it...
|
||||
|
||||
Reference in New Issue
Block a user