From 2764bd7c968c5d416acfc5877b189fd9f3493e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=97=B1=20PixelyIon?= Date: Fri, 25 Sep 2020 20:05:10 +0530 Subject: [PATCH] Use Vector for Kernel Handles + Remove Redundant Includes --- app/src/main/cpp/emu_jni.cpp | 1 + app/src/main/cpp/skyline/audio.h | 5 ---- .../main/cpp/skyline/audio/adpcm_decoder.cpp | 2 -- .../main/cpp/skyline/audio/adpcm_decoder.h | 1 - .../main/cpp/skyline/audio/circular_buffer.h | 2 -- app/src/main/cpp/skyline/audio/resampler.cpp | 2 -- app/src/main/cpp/skyline/audio/resampler.h | 1 - app/src/main/cpp/skyline/audio/track.cpp | 2 +- app/src/main/cpp/skyline/audio/track.h | 3 --- app/src/main/cpp/skyline/common.h | 5 +++- app/src/main/cpp/skyline/crypto/aes_cipher.h | 2 -- app/src/main/cpp/skyline/crypto/key_store.cpp | 1 - app/src/main/cpp/skyline/crypto/key_store.h | 2 -- app/src/main/cpp/skyline/gpu.h | 4 ---- app/src/main/cpp/skyline/gpu/engines/gpfifo.h | 4 +--- .../cpp/skyline/gpu/engines/maxwell_3d.cpp | 1 - .../main/cpp/skyline/gpu/engines/maxwell_3d.h | 6 ++--- app/src/main/cpp/skyline/gpu/gpfifo.h | 1 - .../cpp/skyline/gpu/macro_interpreter.cpp | 1 - app/src/main/cpp/skyline/gpu/syncpoint.cpp | 1 - app/src/main/cpp/skyline/gpu/syncpoint.h | 4 ++-- .../main/cpp/skyline/input/sections/common.h | 1 - app/src/main/cpp/skyline/input/touch.cpp | 1 - app/src/main/cpp/skyline/input/touch.h | 1 - app/src/main/cpp/skyline/kernel/ipc.h | 1 - app/src/main/cpp/skyline/kernel/memory.cpp | 4 ++-- app/src/main/cpp/skyline/kernel/memory.h | 2 -- app/src/main/cpp/skyline/kernel/svc.cpp | 3 +-- app/src/main/cpp/skyline/kernel/svc.h | 1 - .../skyline/kernel/types/KPrivateMemory.cpp | 1 + .../cpp/skyline/kernel/types/KProcess.cpp | 23 ++++++++++--------- .../main/cpp/skyline/kernel/types/KProcess.h | 21 +++++++++-------- .../main/cpp/skyline/kernel/types/KSession.h | 6 +++-- .../skyline/kernel/types/KSharedMemory.cpp | 1 + .../cpp/skyline/kernel/types/KSyncObject.h | 1 - app/src/main/cpp/skyline/loader/loader.h | 1 - app/src/main/cpp/skyline/loader/nca.h | 2 -- app/src/main/cpp/skyline/loader/nro.h | 1 - app/src/main/cpp/skyline/loader/nso.h | 1 - app/src/main/cpp/skyline/loader/nsp.h | 1 - app/src/main/cpp/skyline/nce.h | 5 ---- app/src/main/cpp/skyline/os.cpp | 1 + app/src/main/cpp/skyline/os.h | 2 -- .../account/IAccountServiceForApplication.cpp | 1 - .../account/IAccountServiceForApplication.h | 1 - .../services/account/IManagerForApplication.h | 3 +-- .../cpp/skyline/services/account/IProfile.cpp | 1 - .../cpp/skyline/services/account/IProfile.h | 1 - .../am/IAllSystemAppletProxiesService.h | 1 - .../services/am/IApplicationProxyService.h | 1 - .../am/applet/ILibraryAppletAccessor.h | 1 - .../am/controller/IAppletCommonFunctions.h | 1 - .../am/controller/IApplicationFunctions.h | 1 - .../services/am/controller/IAudioController.h | 1 - .../am/controller/ICommonStateGetter.h | 3 +-- .../services/am/controller/IDebugFunctions.h | 1 - .../am/controller/IDisplayController.h | 1 - .../am/controller/ILibraryAppletCreator.h | 1 - .../am/controller/ISelfController.cpp | 2 +- .../services/am/controller/ISelfController.h | 1 - .../am/controller/IWindowController.h | 1 - .../skyline/services/am/proxy/base_proxy.h | 1 - .../skyline/services/am/storage/IStorage.h | 1 - .../services/am/storage/IStorageAccessor.cpp | 1 - .../services/am/storage/IStorageAccessor.h | 2 +- .../services/aocsrv/IAddOnContentManager.h | 1 - .../main/cpp/skyline/services/apm/IManager.h | 1 - .../cpp/skyline/services/apm/ISession.cpp | 2 +- .../main/cpp/skyline/services/apm/ISession.h | 1 - .../cpp/skyline/services/audio/IAudioDevice.h | 1 - .../cpp/skyline/services/audio/IAudioOut.cpp | 8 +++---- .../cpp/skyline/services/audio/IAudioOut.h | 2 -- .../skyline/services/audio/IAudioOutManager.h | 1 - .../audio/IAudioRenderer/IAudioRenderer.cpp | 2 +- .../audio/IAudioRenderer/IAudioRenderer.h | 2 -- .../services/audio/IAudioRenderer/voice.h | 2 -- .../services/audio/IAudioRendererManager.cpp | 5 +--- .../services/audio/IAudioRendererManager.h | 1 - .../cpp/skyline/services/base_service.cpp | 1 + .../main/cpp/skyline/services/base_service.h | 3 --- .../main/cpp/skyline/services/common/fence.h | 1 - .../cpp/skyline/services/common/parcel.cpp | 2 -- .../main/cpp/skyline/services/common/parcel.h | 1 - .../cpp/skyline/services/fatalsrv/IService.h | 1 - .../skyline/services/friends/IFriendService.h | 1 - .../services/friends/INotificationService.h | 1 - .../services/friends/IServiceCreator.h | 1 - .../main/cpp/skyline/services/fssrv/IFile.cpp | 1 - .../main/cpp/skyline/services/fssrv/IFile.h | 1 - .../skyline/services/fssrv/IFileSystem.cpp | 2 -- .../cpp/skyline/services/fssrv/IFileSystem.h | 1 - .../skyline/services/fssrv/IFileSystemProxy.h | 2 -- .../cpp/skyline/services/fssrv/IStorage.cpp | 1 - .../cpp/skyline/services/fssrv/IStorage.h | 1 - .../services/hid/IActiveVibrationDeviceList.h | 2 -- .../skyline/services/hid/IAppletResource.cpp | 1 + .../skyline/services/hid/IAppletResource.h | 2 -- .../cpp/skyline/services/hid/IHidServer.cpp | 1 + .../cpp/skyline/services/hid/IHidServer.h | 1 - .../hosbinder/GraphicBufferProducer.cpp | 2 -- .../hosbinder/GraphicBufferProducer.h | 5 +++- .../services/hosbinder/IHOSBinderDriver.cpp | 1 + .../services/hosbinder/IHOSBinderDriver.h | 1 - .../cpp/skyline/services/lm/ILogService.h | 1 - .../main/cpp/skyline/services/lm/ILogger.cpp | 1 - .../main/cpp/skyline/services/lm/ILogger.h | 1 - app/src/main/cpp/skyline/services/nfp/IUser.h | 1 - .../cpp/skyline/services/nfp/IUserManager.h | 1 - .../skyline/services/nifm/IGeneralService.h | 1 - .../main/cpp/skyline/services/nifm/IRequest.h | 1 - .../skyline/services/nifm/IStaticService.h | 1 - .../skyline/services/nvdrv/INvDrvServices.h | 1 - .../services/nvdrv/devices/nvdevice.cpp | 1 + .../skyline/services/nvdrv/devices/nvdevice.h | 2 -- .../services/nvdrv/devices/nvhost_as_gpu.cpp | 2 -- .../services/nvdrv/devices/nvhost_channel.cpp | 2 +- .../services/nvdrv/devices/nvhost_ctrl.cpp | 1 - .../nvdrv/devices/nvhost_ctrl_gpu.cpp | 1 - .../skyline/services/nvdrv/devices/nvmap.cpp | 1 - .../services/pctl/IParentalControlService.h | 1 - .../pctl/IParentalControlServiceFactory.h | 1 - .../services/pl/IPlatformServiceManager.h | 2 +- .../skyline/services/prepo/IPrepoService.h | 1 - .../main/cpp/skyline/services/serviceman.h | 1 - .../services/settings/ISettingsServer.cpp | 1 - .../services/settings/ISettingsServer.h | 1 - .../settings/ISystemSettingsServer.cpp | 1 - .../services/settings/ISystemSettingsServer.h | 1 - .../cpp/skyline/services/sm/IUserInterface.h | 1 - .../cpp/skyline/services/socket/bsd/IClient.h | 1 - .../cpp/skyline/services/ssl/ISslContext.h | 1 - .../cpp/skyline/services/ssl/ISslService.h | 1 - .../skyline/services/timesrv/IStaticService.h | 1 - .../skyline/services/timesrv/ISteadyClock.h | 1 - .../skyline/services/timesrv/ISystemClock.h | 1 - .../services/timesrv/ITimeZoneService.h | 1 - .../visrv/IApplicationDisplayService.cpp | 2 +- .../services/visrv/IDisplayService.cpp | 1 - .../skyline/services/visrv/IDisplayService.h | 2 -- .../services/visrv/IManagerDisplayService.cpp | 1 - .../services/visrv/IManagerRootService.cpp | 1 - .../services/visrv/IManagerRootService.h | 3 +-- app/src/main/cpp/skyline/vfs/filesystem.h | 1 - app/src/main/cpp/skyline/vfs/nacp.h | 4 +--- app/src/main/cpp/skyline/vfs/nca.h | 3 +-- .../cpp/skyline/vfs/partition_filesystem.h | 1 - 146 files changed, 70 insertions(+), 212 deletions(-) diff --git a/app/src/main/cpp/emu_jni.cpp b/app/src/main/cpp/emu_jni.cpp index a6addcb7..9c811d17 100644 --- a/app/src/main/cpp/emu_jni.cpp +++ b/app/src/main/cpp/emu_jni.cpp @@ -3,6 +3,7 @@ #include #include +#include #include "skyline/loader/loader.h" #include "skyline/common.h" #include "skyline/os.h" diff --git a/app/src/main/cpp/skyline/audio.h b/app/src/main/cpp/skyline/audio.h index 6d346dd3..638120af 100644 --- a/app/src/main/cpp/skyline/audio.h +++ b/app/src/main/cpp/skyline/audio.h @@ -3,12 +3,7 @@ #pragma once -#include -#include - -#include #include