From 56e96a8ff98d5114c5b2273ee16f07d2616ad381 Mon Sep 17 00:00:00 2001 From: Gauvain 'GovanifY' Roussel-Tarbouriech Date: Mon, 2 Nov 2020 23:41:01 +0100 Subject: [PATCH] USB: update copyright headers --- pcsx2/USB/USB.cpp | 23 +- pcsx2/USB/USB.h | 23 +- pcsx2/USB/Win32/Config.cpp | 15 + pcsx2/USB/Win32/Config.h | 17 +- pcsx2/USB/Win32/guid.cpp | 17 +- pcsx2/USB/configuration.cpp | 15 + pcsx2/USB/configuration.h | 15 + pcsx2/USB/device_init.cpp | 15 + pcsx2/USB/deviceproxy.cpp | 17 +- pcsx2/USB/deviceproxy.h | 15 + pcsx2/USB/dynlink/pulse.cpp | 518 ------------------ pcsx2/USB/dynlink/pulse.h | 4 - pcsx2/USB/gtk.h | 15 + pcsx2/USB/helpers.h | 15 + pcsx2/USB/icon_buzz_24.cpp | 15 + pcsx2/USB/icon_buzz_24.h | 15 + pcsx2/USB/linux/actualfile.c | 26 +- pcsx2/USB/linux/actualfile.h | 26 +- pcsx2/USB/linux/config-gtk.cpp | 15 + pcsx2/USB/linux/config.cpp | 17 +- pcsx2/USB/linux/config.h | 15 + pcsx2/USB/linux/ini.c | 26 +- pcsx2/USB/linux/ini.h | 26 +- pcsx2/USB/linux/util.cpp | 15 + pcsx2/USB/linux/util.h | 17 +- pcsx2/USB/osdebugout.cpp | 17 +- pcsx2/USB/osdebugout.h | 15 + pcsx2/USB/platcompat.h | 15 + pcsx2/USB/proxybase.h | 17 +- pcsx2/USB/qemu-usb/USBinternal.h | 17 +- pcsx2/USB/qemu-usb/bus.cpp | 15 + pcsx2/USB/qemu-usb/desc.cpp | 15 + pcsx2/USB/qemu-usb/desc.h | 15 + pcsx2/USB/qemu-usb/glib.cpp | 17 +- pcsx2/USB/qemu-usb/glib.h | 15 + pcsx2/USB/qemu-usb/hid.h | 15 + .../qemu-usb/input-keymap-linux-to-qcode.cpp | 17 +- .../qemu-usb/input-keymap-linux-to-qcode.h | 17 +- .../qemu-usb/input-keymap-qcode-to-qnum.cpp | 17 +- .../qemu-usb/input-keymap-win32-to-qcode.cpp | 15 + .../qemu-usb/input-keymap-win32-to-qcode.h | 17 +- pcsx2/USB/qemu-usb/input-keymap.h | 17 +- pcsx2/USB/qemu-usb/vl.cpp | 15 + pcsx2/USB/shared/hidapi.cpp | 15 + pcsx2/USB/shared/hidapi.h | 17 +- pcsx2/USB/shared/inifile.cpp | 15 + pcsx2/USB/shared/rawinput.cpp | 15 + pcsx2/USB/shared/rawinput.h | 17 +- pcsx2/USB/shared/ringbuffer.cpp | 15 + pcsx2/USB/shared/ringbuffer.h | 15 + pcsx2/USB/shared/shared.cpp | 17 +- pcsx2/USB/shared/shared.h | 17 +- pcsx2/USB/usb-eyetoy/api_init_linux.cpp | 15 + pcsx2/USB/usb-eyetoy/api_init_win32.cpp | 15 + pcsx2/USB/usb-eyetoy/cam-linux.cpp | 15 + pcsx2/USB/usb-eyetoy/cam-linux.h | 15 + pcsx2/USB/usb-eyetoy/cam-windows.cpp | 15 +- pcsx2/USB/usb-eyetoy/cam-windows.h | 15 + pcsx2/USB/usb-eyetoy/jo_mpeg.h | 15 + pcsx2/USB/usb-eyetoy/ov519.h | 15 + pcsx2/USB/usb-eyetoy/usb-eyetoy-webcam.cpp | 28 +- pcsx2/USB/usb-eyetoy/usb-eyetoy-webcam.h | 15 + pcsx2/USB/usb-eyetoy/videodev.h | 17 +- pcsx2/USB/usb-eyetoy/videodeviceproxy.h | 15 + pcsx2/USB/usb-hid/api_init_linux.cpp | 17 +- pcsx2/USB/usb-hid/api_init_win32.cpp | 17 +- pcsx2/USB/usb-hid/evdev/evdev-gtk.cpp | 15 + pcsx2/USB/usb-hid/evdev/evdev.cpp | 15 + pcsx2/USB/usb-hid/evdev/evdev.h | 15 + pcsx2/USB/usb-hid/hidproxy.h | 17 +- pcsx2/USB/usb-hid/noop.h | 17 +- pcsx2/USB/usb-hid/raw/rawinput.cpp | 17 +- pcsx2/USB/usb-hid/raw/rawinput.h | 17 +- pcsx2/USB/usb-hid/usb-hid.h | 15 + pcsx2/USB/usb-mic/api_init_linux.cpp | 17 +- pcsx2/USB/usb-mic/api_init_win32.cpp | 17 +- pcsx2/USB/usb-mic/audiodev-noop.h | 17 +- pcsx2/USB/usb-mic/audiodev-pulse.cpp | 15 + pcsx2/USB/usb-mic/audiodev-pulse.h | 15 + pcsx2/USB/usb-mic/audiodev-wasapi.cpp | 17 +- pcsx2/USB/usb-mic/audiodev-wasapi.h | 17 +- pcsx2/USB/usb-mic/audiodev.h | 15 + pcsx2/USB/usb-mic/audiodeviceproxy.h | 17 +- pcsx2/USB/usb-mic/usb-headset.h | 17 +- pcsx2/USB/usb-mic/usb-mic-logitech.cpp | 15 + pcsx2/USB/usb-mic/usb-mic-singstar.h | 15 + pcsx2/USB/usb-msd/usb-msd-gtk.cpp | 15 + pcsx2/USB/usb-msd/usb-msd-win32.cpp | 17 +- pcsx2/USB/usb-msd/usb-msd.h | 17 +- pcsx2/USB/usb-pad/api_init_linux.cpp | 17 +- pcsx2/USB/usb-pad/api_init_win32.cpp | 17 +- pcsx2/USB/usb-pad/bitjuggling.cpp | 15 + pcsx2/USB/usb-pad/dx/dinput-config.cpp | 15 + pcsx2/USB/usb-pad/dx/dinput.cpp | 17 +- pcsx2/USB/usb-pad/dx/dx.h | 15 + pcsx2/USB/usb-pad/dx/usb-pad-dx.cpp | 17 +- pcsx2/USB/usb-pad/dx/usb-pad-dx.h | 17 +- pcsx2/USB/usb-pad/evdev/evdev-ff.cpp | 15 + pcsx2/USB/usb-pad/evdev/evdev-ff.h | 15 + pcsx2/USB/usb-pad/evdev/evdev-gtk.cpp | 15 + pcsx2/USB/usb-pad/evdev/evdev.cpp | 15 + pcsx2/USB/usb-pad/evdev/evdev.h | 15 + pcsx2/USB/usb-pad/evdev/shared-gtk.cpp | 15 + pcsx2/USB/usb-pad/evdev/shared.h | 15 + pcsx2/USB/usb-pad/joydev/joydev-gtk.cpp | 15 + pcsx2/USB/usb-pad/joydev/joydev.cpp | 15 + pcsx2/USB/usb-pad/joydev/joydev.h | 15 + pcsx2/USB/usb-pad/padproxy.h | 15 + pcsx2/USB/usb-pad/raw/raw-config.cpp | 17 +- pcsx2/USB/usb-pad/raw/usb-pad-raw.cpp | 17 +- pcsx2/USB/usb-pad/raw/usb-pad-raw.h | 15 + pcsx2/USB/usb-pad/usb-pad-ff.cpp | 15 + pcsx2/USB/usb-pad/usb-pad.cpp | 15 + pcsx2/USB/usb-pad/usb-pad.h | 15 + 114 files changed, 1686 insertions(+), 671 deletions(-) delete mode 100644 pcsx2/USB/dynlink/pulse.cpp delete mode 100644 pcsx2/USB/dynlink/pulse.h diff --git a/pcsx2/USB/USB.cpp b/pcsx2/USB/USB.cpp index f8a56a0eae..87ddd09585 100644 --- a/pcsx2/USB/USB.cpp +++ b/pcsx2/USB/USB.cpp @@ -1,19 +1,16 @@ -/* USBlinuz - * Copyright (C) 2002-2004 USBlinuz Team +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . */ #include diff --git a/pcsx2/USB/USB.h b/pcsx2/USB/USB.h index e47cbb631a..b71acf8fef 100644 --- a/pcsx2/USB/USB.h +++ b/pcsx2/USB/USB.h @@ -1,19 +1,16 @@ -/* USBlinuz - * Copyright (C) 2002-2004 USBlinuz Team +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . */ #pragma once diff --git a/pcsx2/USB/Win32/Config.cpp b/pcsx2/USB/Win32/Config.cpp index e7ff1a9370..66cbfc77e2 100644 --- a/pcsx2/USB/Win32/Config.cpp +++ b/pcsx2/USB/Win32/Config.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "AppCoreThread.h" #include "../USB.h" #include "resource.h" diff --git a/pcsx2/USB/Win32/Config.h b/pcsx2/USB/Win32/Config.h index 8f2dad5caf..7dc54be656 100644 --- a/pcsx2/USB/Win32/Config.h +++ b/pcsx2/USB/Win32/Config.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef WIN32_H #define WIN32_H #include @@ -26,4 +41,4 @@ do {\ SendMessage(GetDlgItem(hDlg, nIDDlgItem), EM_SETSEL, -2, -2);\ }\ } while (0) -#endif \ No newline at end of file +#endif diff --git a/pcsx2/USB/Win32/guid.cpp b/pcsx2/USB/Win32/guid.cpp index 5d61599a6f..927722327e 100644 --- a/pcsx2/USB/Win32/guid.cpp +++ b/pcsx2/USB/Win32/guid.cpp @@ -1,4 +1,19 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include #include #include -#include \ No newline at end of file +#include diff --git a/pcsx2/USB/configuration.cpp b/pcsx2/USB/configuration.cpp index a5f706d36e..8d2a45bfb7 100644 --- a/pcsx2/USB/configuration.cpp +++ b/pcsx2/USB/configuration.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "osdebugout.h" #include "deviceproxy.h" #include "configuration.h" diff --git a/pcsx2/USB/configuration.h b/pcsx2/USB/configuration.h index 9d02ba1856..7ec68c1348 100644 --- a/pcsx2/USB/configuration.h +++ b/pcsx2/USB/configuration.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include diff --git a/pcsx2/USB/device_init.cpp b/pcsx2/USB/device_init.cpp index b06c8c419d..3960e13c80 100644 --- a/pcsx2/USB/device_init.cpp +++ b/pcsx2/USB/device_init.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "deviceproxy.h" #include "usb-pad/usb-pad.h" #include "usb-msd/usb-msd.h" diff --git a/pcsx2/USB/deviceproxy.cpp b/pcsx2/USB/deviceproxy.cpp index 06d898382e..91095938b8 100644 --- a/pcsx2/USB/deviceproxy.cpp +++ b/pcsx2/USB/deviceproxy.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "deviceproxy.h" #include "usb-pad/padproxy.h" #include "usb-mic/audiodeviceproxy.h" @@ -20,4 +35,4 @@ void UnregisterAPIs() usb_mic::RegisterAudioDevice::instance().Clear(); usb_hid::RegisterUsbHID::instance().Clear(); usb_eyetoy::RegisterVideoDevice::instance().Clear(); -} \ No newline at end of file +} diff --git a/pcsx2/USB/deviceproxy.h b/pcsx2/USB/deviceproxy.h index b8cd33ee98..d4405aeb92 100644 --- a/pcsx2/USB/deviceproxy.h +++ b/pcsx2/USB/deviceproxy.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef DEVICEPROXY_H #define DEVICEPROXY_H #include "configuration.h" diff --git a/pcsx2/USB/dynlink/pulse.cpp b/pcsx2/USB/dynlink/pulse.cpp deleted file mode 100644 index cae7a1120a..0000000000 --- a/pcsx2/USB/dynlink/pulse.cpp +++ /dev/null @@ -1,518 +0,0 @@ -#include "pulse.h" -#include -#include -#include -#include - -#if PA_CHECK_VERSION(12,99,1) -#define CONST const -#else -#define CONST -#endif - -#define FUNDEFDECL(x) static decltype(&x) pfn_##x = nullptr -#define FUN_UNLOAD(fun) pfn_##fun = nullptr -#define FUN_LOAD(h,fun) \ - pfn_##fun = (decltype(&fun))(dlsym(h, #fun)); \ - if((error = dlerror()) != NULL) { \ - std::cerr << error << std::endl; \ - DynUnloadPulse(); \ - return false; \ - } - -FUNDEFDECL(pa_usec_to_bytes); -FUNDEFDECL(pa_bytes_per_second); -FUNDEFDECL(pa_threaded_mainloop_start); -FUNDEFDECL(pa_threaded_mainloop_free); -FUNDEFDECL(pa_threaded_mainloop_stop); -FUNDEFDECL(pa_stream_unref); -FUNDEFDECL(pa_stream_disconnect); -FUNDEFDECL(pa_threaded_mainloop_new); -FUNDEFDECL(pa_threaded_mainloop_get_api); -FUNDEFDECL(pa_stream_set_read_callback); -FUNDEFDECL(pa_stream_connect_record); -FUNDEFDECL(pa_stream_new); -FUNDEFDECL(pa_stream_peek); -FUNDEFDECL(pa_strerror); -FUNDEFDECL(pa_stream_drop); -FUNDEFDECL(pa_context_connect); -FUNDEFDECL(pa_operation_unref); -FUNDEFDECL(pa_context_set_state_callback); -FUNDEFDECL(pa_context_get_state); -FUNDEFDECL(pa_mainloop_get_api); -FUNDEFDECL(pa_context_unref); -FUNDEFDECL(pa_context_disconnect); -FUNDEFDECL(pa_operation_get_state); -FUNDEFDECL(pa_context_get_source_info_list); -FUNDEFDECL(pa_mainloop_new); -FUNDEFDECL(pa_context_new); -FUNDEFDECL(pa_mainloop_iterate); -FUNDEFDECL(pa_mainloop_free); -FUNDEFDECL(pa_context_get_sink_info_list); -FUNDEFDECL(pa_stream_connect_playback); -FUNDEFDECL(pa_stream_set_write_callback); -FUNDEFDECL(pa_stream_begin_write); -FUNDEFDECL(pa_stream_cancel_write); -FUNDEFDECL(pa_stream_write); -FUNDEFDECL(pa_stream_get_state); -FUNDEFDECL(pa_stream_cork); -FUNDEFDECL(pa_stream_is_corked); -FUNDEFDECL(pa_stream_is_suspended); -FUNDEFDECL(pa_stream_set_state_callback); -FUNDEFDECL(pa_threaded_mainloop_lock); -FUNDEFDECL(pa_threaded_mainloop_unlock); -FUNDEFDECL(pa_threaded_mainloop_signal); -FUNDEFDECL(pa_threaded_mainloop_wait); -FUNDEFDECL(pa_sample_size); -FUNDEFDECL(pa_frame_size); -FUNDEFDECL(pa_stream_get_latency); -FUNDEFDECL(pa_stream_update_timing_info); - -static void* pulse_handle = nullptr; -static std::atomic refCntPulse (0); - -//TODO Probably needs mutex somewhere, but PCSX2 usually inits pretty serially -bool DynLoadPulse() -{ - const char* error = nullptr; - - refCntPulse++; - if (pulse_handle && pfn_pa_mainloop_free) - return true; - - //dlopen itself is refcounted too - pulse_handle = dlopen ("libpulse.so.0", RTLD_LAZY); - if (!pulse_handle) { - std::cerr << dlerror() << std::endl; - return false; - } - - FUN_LOAD(pulse_handle, pa_stream_update_timing_info); - FUN_LOAD(pulse_handle, pa_stream_get_latency); - FUN_LOAD(pulse_handle, pa_usec_to_bytes); - FUN_LOAD(pulse_handle, pa_bytes_per_second); - FUN_LOAD(pulse_handle, pa_threaded_mainloop_start); - FUN_LOAD(pulse_handle, pa_threaded_mainloop_free); - FUN_LOAD(pulse_handle, pa_threaded_mainloop_stop); - FUN_LOAD(pulse_handle, pa_stream_unref); - FUN_LOAD(pulse_handle, pa_stream_disconnect); - FUN_LOAD(pulse_handle, pa_threaded_mainloop_new); - FUN_LOAD(pulse_handle, pa_threaded_mainloop_get_api); - FUN_LOAD(pulse_handle, pa_stream_set_read_callback); - FUN_LOAD(pulse_handle, pa_stream_connect_record); - FUN_LOAD(pulse_handle, pa_stream_new); - FUN_LOAD(pulse_handle, pa_stream_peek); - FUN_LOAD(pulse_handle, pa_strerror); - FUN_LOAD(pulse_handle, pa_stream_drop); - FUN_LOAD(pulse_handle, pa_context_connect); - FUN_LOAD(pulse_handle, pa_operation_unref); - FUN_LOAD(pulse_handle, pa_context_set_state_callback); - FUN_LOAD(pulse_handle, pa_context_get_state); - FUN_LOAD(pulse_handle, pa_mainloop_get_api); - FUN_LOAD(pulse_handle, pa_context_unref); - FUN_LOAD(pulse_handle, pa_context_disconnect); - FUN_LOAD(pulse_handle, pa_operation_get_state); - FUN_LOAD(pulse_handle, pa_context_get_source_info_list); - FUN_LOAD(pulse_handle, pa_mainloop_new); - FUN_LOAD(pulse_handle, pa_context_new); - FUN_LOAD(pulse_handle, pa_mainloop_iterate); - FUN_LOAD(pulse_handle, pa_context_get_sink_info_list); - FUN_LOAD(pulse_handle, pa_stream_connect_playback); - FUN_LOAD(pulse_handle, pa_stream_set_write_callback); - FUN_LOAD(pulse_handle, pa_stream_begin_write); - FUN_LOAD(pulse_handle, pa_stream_cancel_write); - FUN_LOAD(pulse_handle, pa_stream_write); - FUN_LOAD(pulse_handle, pa_stream_get_state); - FUN_LOAD(pulse_handle, pa_stream_cork); - FUN_LOAD(pulse_handle, pa_stream_is_corked); - FUN_LOAD(pulse_handle, pa_stream_is_suspended); - FUN_LOAD(pulse_handle, pa_stream_set_state_callback); - FUN_LOAD(pulse_handle, pa_threaded_mainloop_lock); - FUN_LOAD(pulse_handle, pa_threaded_mainloop_unlock); - FUN_LOAD(pulse_handle, pa_threaded_mainloop_signal); - FUN_LOAD(pulse_handle, pa_threaded_mainloop_wait); - FUN_LOAD(pulse_handle, pa_sample_size); - FUN_LOAD(pulse_handle, pa_frame_size); - FUN_LOAD(pulse_handle, pa_mainloop_free); - return true; -} - -void DynUnloadPulse() -{ - if (!pulse_handle && !pfn_pa_mainloop_free) - return; - - if(!refCntPulse || --refCntPulse > 0) - return; - - FUN_UNLOAD(pa_stream_update_timing_info); - FUN_UNLOAD(pa_stream_get_latency); - FUN_UNLOAD(pa_usec_to_bytes); - FUN_UNLOAD(pa_bytes_per_second); - FUN_UNLOAD(pa_threaded_mainloop_start); - FUN_UNLOAD(pa_threaded_mainloop_free); - FUN_UNLOAD(pa_threaded_mainloop_stop); - FUN_UNLOAD(pa_stream_unref); - FUN_UNLOAD(pa_stream_disconnect); - FUN_UNLOAD(pa_threaded_mainloop_new); - FUN_UNLOAD(pa_threaded_mainloop_get_api); - FUN_UNLOAD(pa_stream_set_read_callback); - FUN_UNLOAD(pa_stream_connect_record); - FUN_UNLOAD(pa_stream_new); - FUN_UNLOAD(pa_stream_peek); - FUN_UNLOAD(pa_strerror); - FUN_UNLOAD(pa_stream_drop); - FUN_UNLOAD(pa_context_connect); - FUN_UNLOAD(pa_operation_unref); - FUN_UNLOAD(pa_context_set_state_callback); - FUN_UNLOAD(pa_context_get_state); - FUN_UNLOAD(pa_mainloop_get_api); - FUN_UNLOAD(pa_context_unref); - FUN_UNLOAD(pa_context_disconnect); - FUN_UNLOAD(pa_operation_get_state); - FUN_UNLOAD(pa_context_get_source_info_list); - FUN_UNLOAD(pa_mainloop_new); - FUN_UNLOAD(pa_context_new); - FUN_UNLOAD(pa_mainloop_iterate); - FUN_UNLOAD(pa_context_get_sink_info_list); - FUN_UNLOAD(pa_stream_connect_playback); - FUN_UNLOAD(pa_stream_set_write_callback); - FUN_UNLOAD(pa_stream_begin_write); - FUN_UNLOAD(pa_stream_cancel_write); - FUN_UNLOAD(pa_stream_write); - FUN_UNLOAD(pa_stream_get_state); - FUN_UNLOAD(pa_stream_cork); - FUN_UNLOAD(pa_stream_is_corked); - FUN_UNLOAD(pa_stream_is_suspended); - FUN_UNLOAD(pa_stream_set_state_callback); - FUN_UNLOAD(pa_threaded_mainloop_lock); - FUN_UNLOAD(pa_threaded_mainloop_unlock); - FUN_UNLOAD(pa_threaded_mainloop_signal); - FUN_UNLOAD(pa_threaded_mainloop_wait); - FUN_UNLOAD(pa_sample_size); - FUN_UNLOAD(pa_frame_size); - FUN_UNLOAD(pa_mainloop_free); - - dlclose(pulse_handle); - pulse_handle = nullptr; -} -#undef FUNDEFDECL -#undef FUN_LOAD -#undef FUN_UNLOAD - -const char* pa_strerror(int error) -{ - if (pfn_pa_strerror) - return pfn_pa_strerror(error); - return NULL; -} - -int pa_context_connect(pa_context *c, const char *server, pa_context_flags_t flags, const pa_spawn_api *api) -{ - if (pfn_pa_context_connect) - return pfn_pa_context_connect(c, server, flags, api); - return PA_ERR_NOTIMPLEMENTED; -} - -int pa_mainloop_iterate(pa_mainloop *m, int block, int *retval) -{ - if (pfn_pa_mainloop_iterate) - return pfn_pa_mainloop_iterate(m, block, retval); - return PA_ERR_NOTIMPLEMENTED; -} - -int pa_stream_disconnect(pa_stream *s) -{ - if (pfn_pa_stream_disconnect) - return pfn_pa_stream_disconnect(s); - return PA_ERR_NOTIMPLEMENTED; -} - -int pa_stream_drop(pa_stream *p) -{ - if (pfn_pa_stream_drop) - return pfn_pa_stream_drop(p); - return PA_ERR_NOTIMPLEMENTED; -} - -int pa_threaded_mainloop_start(pa_threaded_mainloop *m) -{ - if (pfn_pa_threaded_mainloop_start) - return pfn_pa_threaded_mainloop_start(m); - return PA_ERR_NOTIMPLEMENTED; -} - -pa_context *pa_context_new(pa_mainloop_api *mainloop, const char *name) -{ - if (pfn_pa_context_new) - return pfn_pa_context_new(mainloop, name); - return NULL; -} - -pa_context_state_t pa_context_get_state(CONST pa_context *c) -{ - if (pfn_pa_context_get_state) - return pfn_pa_context_get_state(c); - return PA_CONTEXT_FAILED; -} - -pa_mainloop_api* pa_mainloop_get_api(pa_mainloop *m) -{ - if (pfn_pa_mainloop_get_api) - return pfn_pa_mainloop_get_api(m); - return NULL; -} - -pa_mainloop_api* pa_threaded_mainloop_get_api(pa_threaded_mainloop *m) -{ - if (pfn_pa_threaded_mainloop_get_api) - return pfn_pa_threaded_mainloop_get_api(m); - return NULL; -} - -pa_mainloop *pa_mainloop_new(void) -{ - if (pfn_pa_mainloop_new) - return pfn_pa_mainloop_new(); - return NULL; -} - -pa_operation* pa_context_get_source_info_list(pa_context *c, pa_source_info_cb_t cb, void *userdata) -{ - if (pfn_pa_context_get_source_info_list) - return pfn_pa_context_get_source_info_list(c, cb, userdata); - return NULL; -} - -pa_operation_state_t pa_operation_get_state(CONST pa_operation *o) -{ - if (pfn_pa_operation_get_state) - return pfn_pa_operation_get_state(o); - return PA_OPERATION_CANCELLED; -} - -pa_threaded_mainloop *pa_threaded_mainloop_new(void) -{ - if (pfn_pa_threaded_mainloop_new) - return pfn_pa_threaded_mainloop_new(); - return NULL; -} - -size_t pa_bytes_per_second(const pa_sample_spec *spec) -{ - if (pfn_pa_bytes_per_second) - return pfn_pa_bytes_per_second(spec); - return 0; -} - -size_t pa_usec_to_bytes(pa_usec_t t, const pa_sample_spec *spec) -{ - if (pfn_pa_usec_to_bytes) - return pfn_pa_usec_to_bytes(t, spec); - return 0; -} - -void pa_context_disconnect(pa_context *c) -{ - if (pfn_pa_context_disconnect) - pfn_pa_context_disconnect(c); -} - -void pa_context_set_state_callback(pa_context *c, pa_context_notify_cb_t cb, void *userdata) -{ - if (pfn_pa_context_set_state_callback) - pfn_pa_context_set_state_callback(c, cb, userdata); -} - -void pa_context_unref(pa_context *c) -{ - if (pfn_pa_context_unref) - pfn_pa_context_unref(c); -} - -void pa_mainloop_free(pa_mainloop *m) -{ - if (pfn_pa_mainloop_free) - pfn_pa_mainloop_free(m); -} - -void pa_operation_unref(pa_operation *o) -{ - if (pfn_pa_operation_unref) - pfn_pa_operation_unref(o); -} - -void pa_stream_set_read_callback(pa_stream *p, pa_stream_request_cb_t cb, void *userdata) -{ - if (pfn_pa_stream_set_read_callback) - pfn_pa_stream_set_read_callback(p, cb, userdata); -} - -void pa_stream_unref(pa_stream *s) -{ - if (pfn_pa_stream_unref) - pfn_pa_stream_unref(s); -} - -void pa_threaded_mainloop_free(pa_threaded_mainloop *m) -{ - if (pfn_pa_threaded_mainloop_free) - pfn_pa_threaded_mainloop_free(m); -} - -void pa_threaded_mainloop_stop(pa_threaded_mainloop *m) -{ - if (pfn_pa_threaded_mainloop_stop) - pfn_pa_threaded_mainloop_stop(m); -} - -int pa_stream_peek(pa_stream *p, const void **data, size_t *nbytes) -{ - if (pfn_pa_stream_peek) - return pfn_pa_stream_peek(p, data, nbytes); - return -PA_ERR_NOTIMPLEMENTED; -} - -pa_stream* pa_stream_new(pa_context *c, const char *name, const pa_sample_spec *ss, const pa_channel_map *map) -{ - if (pfn_pa_stream_new) - return pfn_pa_stream_new(c, name, ss, map); - return NULL; -} - -int pa_stream_connect_record(pa_stream *s, const char *dev, const pa_buffer_attr *attr, pa_stream_flags_t flags) -{ - if (pfn_pa_stream_connect_record) - return pfn_pa_stream_connect_record(s, dev, attr, flags); - return PA_ERR_NOTIMPLEMENTED; -} - -pa_operation* pa_context_get_sink_info_list(pa_context * c, pa_sink_info_cb_t cb, void * userdata) -{ - if (pfn_pa_context_get_sink_info_list) - return pfn_pa_context_get_sink_info_list(c, cb, userdata); - return NULL; -} - -int pa_stream_connect_playback(pa_stream *s, const char *dev, - const pa_buffer_attr *attr, pa_stream_flags_t flags, - const pa_cvolume *volume, - pa_stream *sync_stream) -{ - if (pfn_pa_stream_connect_playback) - return pfn_pa_stream_connect_playback(s, dev, attr, flags, volume, sync_stream); - return PA_ERR_NOTIMPLEMENTED; -} - -void pa_stream_set_write_callback(pa_stream *p, pa_stream_request_cb_t cb, void *userdata) -{ - if (pfn_pa_stream_set_write_callback) - pfn_pa_stream_set_write_callback(p, cb, userdata); -} - -int pa_stream_begin_write(pa_stream *p, void **data, size_t *nbytes) -{ - if (pfn_pa_stream_begin_write) - return pfn_pa_stream_begin_write(p, data, nbytes); - return PA_ERR_NOTIMPLEMENTED; -} - -int pa_stream_cancel_write(pa_stream *p) -{ - if (pfn_pa_stream_cancel_write) - return pfn_pa_stream_cancel_write(p); - return PA_ERR_NOTIMPLEMENTED; -} - -int pa_stream_write(pa_stream *p, const void *data, size_t nbytes, pa_free_cb_t free_cb, int64_t offset, pa_seek_mode_t seek) -{ - if (pfn_pa_stream_write) - return pfn_pa_stream_write(p, data, nbytes, free_cb, offset, seek); - return PA_ERR_NOTIMPLEMENTED; -} - -pa_stream_state_t pa_stream_get_state(CONST pa_stream *p) -{ - if (pfn_pa_stream_get_state) - return pfn_pa_stream_get_state(p); - return PA_STREAM_UNCONNECTED; -} - -pa_operation* pa_stream_cork(pa_stream *s, int b, pa_stream_success_cb_t cb, void *userdata) -{ - if (pfn_pa_stream_cork) - return pfn_pa_stream_cork(s, b, cb, userdata); - return NULL; -} - -int pa_stream_is_corked(CONST pa_stream *s) -{ - if (pfn_pa_stream_is_corked) - return pfn_pa_stream_is_corked (s); - return -PA_ERR_NOTIMPLEMENTED; -} - -void pa_threaded_mainloop_lock(pa_threaded_mainloop *m) -{ - if (pfn_pa_threaded_mainloop_lock) - pfn_pa_threaded_mainloop_lock(m); -} - -void pa_threaded_mainloop_unlock(pa_threaded_mainloop *m) -{ - if (pfn_pa_threaded_mainloop_unlock) - pfn_pa_threaded_mainloop_unlock(m); -} - -void pa_threaded_mainloop_signal(pa_threaded_mainloop *m, int wait_for_accept) -{ - if (pfn_pa_threaded_mainloop_signal) - pfn_pa_threaded_mainloop_signal(m, wait_for_accept); -} - -void pa_threaded_mainloop_wait(pa_threaded_mainloop *m) -{ - if (pfn_pa_threaded_mainloop_wait) - pfn_pa_threaded_mainloop_wait(m); -} - -int pa_stream_is_suspended(CONST pa_stream *s) -{ - if (pfn_pa_stream_is_suspended) - return pfn_pa_stream_is_suspended(s); - return -PA_ERR_NOTIMPLEMENTED; -} - -void pa_stream_set_state_callback(pa_stream *s, pa_stream_notify_cb_t cb, void *userdata) -{ - if (pfn_pa_stream_set_state_callback) - pfn_pa_stream_set_state_callback(s, cb, userdata); -} - -size_t pa_sample_size(const pa_sample_spec *spec) -{ - if (pfn_pa_sample_size) - return pfn_pa_sample_size(spec); - return 0; -} - -size_t pa_frame_size(const pa_sample_spec *spec) -{ - if (pfn_pa_frame_size) - return pfn_pa_frame_size(spec); - return 0; -} - -pa_operation* pa_stream_update_timing_info(pa_stream *p, pa_stream_success_cb_t cb, void *userdata) -{ - if (pfn_pa_stream_update_timing_info) - return pfn_pa_stream_update_timing_info(p, cb, userdata); - return NULL; -} - -int pa_stream_get_latency(pa_stream *s, pa_usec_t *r_usec, int *negative) -{ - if (pfn_pa_stream_get_latency) - return pfn_pa_stream_get_latency(s, r_usec, negative); - return -PA_ERR_NOTIMPLEMENTED; -} \ No newline at end of file diff --git a/pcsx2/USB/dynlink/pulse.h b/pcsx2/USB/dynlink/pulse.h deleted file mode 100644 index 7e184f3753..0000000000 --- a/pcsx2/USB/dynlink/pulse.h +++ /dev/null @@ -1,4 +0,0 @@ -#pragma once - -bool DynLoadPulse(); -void DynUnloadPulse(); \ No newline at end of file diff --git a/pcsx2/USB/gtk.h b/pcsx2/USB/gtk.h index 3617be2cf7..a4396d1923 100644 --- a/pcsx2/USB/gtk.h +++ b/pcsx2/USB/gtk.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #define GLIB_DISABLE_DEPRECATION_WARNINGS #include diff --git a/pcsx2/USB/helpers.h b/pcsx2/USB/helpers.h index eeb1518fb8..4c72fa6969 100644 --- a/pcsx2/USB/helpers.h +++ b/pcsx2/USB/helpers.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef HELPERS_H #define HELPERS_H diff --git a/pcsx2/USB/icon_buzz_24.cpp b/pcsx2/USB/icon_buzz_24.cpp index 4785fac791..e3bae0761c 100644 --- a/pcsx2/USB/icon_buzz_24.cpp +++ b/pcsx2/USB/icon_buzz_24.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "icon_buzz_24.h" const unsigned char icon_buzz_24[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, diff --git a/pcsx2/USB/icon_buzz_24.h b/pcsx2/USB/icon_buzz_24.h index c2d18b9580..12ba435f67 100644 --- a/pcsx2/USB/icon_buzz_24.h +++ b/pcsx2/USB/icon_buzz_24.h @@ -1,2 +1,17 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once extern const unsigned char icon_buzz_24[]; diff --git a/pcsx2/USB/linux/actualfile.c b/pcsx2/USB/linux/actualfile.c index 94e1f2998f..fbe2bd94c1 100644 --- a/pcsx2/USB/linux/actualfile.c +++ b/pcsx2/USB/linux/actualfile.c @@ -1,24 +1,18 @@ -/* actualfile.c - * Copyright (C) 2002-2005 PCSX2 Team +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - * - * PCSX2 members can be contacted through their website at www.pcsx2.net. + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . */ - #include // errno #include // open() #include // rename() diff --git a/pcsx2/USB/linux/actualfile.h b/pcsx2/USB/linux/actualfile.h index a342720e38..9f5b913089 100644 --- a/pcsx2/USB/linux/actualfile.h +++ b/pcsx2/USB/linux/actualfile.h @@ -1,24 +1,18 @@ -/* actualfile.h - * Copyright (C) 2002-2005 PCSX2 Team +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - * - * PCSX2 members can be contacted through their website at www.pcsx2.net. + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . */ - #ifndef ACTUALFILE_H #define ACTUALFILE_H diff --git a/pcsx2/USB/linux/config-gtk.cpp b/pcsx2/USB/linux/config-gtk.cpp index 1ef71fdee7..fe1ee3a379 100644 --- a/pcsx2/USB/linux/config-gtk.cpp +++ b/pcsx2/USB/linux/config-gtk.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include #include #include diff --git a/pcsx2/USB/linux/config.cpp b/pcsx2/USB/linux/config.cpp index 4d5b57bb7d..087b87b57f 100644 --- a/pcsx2/USB/linux/config.cpp +++ b/pcsx2/USB/linux/config.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "../osdebugout.h" #include "../configuration.h" #include "../deviceproxy.h" @@ -13,4 +28,4 @@ void SysMessage_stderr(const char *fmt, ...) va_start(arglist, fmt); vfprintf(stderr, fmt, arglist); va_end(arglist); -} \ No newline at end of file +} diff --git a/pcsx2/USB/linux/config.h b/pcsx2/USB/linux/config.h index 0952078cc4..a93a7b314e 100644 --- a/pcsx2/USB/linux/config.h +++ b/pcsx2/USB/linux/config.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef LINUXCONFIG_H #define LINUXCONFIG_H #include diff --git a/pcsx2/USB/linux/ini.c b/pcsx2/USB/linux/ini.c index 7ff0595d4f..4fc055cf09 100644 --- a/pcsx2/USB/linux/ini.c +++ b/pcsx2/USB/linux/ini.c @@ -1,24 +1,18 @@ -/* ini.c - * Copyright (C) 2002-2005 PCSX2 Team +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - * - * PCSX2 members can be contacted through their website at www.pcsx2.net. + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . */ - #include // NULL #include // sprintf() #include // va_start(), va_end(), vsprintf() diff --git a/pcsx2/USB/linux/ini.h b/pcsx2/USB/linux/ini.h index 8413b00ba3..a7b261c383 100644 --- a/pcsx2/USB/linux/ini.h +++ b/pcsx2/USB/linux/ini.h @@ -1,24 +1,18 @@ -/* ini.h - * Copyright (C) 2002-2005 PCSX2 Team +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - * - * PCSX2 members can be contacted through their website at www.pcsx2.net. + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . */ - #ifndef INI_H #define INI_H diff --git a/pcsx2/USB/linux/util.cpp b/pcsx2/USB/linux/util.cpp index 7cf5d057f8..990a5e6ec8 100644 --- a/pcsx2/USB/linux/util.cpp +++ b/pcsx2/USB/linux/util.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "util.h" #include #include diff --git a/pcsx2/USB/linux/util.h b/pcsx2/USB/linux/util.h index 418df607ad..6fda7cda24 100644 --- a/pcsx2/USB/linux/util.h +++ b/pcsx2/USB/linux/util.h @@ -1,5 +1,20 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include bool file_exists(std::string path); -bool dir_exists(std::string path); \ No newline at end of file +bool dir_exists(std::string path); diff --git a/pcsx2/USB/osdebugout.cpp b/pcsx2/USB/osdebugout.cpp index 7d696a001a..9e47a72c4d 100644 --- a/pcsx2/USB/osdebugout.cpp +++ b/pcsx2/USB/osdebugout.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "osdebugout.h" std::wostream& operator<<(std::wostream& os, const std::string& s) { @@ -44,4 +59,4 @@ void _OSDebugOut(const TCHAR *psz_fmt, ...) // fwprintf(hfile, L"%s", &msg[0]); OutputDebugString(&msg[0]); } -#endif \ No newline at end of file +#endif diff --git a/pcsx2/USB/osdebugout.h b/pcsx2/USB/osdebugout.h index ad3ea84604..777d48af49 100644 --- a/pcsx2/USB/osdebugout.h +++ b/pcsx2/USB/osdebugout.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include diff --git a/pcsx2/USB/platcompat.h b/pcsx2/USB/platcompat.h index 988d310dd4..6c6cc43a26 100644 --- a/pcsx2/USB/platcompat.h +++ b/pcsx2/USB/platcompat.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once // Annoying defines diff --git a/pcsx2/USB/proxybase.h b/pcsx2/USB/proxybase.h index 36c7bdfe33..dc840b603b 100644 --- a/pcsx2/USB/proxybase.h +++ b/pcsx2/USB/proxybase.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once //TODO Maybe too much inheritance? class ProxyBase @@ -7,4 +22,4 @@ class ProxyBase virtual ~ProxyBase() {} virtual const TCHAR* Name() const = 0; virtual int Configure(int port, const char* dev_type, void *data) = 0; -}; \ No newline at end of file +}; diff --git a/pcsx2/USB/qemu-usb/USBinternal.h b/pcsx2/USB/qemu-usb/USBinternal.h index dfd2e3ac60..df475137f3 100644 --- a/pcsx2/USB/qemu-usb/USBinternal.h +++ b/pcsx2/USB/qemu-usb/USBinternal.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef USBINTERNAL_H #define USBINTERNAL_H @@ -284,4 +299,4 @@ void ohci_hard_reset(OHCIState *ohci); void ohci_soft_reset(OHCIState *ohci); int ohci_bus_start(OHCIState *ohci); void ohci_bus_stop(OHCIState *ohci); -#endif \ No newline at end of file +#endif diff --git a/pcsx2/USB/qemu-usb/bus.cpp b/pcsx2/USB/qemu-usb/bus.cpp index 3e3ae548ed..5976ca27f9 100644 --- a/pcsx2/USB/qemu-usb/bus.cpp +++ b/pcsx2/USB/qemu-usb/bus.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "USBinternal.h" #include "vl.h" diff --git a/pcsx2/USB/qemu-usb/desc.cpp b/pcsx2/USB/qemu-usb/desc.cpp index 5cb346b9b2..dcc1800031 100644 --- a/pcsx2/USB/qemu-usb/desc.cpp +++ b/pcsx2/USB/qemu-usb/desc.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "vl.h" #include "desc.h" #include "glib.h" diff --git a/pcsx2/USB/qemu-usb/desc.h b/pcsx2/USB/qemu-usb/desc.h index 90ebe9797c..dfd32ba674 100644 --- a/pcsx2/USB/qemu-usb/desc.h +++ b/pcsx2/USB/qemu-usb/desc.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include diff --git a/pcsx2/USB/qemu-usb/glib.cpp b/pcsx2/USB/qemu-usb/glib.cpp index 90c97c74fb..8175dcbab1 100644 --- a/pcsx2/USB/qemu-usb/glib.cpp +++ b/pcsx2/USB/qemu-usb/glib.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "glib.h" #include #include @@ -148,4 +163,4 @@ my_g_realloc_n (void* mem, } return my_g_realloc (mem, n_blocks * n_block_bytes); -} \ No newline at end of file +} diff --git a/pcsx2/USB/qemu-usb/glib.h b/pcsx2/USB/qemu-usb/glib.h index 8130422ab0..cc80ed1b57 100644 --- a/pcsx2/USB/qemu-usb/glib.h +++ b/pcsx2/USB/qemu-usb/glib.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef GLIB_H #define GLIB_H #include diff --git a/pcsx2/USB/qemu-usb/hid.h b/pcsx2/USB/qemu-usb/hid.h index 5b80b54ca3..2ccb9cda53 100644 --- a/pcsx2/USB/qemu-usb/hid.h +++ b/pcsx2/USB/qemu-usb/hid.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef QEMU_HID_H #define QEMU_HID_H #include "vl.h" diff --git a/pcsx2/USB/qemu-usb/input-keymap-linux-to-qcode.cpp b/pcsx2/USB/qemu-usb/input-keymap-linux-to-qcode.cpp index 0938561628..e6d4c8a326 100644 --- a/pcsx2/USB/qemu-usb/input-keymap-linux-to-qcode.cpp +++ b/pcsx2/USB/qemu-usb/input-keymap-linux-to-qcode.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "input-keymap-linux-to-qcode.h" const QKeyCode qemu_input_map_linux_to_qcode[] = { Q_KEY_CODE_UNMAPPED, /* linux:0 (KEY_RESERVED) -> linux:0 (KEY_RESERVED) -> qcode:Q_KEY_CODE_UNMAPPED (unmapped) */ @@ -526,4 +541,4 @@ const QKeyCode qemu_input_map_linux_to_qcode[] = { Q_KEY_CODE_UNMAPPED, /* linux:523 (KEY_NUMERIC_POUND) -> linux:523 (KEY_NUMERIC_POUND) -> qcode:Q_KEY_CODE_UNMAPPED (unnamed) */ Q_KEY_CODE_UNMAPPED, /* linux:524 (KEY_RFKILL) -> linux:524 (KEY_RFKILL) -> qcode:Q_KEY_CODE_UNMAPPED (unnamed) */ }; -const size_t qemu_input_map_linux_to_qcode_len = sizeof(qemu_input_map_linux_to_qcode) / sizeof(qemu_input_map_linux_to_qcode[0]); \ No newline at end of file +const size_t qemu_input_map_linux_to_qcode_len = sizeof(qemu_input_map_linux_to_qcode) / sizeof(qemu_input_map_linux_to_qcode[0]); diff --git a/pcsx2/USB/qemu-usb/input-keymap-linux-to-qcode.h b/pcsx2/USB/qemu-usb/input-keymap-linux-to-qcode.h index 35180a0023..818a6529a1 100644 --- a/pcsx2/USB/qemu-usb/input-keymap-linux-to-qcode.h +++ b/pcsx2/USB/qemu-usb/input-keymap-linux-to-qcode.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "hid.h" extern const QKeyCode qemu_input_map_linux_to_qcode[]; -extern const size_t qemu_input_map_linux_to_qcode_len; \ No newline at end of file +extern const size_t qemu_input_map_linux_to_qcode_len; diff --git a/pcsx2/USB/qemu-usb/input-keymap-qcode-to-qnum.cpp b/pcsx2/USB/qemu-usb/input-keymap-qcode-to-qnum.cpp index cd2cee959b..a290d2d834 100644 --- a/pcsx2/USB/qemu-usb/input-keymap-qcode-to-qnum.cpp +++ b/pcsx2/USB/qemu-usb/input-keymap-qcode-to-qnum.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "input-keymap.h" //TODO how much does std::map kill perf if any? @@ -195,4 +210,4 @@ int qemu_input_key_value_to_scancode(const KeyValue *value, bool down, codes[count++] = keycode; return count; -} \ No newline at end of file +} diff --git a/pcsx2/USB/qemu-usb/input-keymap-win32-to-qcode.cpp b/pcsx2/USB/qemu-usb/input-keymap-win32-to-qcode.cpp index eaaa814113..0619b26b14 100644 --- a/pcsx2/USB/qemu-usb/input-keymap-win32-to-qcode.cpp +++ b/pcsx2/USB/qemu-usb/input-keymap-win32-to-qcode.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + /* * This file is auto-generated from keymaps.csv on 2018-12-22 15:48 * To re-generate, run: diff --git a/pcsx2/USB/qemu-usb/input-keymap-win32-to-qcode.h b/pcsx2/USB/qemu-usb/input-keymap-win32-to-qcode.h index 58b57f81fe..024661b1df 100644 --- a/pcsx2/USB/qemu-usb/input-keymap-win32-to-qcode.h +++ b/pcsx2/USB/qemu-usb/input-keymap-win32-to-qcode.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + /* * This file is auto-generated from keymaps.csv on 2018-12-22 15:48 * Database checksum sha256(ef8f29f4e4294479e2789aa61e410c4b0464d4f0ad16bcc1526086a4f123bc10) @@ -6,4 +21,4 @@ */ #include #include "hid.h" -extern const std::array qemu_input_map_win32_to_qcode; \ No newline at end of file +extern const std::array qemu_input_map_win32_to_qcode; diff --git a/pcsx2/USB/qemu-usb/input-keymap.h b/pcsx2/USB/qemu-usb/input-keymap.h index 516f3c3cdb..29267821e1 100644 --- a/pcsx2/USB/qemu-usb/input-keymap.h +++ b/pcsx2/USB/qemu-usb/input-keymap.h @@ -1,7 +1,22 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include #include "hid.h" extern const std::map qemu_input_map_qcode_to_qnum; int qemu_input_qcode_to_number(const QKeyCode value); int qemu_input_key_value_to_number(const KeyValue *value); -int qemu_input_key_value_to_scancode(const KeyValue *value, bool down, int *codes); \ No newline at end of file +int qemu_input_key_value_to_scancode(const KeyValue *value, bool down, int *codes); diff --git a/pcsx2/USB/qemu-usb/vl.cpp b/pcsx2/USB/qemu-usb/vl.cpp index 60de5c8beb..570738243a 100644 --- a/pcsx2/USB/qemu-usb/vl.cpp +++ b/pcsx2/USB/qemu-usb/vl.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "vl.h" /* compute with 96 bit intermediate result: (a*b)/c */ diff --git a/pcsx2/USB/shared/hidapi.cpp b/pcsx2/USB/shared/hidapi.cpp index 249341cfd8..6999c2de89 100644 --- a/pcsx2/USB/shared/hidapi.cpp +++ b/pcsx2/USB/shared/hidapi.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include #include #include "hidapi.h" diff --git a/pcsx2/USB/shared/hidapi.h b/pcsx2/USB/shared/hidapi.h index 504a2e108c..d2d65acc61 100644 --- a/pcsx2/USB/shared/hidapi.h +++ b/pcsx2/USB/shared/hidapi.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef HIDAPI_H #define HIDAPI_H @@ -448,4 +463,4 @@ int InitHid(); #include -#endif \ No newline at end of file +#endif diff --git a/pcsx2/USB/shared/inifile.cpp b/pcsx2/USB/shared/inifile.cpp index 6464730514..cca1f47592 100644 --- a/pcsx2/USB/shared/inifile.cpp +++ b/pcsx2/USB/shared/inifile.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "inifile.h" #include #include diff --git a/pcsx2/USB/shared/rawinput.cpp b/pcsx2/USB/shared/rawinput.cpp index 2d97a49e90..538232d71f 100644 --- a/pcsx2/USB/shared/rawinput.cpp +++ b/pcsx2/USB/shared/rawinput.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "rawinput.h" #include #include diff --git a/pcsx2/USB/shared/rawinput.h b/pcsx2/USB/shared/rawinput.h index ef7828a7cf..0063ee95a8 100644 --- a/pcsx2/USB/shared/rawinput.h +++ b/pcsx2/USB/shared/rawinput.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include #include @@ -16,4 +31,4 @@ namespace shared{ namespace rawinput{ void RegisterCallback(ParseRawInputCB *cb); void UnregisterCallback(ParseRawInputCB *cb); -}} \ No newline at end of file +}} diff --git a/pcsx2/USB/shared/ringbuffer.cpp b/pcsx2/USB/shared/ringbuffer.cpp index 1eb34e90c7..5ceba6967f 100644 --- a/pcsx2/USB/shared/ringbuffer.cpp +++ b/pcsx2/USB/shared/ringbuffer.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "ringbuffer.h" #include #include diff --git a/pcsx2/USB/shared/ringbuffer.h b/pcsx2/USB/shared/ringbuffer.h index 05ebb2bc61..8af909a2e9 100644 --- a/pcsx2/USB/shared/ringbuffer.h +++ b/pcsx2/USB/shared/ringbuffer.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef RINGBUFFER_H #define RINGBUFFER_H #include // for std::min diff --git a/pcsx2/USB/shared/shared.cpp b/pcsx2/USB/shared/shared.cpp index 38b61538ae..38814ecbcf 100644 --- a/pcsx2/USB/shared/shared.cpp +++ b/pcsx2/USB/shared/shared.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "shared.h" #include @@ -23,4 +38,4 @@ namespace shared { #endif } -}; \ No newline at end of file +}; diff --git a/pcsx2/USB/shared/shared.h b/pcsx2/USB/shared/shared.h index efa1115126..21128d76ae 100644 --- a/pcsx2/USB/shared/shared.h +++ b/pcsx2/USB/shared/shared.h @@ -1,5 +1,20 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once namespace shared { void Initialize(void *ptr); void Uninitialize(/*void *ptr*/); -}; \ No newline at end of file +}; diff --git a/pcsx2/USB/usb-eyetoy/api_init_linux.cpp b/pcsx2/USB/usb-eyetoy/api_init_linux.cpp index 037a33854f..fbac059bd3 100644 --- a/pcsx2/USB/usb-eyetoy/api_init_linux.cpp +++ b/pcsx2/USB/usb-eyetoy/api_init_linux.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "videodeviceproxy.h" #include "cam-linux.h" diff --git a/pcsx2/USB/usb-eyetoy/api_init_win32.cpp b/pcsx2/USB/usb-eyetoy/api_init_win32.cpp index 3de26c97ca..6b1b45e7c9 100644 --- a/pcsx2/USB/usb-eyetoy/api_init_win32.cpp +++ b/pcsx2/USB/usb-eyetoy/api_init_win32.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "videodeviceproxy.h" #include "cam-windows.h" diff --git a/pcsx2/USB/usb-eyetoy/cam-linux.cpp b/pcsx2/USB/usb-eyetoy/cam-linux.cpp index a7d8215ba8..c7fc666236 100644 --- a/pcsx2/USB/usb-eyetoy/cam-linux.cpp +++ b/pcsx2/USB/usb-eyetoy/cam-linux.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include #include #include diff --git a/pcsx2/USB/usb-eyetoy/cam-linux.h b/pcsx2/USB/usb-eyetoy/cam-linux.h index fba964ff24..f802095de1 100644 --- a/pcsx2/USB/usb-eyetoy/cam-linux.h +++ b/pcsx2/USB/usb-eyetoy/cam-linux.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "videodev.h" namespace usb_eyetoy diff --git a/pcsx2/USB/usb-eyetoy/cam-windows.cpp b/pcsx2/USB/usb-eyetoy/cam-windows.cpp index 3d2772ab83..3fb25f2c5c 100644 --- a/pcsx2/USB/usb-eyetoy/cam-windows.cpp +++ b/pcsx2/USB/usb-eyetoy/cam-windows.cpp @@ -1,4 +1,17 @@ - +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ #include "videodev.h" #include "cam-windows.h" diff --git a/pcsx2/USB/usb-eyetoy/cam-windows.h b/pcsx2/USB/usb-eyetoy/cam-windows.h index 1cdfec0757..705be43f6b 100644 --- a/pcsx2/USB/usb-eyetoy/cam-windows.h +++ b/pcsx2/USB/usb-eyetoy/cam-windows.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "videodev.h" #include diff --git a/pcsx2/USB/usb-eyetoy/jo_mpeg.h b/pcsx2/USB/usb-eyetoy/jo_mpeg.h index 1c386d0c15..7362146bcd 100644 --- a/pcsx2/USB/usb-eyetoy/jo_mpeg.h +++ b/pcsx2/USB/usb-eyetoy/jo_mpeg.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifdef __cplusplus extern "C" { #endif diff --git a/pcsx2/USB/usb-eyetoy/ov519.h b/pcsx2/USB/usb-eyetoy/ov519.h index ee6cb75f45..95761e4a64 100644 --- a/pcsx2/USB/usb-eyetoy/ov519.h +++ b/pcsx2/USB/usb-eyetoy/ov519.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + /* I2C registers */ #define R51x_I2C_W_SID 0x41 #define R51x_I2C_SADDR_3 0x42 diff --git a/pcsx2/USB/usb-eyetoy/usb-eyetoy-webcam.cpp b/pcsx2/USB/usb-eyetoy/usb-eyetoy-webcam.cpp index 226e44559c..f8c3afcd68 100644 --- a/pcsx2/USB/usb-eyetoy/usb-eyetoy-webcam.cpp +++ b/pcsx2/USB/usb-eyetoy/usb-eyetoy-webcam.cpp @@ -1,22 +1,16 @@ -/* - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . */ #include "videodeviceproxy.h" diff --git a/pcsx2/USB/usb-eyetoy/usb-eyetoy-webcam.h b/pcsx2/USB/usb-eyetoy/usb-eyetoy-webcam.h index d44adb3334..ec86251320 100644 --- a/pcsx2/USB/usb-eyetoy/usb-eyetoy-webcam.h +++ b/pcsx2/USB/usb-eyetoy/usb-eyetoy-webcam.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef USBEYETOYWEBCAM_H #define USBEYETOYWEBCAM_H diff --git a/pcsx2/USB/usb-eyetoy/videodev.h b/pcsx2/USB/usb-eyetoy/videodev.h index cc3b82fec7..88c492be1d 100644 --- a/pcsx2/USB/usb-eyetoy/videodev.h +++ b/pcsx2/USB/usb-eyetoy/videodev.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef VIDEODEV_H #define VIDEODEV_H #include "../qemu-usb/vl.h" @@ -22,4 +37,4 @@ protected: }; } //namespace -#endif \ No newline at end of file +#endif diff --git a/pcsx2/USB/usb-eyetoy/videodeviceproxy.h b/pcsx2/USB/usb-eyetoy/videodeviceproxy.h index fe6e76ccd5..01f8919717 100644 --- a/pcsx2/USB/usb-eyetoy/videodeviceproxy.h +++ b/pcsx2/USB/usb-eyetoy/videodeviceproxy.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef VIDEODEVICEPROXY_H #define VIDEODEVICEPROXY_H #include diff --git a/pcsx2/USB/usb-hid/api_init_linux.cpp b/pcsx2/USB/usb-hid/api_init_linux.cpp index 87de7bf6f5..36fbaaab0c 100644 --- a/pcsx2/USB/usb-hid/api_init_linux.cpp +++ b/pcsx2/USB/usb-hid/api_init_linux.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "hidproxy.h" #include "evdev/evdev.h" #include "noop.h" @@ -7,4 +22,4 @@ void usb_hid::RegisterUsbHID::Register() auto& inst = RegisterUsbHID::instance(); inst.Add(usb_hid::evdev::APINAME, new UsbHIDProxy()); inst.Add(usb_hid::noop::APINAME, new UsbHIDProxy()); -} \ No newline at end of file +} diff --git a/pcsx2/USB/usb-hid/api_init_win32.cpp b/pcsx2/USB/usb-hid/api_init_win32.cpp index a03a047f0c..4c313cc683 100644 --- a/pcsx2/USB/usb-hid/api_init_win32.cpp +++ b/pcsx2/USB/usb-hid/api_init_win32.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "hidproxy.h" #include "raw/rawinput.h" #include "noop.h" @@ -7,4 +22,4 @@ void usb_hid::RegisterUsbHID::Register() auto& inst = RegisterUsbHID::instance(); inst.Add(usb_hid::raw::APINAME, new UsbHIDProxy()); inst.Add(usb_hid::noop::APINAME, new UsbHIDProxy()); -} \ No newline at end of file +} diff --git a/pcsx2/USB/usb-hid/evdev/evdev-gtk.cpp b/pcsx2/USB/usb-hid/evdev/evdev-gtk.cpp index e67b0edfd5..17e2dc4565 100644 --- a/pcsx2/USB/usb-hid/evdev/evdev-gtk.cpp +++ b/pcsx2/USB/usb-hid/evdev/evdev-gtk.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "../../osdebugout.h" #include "../usb-hid.h" #include "evdev.h" diff --git a/pcsx2/USB/usb-hid/evdev/evdev.cpp b/pcsx2/USB/usb-hid/evdev/evdev.cpp index aba98aa026..c84b7824bf 100644 --- a/pcsx2/USB/usb-hid/evdev/evdev.cpp +++ b/pcsx2/USB/usb-hid/evdev/evdev.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "evdev.h" #include "../../osdebugout.h" #include diff --git a/pcsx2/USB/usb-hid/evdev/evdev.h b/pcsx2/USB/usb-hid/evdev/evdev.h index 127284753a..0aecda9522 100644 --- a/pcsx2/USB/usb-hid/evdev/evdev.h +++ b/pcsx2/USB/usb-hid/evdev/evdev.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include "../../linux/util.h" #include diff --git a/pcsx2/USB/usb-hid/hidproxy.h b/pcsx2/USB/usb-hid/hidproxy.h index a251836184..4e53f967ec 100644 --- a/pcsx2/USB/usb-hid/hidproxy.h +++ b/pcsx2/USB/usb-hid/hidproxy.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef USBHIDPROXY_H #define USBHIDPROXY_H #include @@ -71,4 +86,4 @@ class RegisterUsbHID : public RegisterProxy }; } -#endif \ No newline at end of file +#endif diff --git a/pcsx2/USB/usb-hid/noop.h b/pcsx2/USB/usb-hid/noop.h index 78eed780d6..b27d652159 100644 --- a/pcsx2/USB/usb-hid/noop.h +++ b/pcsx2/USB/usb-hid/noop.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "usb-hid.h" #include "hidproxy.h" @@ -27,4 +42,4 @@ public: } }; -}} \ No newline at end of file +}} diff --git a/pcsx2/USB/usb-hid/raw/rawinput.cpp b/pcsx2/USB/usb-hid/raw/rawinput.cpp index d04cb5e8e3..6f6302d284 100644 --- a/pcsx2/USB/usb-hid/raw/rawinput.cpp +++ b/pcsx2/USB/usb-hid/raw/rawinput.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "rawinput.h" #include "../../Win32/Config.h" #include "qemu-usb/input-keymap.h" @@ -269,4 +284,4 @@ int RawInput::Configure(int port, const char* dev_type, HIDType type, void *data return res; } -}} //namespace \ No newline at end of file +}} //namespace diff --git a/pcsx2/USB/usb-hid/raw/rawinput.h b/pcsx2/USB/usb-hid/raw/rawinput.h index 6b8523870c..a4966ec3e1 100644 --- a/pcsx2/USB/usb-hid/raw/rawinput.h +++ b/pcsx2/USB/usb-hid/raw/rawinput.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "shared/rawinput.h" #include "../hidproxy.h" #include "../usb-hid.h" @@ -31,4 +46,4 @@ public: static int Configure(int port, const char* dev_type, HIDType, void *data); }; -}} // namespace \ No newline at end of file +}} // namespace diff --git a/pcsx2/USB/usb-hid/usb-hid.h b/pcsx2/USB/usb-hid/usb-hid.h index 40a1fc6276..57e732d385 100644 --- a/pcsx2/USB/usb-hid/usb-hid.h +++ b/pcsx2/USB/usb-hid/usb-hid.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include "../configuration.h" #include "../qemu-usb/hid.h" diff --git a/pcsx2/USB/usb-mic/api_init_linux.cpp b/pcsx2/USB/usb-mic/api_init_linux.cpp index 19718b8977..cdad23c6bf 100644 --- a/pcsx2/USB/usb-mic/api_init_linux.cpp +++ b/pcsx2/USB/usb-mic/api_init_linux.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "audiodeviceproxy.h" #include "audiodev-noop.h" #include "audiodev-pulse.h" @@ -7,4 +22,4 @@ void usb_mic::RegisterAudioDevice::Register() auto& inst = RegisterAudioDevice::instance(); inst.Add(audiodev_noop::APINAME, new AudioDeviceProxy()); inst.Add(audiodev_pulse::APINAME, new AudioDeviceProxy()); -} \ No newline at end of file +} diff --git a/pcsx2/USB/usb-mic/api_init_win32.cpp b/pcsx2/USB/usb-mic/api_init_win32.cpp index 7151ba9e3a..099984d375 100644 --- a/pcsx2/USB/usb-mic/api_init_win32.cpp +++ b/pcsx2/USB/usb-mic/api_init_win32.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "audiodeviceproxy.h" #include "audiodev-noop.h" #include "audiodev-wasapi.h" @@ -7,4 +22,4 @@ void usb_mic::RegisterAudioDevice::Register() auto& inst = RegisterAudioDevice::instance(); inst.Add(audiodev_noop::APINAME, new AudioDeviceProxy()); inst.Add(audiodev_wasapi::APINAME, new AudioDeviceProxy()); -} \ No newline at end of file +} diff --git a/pcsx2/USB/usb-mic/audiodev-noop.h b/pcsx2/USB/usb-mic/audiodev-noop.h index b21ed8cba3..fc0c6e0d0e 100644 --- a/pcsx2/USB/usb-mic/audiodev-noop.h +++ b/pcsx2/USB/usb-mic/audiodev-noop.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include "audiodeviceproxy.h" @@ -63,4 +78,4 @@ public: } }; -}} \ No newline at end of file +}} diff --git a/pcsx2/USB/usb-mic/audiodev-pulse.cpp b/pcsx2/USB/usb-mic/audiodev-pulse.cpp index 69d70e461c..c69090a415 100644 --- a/pcsx2/USB/usb-mic/audiodev-pulse.cpp +++ b/pcsx2/USB/usb-mic/audiodev-pulse.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "../gtk.h" #include "audiodev-pulse.h" #ifdef DYNLINK_PULSE diff --git a/pcsx2/USB/usb-mic/audiodev-pulse.h b/pcsx2/USB/usb-mic/audiodev-pulse.h index e146f32bf7..5a5bf44f12 100644 --- a/pcsx2/USB/usb-mic/audiodev-pulse.h +++ b/pcsx2/USB/usb-mic/audiodev-pulse.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include #include #include diff --git a/pcsx2/USB/usb-mic/audiodev-wasapi.cpp b/pcsx2/USB/usb-mic/audiodev-wasapi.cpp index fdb9467d3a..f36abc961d 100644 --- a/pcsx2/USB/usb-mic/audiodev-wasapi.cpp +++ b/pcsx2/USB/usb-mic/audiodev-wasapi.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + // Used OBS as example #include @@ -1011,4 +1026,4 @@ static BOOL CALLBACK WASAPIDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lPa return FALSE; } -}} // namespace \ No newline at end of file +}} // namespace diff --git a/pcsx2/USB/usb-mic/audiodev-wasapi.h b/pcsx2/USB/usb-mic/audiodev-wasapi.h index 9dca55f6a1..e6b9e8cf38 100644 --- a/pcsx2/USB/usb-mic/audiodev-wasapi.h +++ b/pcsx2/USB/usb-mic/audiodev-wasapi.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + // Used OBS as example #include "audiodeviceproxy.h" @@ -138,4 +153,4 @@ private: LONGLONG mLastTimeNS = 0; }; -}} // namespace \ No newline at end of file +}} // namespace diff --git a/pcsx2/USB/usb-mic/audiodev.h b/pcsx2/USB/usb-mic/audiodev.h index c5fcb14cd8..e241b7d4e4 100644 --- a/pcsx2/USB/usb-mic/audiodev.h +++ b/pcsx2/USB/usb-mic/audiodev.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + // // Types to shared by platforms and config. dialog. // diff --git a/pcsx2/USB/usb-mic/audiodeviceproxy.h b/pcsx2/USB/usb-mic/audiodeviceproxy.h index 067b1576ee..9849c03250 100644 --- a/pcsx2/USB/usb-mic/audiodeviceproxy.h +++ b/pcsx2/USB/usb-mic/audiodeviceproxy.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef AUDIODEVICEPROXY_H #define AUDIODEVICEPROXY_H #include @@ -86,4 +101,4 @@ class RegisterAudioDevice : public RegisterProxy static void Register(); }; } -#endif \ No newline at end of file +#endif diff --git a/pcsx2/USB/usb-mic/usb-headset.h b/pcsx2/USB/usb-mic/usb-headset.h index e610dd05b1..65d7170457 100644 --- a/pcsx2/USB/usb-mic/usb-headset.h +++ b/pcsx2/USB/usb-mic/usb-headset.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "../deviceproxy.h" #include "audiodeviceproxy.h" @@ -23,4 +38,4 @@ public: static int Freeze(int mode, USBDevice *dev, void *data); }; -} \ No newline at end of file +} diff --git a/pcsx2/USB/usb-mic/usb-mic-logitech.cpp b/pcsx2/USB/usb-mic/usb-mic-logitech.cpp index 56c8c34ec8..c23b3ade47 100644 --- a/pcsx2/USB/usb-mic/usb-mic-logitech.cpp +++ b/pcsx2/USB/usb-mic/usb-mic-logitech.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "usb-mic-singstar.h" #include "audio.h" #include "../qemu-usb/desc.h" diff --git a/pcsx2/USB/usb-mic/usb-mic-singstar.h b/pcsx2/USB/usb-mic/usb-mic-singstar.h index f5140d0ca3..fad3680115 100644 --- a/pcsx2/USB/usb-mic/usb-mic-singstar.h +++ b/pcsx2/USB/usb-mic/usb-mic-singstar.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef USBMICSINGSTAR_H #define USBMICSINGSTAR_H #include "../deviceproxy.h" diff --git a/pcsx2/USB/usb-msd/usb-msd-gtk.cpp b/pcsx2/USB/usb-msd/usb-msd-gtk.cpp index 880ae92684..2aac54765e 100644 --- a/pcsx2/USB/usb-msd/usb-msd-gtk.cpp +++ b/pcsx2/USB/usb-msd/usb-msd-gtk.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "usb-msd.h" #include "../linux/ini.h" #include "../configuration.h" diff --git a/pcsx2/USB/usb-msd/usb-msd-win32.cpp b/pcsx2/USB/usb-msd/usb-msd-win32.cpp index 7f7e126389..47306306f8 100644 --- a/pcsx2/USB/usb-msd/usb-msd-win32.cpp +++ b/pcsx2/USB/usb-msd/usb-msd-win32.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "usb-msd.h" #include "../Win32/Config.h" #include "../Win32/resource.h" @@ -76,4 +91,4 @@ int MsdDevice::Configure(int port, const std::string& api, void *data) (DLGPROC)MsdDlgProc, port); } -} \ No newline at end of file +} diff --git a/pcsx2/USB/usb-msd/usb-msd.h b/pcsx2/USB/usb-msd/usb-msd.h index b91f6631d6..e15d66d911 100644 --- a/pcsx2/USB/usb-msd/usb-msd.h +++ b/pcsx2/USB/usb-msd/usb-msd.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef USBMSD_H #define USBMSD_H #include "../deviceproxy.h" @@ -29,4 +44,4 @@ public: }; } -#endif \ No newline at end of file +#endif diff --git a/pcsx2/USB/usb-pad/api_init_linux.cpp b/pcsx2/USB/usb-pad/api_init_linux.cpp index 7945c9d2ca..d6c8184730 100644 --- a/pcsx2/USB/usb-pad/api_init_linux.cpp +++ b/pcsx2/USB/usb-pad/api_init_linux.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "padproxy.h" #include "evdev/evdev.h" #include "joydev/joydev.h" @@ -7,4 +22,4 @@ void usb_pad::RegisterPad::Register() auto& inst = RegisterPad::instance(); inst.Add("evdev", new PadProxy()); inst.Add("joydev", new PadProxy()); -} \ No newline at end of file +} diff --git a/pcsx2/USB/usb-pad/api_init_win32.cpp b/pcsx2/USB/usb-pad/api_init_win32.cpp index 3072fe8824..17e20d5033 100644 --- a/pcsx2/USB/usb-pad/api_init_win32.cpp +++ b/pcsx2/USB/usb-pad/api_init_win32.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "padproxy.h" #include "raw/usb-pad-raw.h" #include "dx/usb-pad-dx.h" @@ -8,4 +23,4 @@ void usb_pad::RegisterPad::Register() inst.Add(raw::APINAME, new PadProxy()); inst.Add(dx::APINAME, new PadProxy()); OSDebugOut(TEXT("yep!\n")); -} \ No newline at end of file +} diff --git a/pcsx2/USB/usb-pad/bitjuggling.cpp b/pcsx2/USB/usb-pad/bitjuggling.cpp index 653ee53a8d..e4f35a540d 100644 --- a/pcsx2/USB/usb-pad/bitjuggling.cpp +++ b/pcsx2/USB/usb-pad/bitjuggling.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "../qemu-usb/vl.h" #include diff --git a/pcsx2/USB/usb-pad/dx/dinput-config.cpp b/pcsx2/USB/usb-pad/dx/dinput-config.cpp index 517b3fbdff..c3f544571b 100644 --- a/pcsx2/USB/usb-pad/dx/dinput-config.cpp +++ b/pcsx2/USB/usb-pad/dx/dinput-config.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma warning (push) // floats to int #pragma warning (disable : 4244) diff --git a/pcsx2/USB/usb-pad/dx/dinput.cpp b/pcsx2/USB/usb-pad/dx/dinput.cpp index c5cb77c04b..4bb86462f7 100644 --- a/pcsx2/USB/usb-pad/dx/dinput.cpp +++ b/pcsx2/USB/usb-pad/dx/dinput.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include #include "dx.h" @@ -924,4 +939,4 @@ void TestForce(int port) } -}} //namespace \ No newline at end of file +}} //namespace diff --git a/pcsx2/USB/usb-pad/dx/dx.h b/pcsx2/USB/usb-pad/dx/dx.h index b93bd24425..1bf727d8b5 100644 --- a/pcsx2/USB/usb-pad/dx/dx.h +++ b/pcsx2/USB/usb-pad/dx/dx.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include diff --git a/pcsx2/USB/usb-pad/dx/usb-pad-dx.cpp b/pcsx2/USB/usb-pad/dx/usb-pad-dx.cpp index 50fedfe9a0..bb1b7bad76 100644 --- a/pcsx2/USB/usb-pad/dx/usb-pad-dx.cpp +++ b/pcsx2/USB/usb-pad/dx/usb-pad-dx.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "usb-pad-dx.h" #include "dx.h" #include @@ -126,4 +141,4 @@ int DInputPad::Close() return 0; } -}} //namespace \ No newline at end of file +}} //namespace diff --git a/pcsx2/USB/usb-pad/dx/usb-pad-dx.h b/pcsx2/USB/usb-pad/dx/usb-pad-dx.h index b254a27efa..548c912b59 100644 --- a/pcsx2/USB/usb-pad/dx/usb-pad-dx.h +++ b/pcsx2/USB/usb-pad/dx/usb-pad-dx.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "../padproxy.h" #include "../../Win32/Config.h" @@ -26,4 +41,4 @@ private: int32_t mUseRamp; }; -}} //namespace \ No newline at end of file +}} //namespace diff --git a/pcsx2/USB/usb-pad/evdev/evdev-ff.cpp b/pcsx2/USB/usb-pad/evdev/evdev-ff.cpp index 0667cf86b4..82006dc133 100644 --- a/pcsx2/USB/usb-pad/evdev/evdev-ff.cpp +++ b/pcsx2/USB/usb-pad/evdev/evdev-ff.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "evdev-ff.h" #include "../../osdebugout.h" #include "../../usb-pad/lg/lg_ff.h" diff --git a/pcsx2/USB/usb-pad/evdev/evdev-ff.h b/pcsx2/USB/usb-pad/evdev/evdev-ff.h index 254a8fce14..0e580f750c 100644 --- a/pcsx2/USB/usb-pad/evdev/evdev-ff.h +++ b/pcsx2/USB/usb-pad/evdev/evdev-ff.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef EVDEV_FF_H #define EVDEV_FF_H diff --git a/pcsx2/USB/usb-pad/evdev/evdev-gtk.cpp b/pcsx2/USB/usb-pad/evdev/evdev-gtk.cpp index 23f3f399df..62af8d1c2f 100644 --- a/pcsx2/USB/usb-pad/evdev/evdev-gtk.cpp +++ b/pcsx2/USB/usb-pad/evdev/evdev-gtk.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "evdev.h" #include "../../osdebugout.h" diff --git a/pcsx2/USB/usb-pad/evdev/evdev.cpp b/pcsx2/USB/usb-pad/evdev/evdev.cpp index 9743c29096..b508d668f6 100644 --- a/pcsx2/USB/usb-pad/evdev/evdev.cpp +++ b/pcsx2/USB/usb-pad/evdev/evdev.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "evdev.h" #include "../../osdebugout.h" #include diff --git a/pcsx2/USB/usb-pad/evdev/evdev.h b/pcsx2/USB/usb-pad/evdev/evdev.h index 09814621e9..1bb9b575b9 100644 --- a/pcsx2/USB/usb-pad/evdev/evdev.h +++ b/pcsx2/USB/usb-pad/evdev/evdev.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include "../../linux/util.h" //#include //gtk.h pulls in? diff --git a/pcsx2/USB/usb-pad/evdev/shared-gtk.cpp b/pcsx2/USB/usb-pad/evdev/shared-gtk.cpp index d666306c6a..409fa25c9b 100644 --- a/pcsx2/USB/usb-pad/evdev/shared-gtk.cpp +++ b/pcsx2/USB/usb-pad/evdev/shared-gtk.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "shared.h" #include "../../osdebugout.h" #include "../../icon_buzz_24.h" diff --git a/pcsx2/USB/usb-pad/evdev/shared.h b/pcsx2/USB/usb-pad/evdev/shared.h index f78a349462..d3d2eb96cc 100644 --- a/pcsx2/USB/usb-pad/evdev/shared.h +++ b/pcsx2/USB/usb-pad/evdev/shared.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include #include diff --git a/pcsx2/USB/usb-pad/joydev/joydev-gtk.cpp b/pcsx2/USB/usb-pad/joydev/joydev-gtk.cpp index 5785a1092d..8baabd1289 100644 --- a/pcsx2/USB/usb-pad/joydev/joydev-gtk.cpp +++ b/pcsx2/USB/usb-pad/joydev/joydev-gtk.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "joydev.h" #include "../../osdebugout.h" diff --git a/pcsx2/USB/usb-pad/joydev/joydev.cpp b/pcsx2/USB/usb-pad/joydev/joydev.cpp index 84b27f022e..71c23962cd 100644 --- a/pcsx2/USB/usb-pad/joydev/joydev.cpp +++ b/pcsx2/USB/usb-pad/joydev/joydev.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "joydev.h" #include "../../osdebugout.h" #include diff --git a/pcsx2/USB/usb-pad/joydev/joydev.h b/pcsx2/USB/usb-pad/joydev/joydev.h index 193ea85507..3267b56666 100644 --- a/pcsx2/USB/usb-pad/joydev/joydev.h +++ b/pcsx2/USB/usb-pad/joydev/joydev.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include "../../linux/util.h" #include "../evdev/evdev-ff.h" diff --git a/pcsx2/USB/usb-pad/padproxy.h b/pcsx2/USB/usb-pad/padproxy.h index 52f875eb6e..a28920875e 100644 --- a/pcsx2/USB/usb-pad/padproxy.h +++ b/pcsx2/USB/usb-pad/padproxy.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef PADPROXY_H #define PADPROXY_H #include diff --git a/pcsx2/USB/usb-pad/raw/raw-config.cpp b/pcsx2/USB/usb-pad/raw/raw-config.cpp index 16b5b5d2b9..c85c4fa1e6 100644 --- a/pcsx2/USB/usb-pad/raw/raw-config.cpp +++ b/pcsx2/USB/usb-pad/raw/raw-config.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #define _WIN32_WINNT 0x0502 #include #include @@ -892,4 +907,4 @@ INT_PTR CALLBACK ConfigureRawDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM l return S_OK;//DefWindowProc(hW, uMsg, wParam, lParam); } -}} //namespace \ No newline at end of file +}} //namespace diff --git a/pcsx2/USB/usb-pad/raw/usb-pad-raw.cpp b/pcsx2/USB/usb-pad/raw/usb-pad-raw.cpp index 4494885ca5..07f5fc4c4e 100644 --- a/pcsx2/USB/usb-pad/raw/usb-pad-raw.cpp +++ b/pcsx2/USB/usb-pad/raw/usb-pad-raw.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "../../USB.h" #include "../../Win32/Config.h" #include "usb-pad-raw.h" @@ -499,4 +514,4 @@ int RawInputPad::Configure(int port, const char* dev_type, void *data) return (int)res; } -}} //namespace \ No newline at end of file +}} //namespace diff --git a/pcsx2/USB/usb-pad/raw/usb-pad-raw.h b/pcsx2/USB/usb-pad/raw/usb-pad-raw.h index 737d2ade65..25f7799e3f 100644 --- a/pcsx2/USB/usb-pad/raw/usb-pad-raw.h +++ b/pcsx2/USB/usb-pad/raw/usb-pad-raw.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef USBPADRAW_H #define USBPADRAW_H #include diff --git a/pcsx2/USB/usb-pad/usb-pad-ff.cpp b/pcsx2/USB/usb-pad/usb-pad-ff.cpp index 0f03749c77..64e2d52b2d 100644 --- a/pcsx2/USB/usb-pad/usb-pad-ff.cpp +++ b/pcsx2/USB/usb-pad/usb-pad-ff.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "usb-pad.h" #include "lg/lg_ff.h" #include "../osdebugout.h" diff --git a/pcsx2/USB/usb-pad/usb-pad.cpp b/pcsx2/USB/usb-pad/usb-pad.cpp index 32b1da474b..8b874cdafe 100644 --- a/pcsx2/USB/usb-pad/usb-pad.cpp +++ b/pcsx2/USB/usb-pad/usb-pad.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "padproxy.h" #include "usb-pad.h" #include "../qemu-usb/desc.h" diff --git a/pcsx2/USB/usb-pad/usb-pad.h b/pcsx2/USB/usb-pad/usb-pad.h index 4b1a736312..8ffa2eb1e7 100644 --- a/pcsx2/USB/usb-pad/usb-pad.h +++ b/pcsx2/USB/usb-pad/usb-pad.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2002-2020 PCSX2 Dev Team + * + * PCSX2 is free software: you can redistribute it and/or modify it under the terms + * of the GNU Lesser General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #ifndef USBPAD_H #define USBPAD_H