repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
gavofyork/RipInPeace
DiscInfo.h
#pragma once #include <string> #include <functional> #include <sstream> #include <vector> struct TrackInfo { TrackInfo() {} TrackInfo(int _n): title("Track " + ((std::stringstream&)(std::stringstream() << _n)).str()) {} std::string title; std::string artist; ///< "" -> Disc's artist. }; struct DiscInfo { DiscI...
gavofyork/RipInPeace
contrib/cd_access.c
/* $Id: cd_access.c,v 1.14 2006/09/29 16:01:42 airborne Exp $ Copyright (C) 2003, 2004, 2005 <NAME> <<EMAIL>> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either v...
gavofyork/RipInPeace
contrib/main.h
<filename>contrib/main.h /* $Id: main.h,v 1.15 2006/10/15 08:54:27 airborne Exp $ Copyright (C) 2003, 2004, 2005 <NAME> <<EMAIL>> 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; ...
earthcomputing/CellAgent
driver/e1000e/src/entl_device.h
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/ecnl/lib/route-repair.c
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/e1000e/src/entl_state.h
<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------...
earthcomputing/CellAgent
driver/ecnl/lib/atomic_link.c
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/ecnl/src/ecnl_protocol.h
<reponame>earthcomputing/CellAgent<filename>driver/ecnl/src/ecnl_protocol.h /*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project ro...
earthcomputing/CellAgent
driver/e1000e/src/entt_queue.h
<reponame>earthcomputing/CellAgent /*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *-----------...
earthcomputing/CellAgent
driver/e1000e/src/entl_state_machine.c
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/ecnl/event-example/kern.c
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/ecnl/src/ecnl_device.h
<reponame>earthcomputing/CellAgent<filename>driver/ecnl/src/ecnl_device.h /*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root...
earthcomputing/CellAgent
driver/e1000e/src/entl_state_machine.h
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/ecnl/event-example/user.c
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/ecnl/lib/ecnl_proto.h
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/ecnl/lib/genl_sample.c
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/ecnl/lib/ecnl_table.h
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
userspace/cellagent/ecnl/port.h
<reponame>earthcomputing/CellAgent /*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *-----------...
earthcomputing/CellAgent
driver/ecnl/lib/ecnl_proto.c
<reponame>earthcomputing/CellAgent /*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *-----------...
earthcomputing/CellAgent
driver/e1000e/src/entl_skb_queue.h
<filename>driver/e1000e/src/entl_skb_queue.h /*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *-...
earthcomputing/CellAgent
driver/e1000e/orig-frag-netdev.c
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
userspace/cellagent/ecnl/session.h
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
userspace/cellagent/ecnl/session.c
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/e1000e/src/entl_device.c
<filename>driver/e1000e/src/entl_device.c<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license informat...
earthcomputing/CellAgent
driver/e1000e/src/ecnl_entl_if.h
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
userspace/cellagent/ecnl/port.c
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/e1000e/src/entl_stm_if.h
<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------...
earthcomputing/CellAgent
driver/e1000e/src/entl_user_api.h
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/e1000e/src/entl_ioctl.h
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/ecnl/lib/mock_exchange.c
/*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *----------------------------------------------...
earthcomputing/CellAgent
driver/e1000e/src/netdev_entl_if.h
<filename>driver/e1000e/src/netdev_entl_if.h<gh_stars>0 /*--------------------------------------------------------------------------------------------- * Copyright © 2016-present Earth Computing Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license infor...
roxiemobile/networking-api.ios
Modules/RoxieMobile.NetworkingApi/Sources/ObjC/Sources/include/NetworkingApiObjC.h
// ---------------------------------------------------------------------------- // // NetworkingApiObjC.h // // @author <NAME> <<EMAIL>> // @copyright Copyright (c) 2021, Roxie Mobile Ltd. All rights reserved. // @link https://www.roxiemobile.com/ // // ---------------------------------------------------...
roxiemobile/networking-api.ios
Modules/RoxieMobile.NetworkingApi/Sources/Converters/Dependencies/NetworkingApiConverters.h
// ---------------------------------------------------------------------------- // // NetworkingApiConverters.h // // @author <NAME> <<EMAIL>> // @copyright Copyright (c) 2017, Roxie Mobile Ltd. All rights reserved. // @link https://www.roxiemobile.com/ // // ---------------------------------------------...
roxiemobile/networking-api.ios
Modules/RoxieMobile.NetworkingApi/Sources/Http/Dependencies/NetworkingApiHttp.h
<reponame>roxiemobile/networking-api.ios<gh_stars>0 // ---------------------------------------------------------------------------- // // NetworkingApiHttp.h // // @author <NAME> <<EMAIL>> // @copyright Copyright (c) 2017, Roxie Mobile Ltd. All rights reserved. // @link https://www.roxiemobile.com/ // //...
roxiemobile/networking-api.ios
Modules/RoxieMobile.NetworkingApi/Sources/Helpers/Dependencies/NetworkingApiHelpers.h
<reponame>roxiemobile/networking-api.ios<gh_stars>0 // ---------------------------------------------------------------------------- // // NetworkingApiHelpers.h // // @author <NAME> <<EMAIL>> // @copyright Copyright (c) 2017, Roxie Mobile Ltd. All rights reserved. // @link https://www.roxiemobile.com/ //...
roxiemobile/networking-api.ios
Modules/RoxieMobile.NetworkingApi/Sources/Rest/Dependencies/NetworkingApiRest.h
// ---------------------------------------------------------------------------- // // NetworkingApiRest.h // // @author <NAME> <<EMAIL>> // @copyright Copyright (c) 2017, Roxie Mobile Ltd. All rights reserved. // @link https://www.roxiemobile.com/ // // ---------------------------------------------------...
roxiemobile/networking-api.ios
Modules/RoxieMobile.NetworkingApi/Sources/ObjC/Sources/DefaultUserAgent/DefaultUserAgent.h
<gh_stars>0 // ---------------------------------------------------------------------------- // // DefaultUserAgent.h // // @author <NAME> <<EMAIL>> // @copyright Copyright (c) 2017, Roxie Mobile Ltd. All rights reserved. // @link https://www.roxiemobile.com/ // // ----------------------------------------...
Ample-VM/AMPLE-Lib
include/Instruction.h
#pragma once #include <stdint.h> #define INSTRUCTION_LENGTH 32 typedef struct { uint32_t OpCode; uint32_t Mode; int64_t Arg1; int64_t Arg2; int64_t Arg3; } Instruction;
Ample-VM/AMPLE-Lib
include/AMPLE.h
#pragma once #include <errno.h> #include <stddef.h> #include <stdint.h> #include <string.h> #if ( defined(_WIN32) || \ defined(__WIN32__) || \ defined(__NT__) || \ defined(WIN32) || \ defined(_WIN64) ) #define __WINDOWS__ #if (!defined(_MSC_VER)) #warning ...
f81zjJaj2d5o/rccom-leak
risecheats.com apex/DriverClient/Notifications.h
<reponame>f81zjJaj2d5o/rccom-leak<filename>risecheats.com apex/DriverClient/Notifications.h<gh_stars>1-10 #pragma once #include <vector> #include "imgui.h" #include <Windows.h>; #include "Utils.h" using namespace std; struct Msg { string Message; ULONGLONG TickAdded; ImVec2 SideRectPos; }; vector<Msg>Not...
f81zjJaj2d5o/rccom-leak
risecheats.com r6s/client/vars.h
#pragma once int outlineEsp = 0; int SpeedHack = 0; int vault = 0; int aim = 1; int fp = 0; int fg = 0; int spec = 0; int recoil = 0; int esp = 0; int noreload = 0; int autowin = 0;
f81zjJaj2d5o/rccom-leak
risecheats.com r6s/client/game/offsets.h
<filename>risecheats.com r6s/client/game/offsets.h #ifndef OFFSETS_H #define OFFSETS_H #include <windows.h> #define OFFSET_GAME_MANAGER 0x5225280 #define OFFSET_GAME_RENDERER 0x5225108 #define OFFSET_PLAYER_MANAGER 0x5212338 #define OFFSET_GAMERENDERER_ENGINELINK 0xE0 #define OFFSET_ENGINELINK_ENGI...
f81zjJaj2d5o/rccom-leak
risecheats.com r6s/client/iniwriter.h
#pragma once #ifndef INIWRITER_H #define INIWRITER_H class CiniWriter { public: CiniWriter(char* szFileName); void WriteInteger(char* szSection, char* szKey, int iValue); void WriteFloat(char* szSection, char* szKey, float fltValue); void WriteBoolean(char* szSection, char* szKey, bool bolValue); void Wr...
f81zjJaj2d5o/rccom-leak
risecheats.com apex/DriverClient/Effects.h
<reponame>f81zjJaj2d5o/rccom-leak #pragma once const char VertexShader[] = { "struct VS_OUTPUT\n" "{\n" "float4 Pos : SV_POSITION;\n" "float4 Color : COLOR;\n" "};\n" "VS_OUTPUT VS(float4 inPos : POSITION, float4 inColor : COLOR)\n" "{\n" "VS_OUTPUT output;\n" "output.Pos = inPos;\n" "output.Color = ...
f81zjJaj2d5o/rccom-leak
risecheats.com apex/DriverClient/Draw.h
#pragma once #include <iostream> #include <random> #include <ctime> #include <array> #include <Windows.h> #include <d3d11_1.h> #include <directxcolors.h> #include <D3DX11.h> #include <xnamath.h> #include <d3dcompiler.h> #include "Effects.h" #include <vector> #include <SpriteBatch.h> #include <SpriteFont.h...
f81zjJaj2d5o/rccom-leak
risecheats.com r6s/client/inireader.h
#pragma once #ifndef INIREADER_H #define INIREADER_H class CiniReader { public: CiniReader(char* szFileName); int ReadInteger(char* szSection, char* szKey, int iDefaultValue); float ReadFloat(char* szSection, char* szKey, float fltDefaultValue); bool ReadBoolean(char* szSection, char* szKey, bool bolDefaul...
f81zjJaj2d5o/rccom-leak
risecheats.com r6s/client/vector.h
#pragma once #ifndef VECTOR_H #define VECTOR_H #include <cmath> #include <math.h> #define M_PI 3.14159265358979323846264338327950288419716939937510 class Vector2 { public: float x; float y; Vector2(); Vector2(float x, float y); }; class Vector3 { public: float x; float y; float z; ...
f81zjJaj2d5o/rccom-leak
risecheats.com apex/DriverClient/Offset.h
#pragma once //? Old offset /*constexpr auto EntityList = 0x1fa0148; constexpr auto LocalEntityId = 0x1750F5C; constexpr auto VecOrigin = 0x12C; constexpr auto EntityHandle = 0x500; constexpr auto TeamNum = 0x3E4; constexpr auto PlayerHealth = 0x3D4; constexpr auto Recoil = 0x2014; constexpr auto HeadPos = 0x3...
f81zjJaj2d5o/rccom-leak
risecheats.com apex/DriverClient/Utils.h
<gh_stars>1-10 #pragma once #include "VMatrix.hpp" #include "Offset.h" #include <Windows.h> #include <iostream> #include <thread> #include <algorithm> #include <iomanip> #include <random> #include "Bones.h" #include <DirectXMath.h> #include "XorStr.h" #include <xnamath.h> #include <cstdint> #include "imgu...
f81zjJaj2d5o/rccom-leak
risecheats.com r6s/client/client.h
#pragma once #include <windows.h> #include <stdio.h> #include <vector> #include <fstream> #include <iostream> #include <fcntl.h> #include <io.h> #include "game\functions.h" #ifdef _DEBUG #pragma comment( lib, "kelib/debug/kelib.lib" ) #else #pragma comment( lib, "kelib/release/kelib.lib" ) #end...
f81zjJaj2d5o/rccom-leak
risecheats.com apex/DriverClient/d3d11hook.h
<gh_stars>1-10 #pragma once #include "MinHook.h" #include <Windows.h> #include <d3d11.h> #include "Utils.h" #include "imgui.h" #include "imgui_impl_dx11.h" #include "imgui_internal.h" #include <d3d11.h> #include "FontMenu.h" #include "MenuIcon.h" #include "imgui_impl_dx11.h" #include "imgui_impl_win32.h" #...
f81zjJaj2d5o/rccom-leak
risecheats.com apex/DriverClient/CFG.h
#pragma once #define _CRT_SECURE_NO_WARNINGS #include <filesystem> #include <Psapi.h> #include <Windows.h> #include <iostream> #include <wchar.h> #include <string> #include <random> #include "XorStr.h" #include "imgui.h" using namespace std; struct CFG { //? Aimbot volatile int i_AimKey = 2; volatil...
f81zjJaj2d5o/rccom-leak
risecheats.com r6s/client/core/kernel.h
#pragma once #include <windows.h> #include <cstdint> #include <cstdlib> enum E_COMMAND_CODE { ID_NULL = 0, // ID_READ_PROCESS_MEMORY = 5, // ID_READ_KERNEL_MEMORY = 6, // ID_WRITE_PROCESS_MEMORY = 7, // ID_GET_PROCESS = 10, // ID_GET_PROCESS_BASE = 11, // ID_GET_PROCESS_MODULE = 12, //...
f81zjJaj2d5o/rccom-leak
risecheats.com r6s/client/game/functions.h
<filename>risecheats.com r6s/client/game/functions.h #include <windows.h> #include <vector> #include <cstdint> #include "offsets.h" #include <iostream> #define QWORD unsigned long long #define PI 3.14159265358979323846f constexpr float d2r = 0.01745329251f; constexpr float r2d = 57.2957795131f; #include "..\ve...
f81zjJaj2d5o/rccom-leak
risecheats.com apex/DriverClient/LootIcons.h
<filename>risecheats.com apex/DriverClient/LootIcons.h #pragma once #include <d3d11.h> #include "Textures.h" ID3D11ShaderResourceView* pIBuf_Energy; ID3D11ShaderResourceView* pIBuf_Hc; ID3D11ShaderResourceView* pIBuf_Sc; ID3D11ShaderResourceView* pIBuf_Shg; ID3D11ShaderResourceView* pIBuf_Havoc; ID3D11ShaderR...
f81zjJaj2d5o/rccom-leak
risecheats.com apex/DriverClient/MenuHelpers.h
#pragma once #pragma warning(disable:4996) #include <Windows.h> char NumberSpeedKey[2]{ 0 }; char SpeedKeyLabel[12]{ 0 }; char NumberAimKey[2]{ 0 }; char AimKeyLabel[12]{ 0 };
f81zjJaj2d5o/rccom-leak
risecheats.com apex/KernelProtect/main.c
<gh_stars>1-10 #include <ntddk.h> #include <windef.h> #include <ntifs.h> #include <ntstrsafe.h> #define IO_CHECKDEBUG CTL_CODE(FILE_DEVICE_UNKNOWN,0x809,METHOD_BUFFERED,FILE_SPECIAL_ACCESS)//? From user mod to kernel mod #define DebugPort 0x420 //: Ptr64 Void #define BeingDebugged ...
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/InterView/KVOController.h
// // KVOController.h // LoginOC // // Created by HongpengYu on 2019/4/6. // Copyright © 2019 HongpengYu. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface KVOController : UIViewController @end NS_ASSUME_NONNULL_END
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/GCD/GCDTest.h
// // GCDTest.h // LoginOC // // Created by HongpengYu on 2019/3/14. // Copyright © 2019 HongpengYu. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface GCDTest : NSObject - (void)dispatch_Group; - (void)dispatch_sync; - (void)dispatch_async; - (void)dispatch_async_se...
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/AutomaticReferenceCountingController+Block.h
// // AutomaticReferenceCountingController+Block.h // LoginOC // // Created by HongpengYu on 2019/4/10. // Copyright © 2019 HongpengYu. All rights reserved. // #import "AutomaticReferenceCountingController.h" NS_ASSUME_NONNULL_BEGIN typedef int(^ForwardingBlock)(int); @interface AutomaticReferenceCountingContro...
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/InterView/Son_cycle.h
// // Son_cycle.h // LoginOC // // Created by HongpengYu on 2019/4/10. // Copyright © 2019 HongpengYu. All rights reserved. // #import <Foundation/Foundation.h> @class Father_cycle; NS_ASSUME_NONNULL_BEGIN @interface Son_cycle : NSObject @property (nonatomic, strong) Father_cycle *father; @end NS_ASSUME_NONNUL...
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/AutomaticReferenceCountingController+Runtime.h
<reponame>aTreey/LGObjectiveCPro // // AutomaticReferenceCountingController+Runtime.h // LoginOC // // Created by HongpengYu on 2019/4/8. // Copyright © 2019 HongpengYu. All rights reserved. // #import "AutomaticReferenceCountingController.h" NS_ASSUME_NONNULL_BEGIN @interface AutomaticReferenceCountingControlle...
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/AutomaticReferenceCountingController+NSOperationBlock.h
<filename>LGObjectiveCPro/Classes/AutomaticReferenceCountingController+NSOperationBlock.h // // AutomaticReferenceCountingController+NSOperationBlock.h // LoginOC // // Created by HongpengYu on 2019/4/11. // Copyright © 2019 HongpengYu. All rights reserved. // #import "AutomaticReferenceCountingController.h" NS_A...
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/AutomaticReferenceCountingController.h
// // AutomaticReferenceCountingController.h // LoginOC // // Created by HongpengYu on 2019/1/3. // Copyright © 2019 HongpengYu. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface AutomaticReferenceCountingController : UIViewController @end NS_ASSUME_NONNULL_END
aTreey/LGObjectiveCPro
Example/LGObjectiveCPro/LGViewController.h
<gh_stars>0 // // LGViewController.h // LGObjectiveCPro // // Created by aTreey on 10/24/2019. // Copyright (c) 2019 aTreey. All rights reserved. // @import UIKit; @interface LGViewController : UIViewController @end
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/AutomaticReferenceCountingController+AddProperty.h
// // AutomaticReferenceCountingController+CategoryAddProperty.h // LoginOC // // Created by HongpengYu on 2019/4/12. // Copyright © 2019 HongpengYu. All rights reserved. // #import "AutomaticReferenceCountingController.h" NS_ASSUME_NONNULL_BEGIN @interface AutomaticReferenceCountingController (AddProperty) @pr...
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/Blocks/Blocks1.h
// // Blocks1.h // LoginOC // // Created by HongpengYu on 2019/3/14. // Copyright © 2019 HongpengYu. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface Blocks1 : NSObject @end NS_ASSUME_NONNULL_END
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/InterView/RunTimeObject.h
<reponame>aTreey/LGObjectiveCPro // // RunTimeObject.h // LoginOC // // Created by HongpengYu on 2019/4/8. // Copyright © 2019 HongpengYu. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface RunTimeObject : NSObject // 只声明,不实现,验证消息转发机制 - (void)test; - (void)otherTest; @e...
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/InterView/KVO_Test.h
<reponame>aTreey/LGObjectiveCPro // // KVO_Test.h // LoginOC // // Created by HongpengYu on 2019/4/6. // Copyright © 2019 HongpengYu. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface KVO_Test : NSObject @property (nonatomic, assign) NSInteger value; @property (nonatom...
aTreey/LGObjectiveCPro
Example/LGObjectiveCPro/LGAppDelegate.h
<gh_stars>0 // // LGAppDelegate.h // LGObjectiveCPro // // Created by aTreey on 10/24/2019. // Copyright (c) 2019 aTreey. All rights reserved. // @import UIKit; @interface LGAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/InterView/KVO_Observer.h
// // KVO_Observer.h // LoginOC // // Created by HongpengYu on 2019/4/6. // Copyright © 2019 HongpengYu. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface KVO_Observer : NSObject @end NS_ASSUME_NONNULL_END
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/StrongTest.h
// // StrongTest.h // LoginOC // // Created by HongpengYu on 2019/1/13. // Copyright © 2019 HongpengYu. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface StrongTest : NSObject { id __strong obj_; } - (void)setObject:(id __strong)obj; @end @interface StrongCycle...
aTreey/LGObjectiveCPro
LGObjectiveCPro/Classes/InterView/Father_cycle.h
// // Father_cycle.h // LoginOC // // Created by HongpengYu on 2019/4/10. // Copyright © 2019 HongpengYu. All rights reserved. // #import <Foundation/Foundation.h> @class Son_cycle; NS_ASSUME_NONNULL_BEGIN @interface Father_cycle : NSObject @property (nonatomic, strong) Son_cycle *son; /// 被strong 修饰的title,又被修...
joaomlneto/kernel-module-hello-world
lkm_example.c
#include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> MODULE_LICENSE("GPL"); MODULE_AUTHOR("<NAME>"); MODULE_DESCRIPTION("A simple module"); MODULE_VERSION("0.1"); static int __init lkm_example_init(void) { printk(KERN_INFO "Hello world!\n"); return 0; } static void __exit lkm_example_exit(vo...
MiguelDelPinto/LCOM_TPs
proj/src/spacecraft.h
#ifndef _LCOM_SPACECRAFT_H_ #define _LCOM_SPACECRAFT_H_ // Lcom's lcf header #include <lcom/lcf.h> // Group's created headers #include "sprite.h" /** @defgroup spacecraft spacecraft * @{ * * File for dealing with the spacecraft (main entity of space lander). */ /** * @brief Struct that holds information reg...
MiguelDelPinto/LCOM_TPs
lab5/sprite.h
#ifndef _LCOM_SPRITE_H_ #define _LCOM_SPRITE_H_ /** * @brief struct Sprite * * @param x the x coordinate of the current position * @param y the y coordinate of thecurrent position * @param xspeed the speed in the x axis * @param yspeed the speed in the y axis * @param img struct that stores the information abo...
MiguelDelPinto/LCOM_TPs
proj/src/rtc.h
<gh_stars>0 #ifndef _LCOM_RTC_H_ #define _LCOM_RTC_H_ #include <lcom/lcf.h> /** @defgroup rtc rtc * @{ * * File for programming the real time clock, holding macros, types and useful RTC related functions */ /** * @brief type for all date related variables */ typedef struct { unsigned seconds; unsigne...
MiguelDelPinto/LCOM_TPs
proj/src/serial_port.h
<filename>proj/src/serial_port.h #ifndef _LCOM_SERIAL_PORT_H_ #define _LCOM_SERIAL_PORT_H_ #include <lcom/lcf.h> /** @defgroup serialport serialport * @{ * * File for programming with the serial port */ /** * @brief Subscribes to interrupts from the serial port * * @param bit_no Used to correctly identify ...
MiguelDelPinto/LCOM_TPs
lab5/video_card.h
<gh_stars>0 #ifndef _LCOM_VIDEO_CARD_H_ #define _LCOM_VIDEO_CARD_H_ #pragma pack(1) typedef struct { uint8_t VBESignature[4]; /* VBE signature */ BCD VBEVersion[2]; /* VBE Version */ uint32_t OEMStringPTR; /* Pointer to OEM String */ uint8_t Capabilities[4]; /* Capabilities of graph...
MiguelDelPinto/LCOM_TPs
proj/src/timer.c
#include <lcom/lcf.h> #include <lcom/timer.h> #include <stdint.h> #include "i8254.h" //GLOBAL VARIABLES uint32_t global_interrupt_counter = 0; int timer_hook_id = TIMER0_IRQ; int (timer_set_frequency)(uint8_t timer, uint32_t freq) { if(freq > TIMER_MAX_FREQ) { //div would be equal to 0, due to it being stored ...
MiguelDelPinto/LCOM_TPs
proj/src/video_card.c
#include <lcom/lcf.h> #include <math.h> #include <machine/int86.h> #include "macros.h" #include "video_card.h" static unsigned vram_base; // VRAM’s physical addresss static unsigned vram_size; // VRAM's size static unsigned hres; // Horiziontal pixel resolution static unsigned vres; ...
MiguelDelPinto/LCOM_TPs
proj/src/sprite.h
<reponame>MiguelDelPinto/LCOM_TPs #ifndef _LCOM_SPRITE_H_ #define _LCOM_SPRITE_H_ /** @defgroup sprite sprite * @{ * * File for sprite type, holding functions and types to manage sprites */ /** * @brief struct Sprite * * @param x the x coordinate of the current position * @param y the y coordinate of thecur...
MiguelDelPinto/LCOM_TPs
proj/src/i8254.h
#ifndef _LCOM_I8254_H_ #define _LCOM_I8254_H_ #include <lcom/lcf.h> /** @defgroup i8254 i8254 * @{ * * Constants for programming the i8254 Timer. Needs to be completed. */ #define TIMER_FREQ 1193182 /**< @brief clock frequency for timer in PC and AT */ #define TIMER0_IRQ 0 /**< @brief Timer 0 IRQ line */ #defin...
MiguelDelPinto/LCOM_TPs
proj/src/utils.h
<reponame>MiguelDelPinto/LCOM_TPs<filename>proj/src/utils.h #ifndef _LCOM_UTILS_H_ #define _LCOM_UTILS_H_ #include <lcom/lcf.h> #include <stdint.h> /** @defgroup utils utils * @{ * * File with utility functions */ /** * @brief Wrapper function that reads an 8 bit variable, instead of 16 bit that is used in the...
MiguelDelPinto/LCOM_TPs
proj/src/uart_protocol.c
<reponame>MiguelDelPinto/LCOM_TPs #include "uart_protocol.h" #include "serial_port.h" #include "utils.h" #include "uart.h" int (serial_port_configure_com1)() { serial_port_set_bit_rate(19200); uint32_t LCR_byte = WORD_LENGTH_8 | STOP_BITS_1 | PARITY_ODD; if(serial_port_write_LCR(LCR_byte)) { return 1; } ...
MiguelDelPinto/LCOM_TPs
proj/src/space_lander.c
<filename>proj/src/space_lander.c // Lcom's lcf header #include <lcom/lcf.h> // Group's created headers #include "space_lander.h" #include "keyboard.h" #include "mouse.h" #include "video_card.h" #include "uart_protocol.h" #include "serial_port.h" #include "sprite.h" #include "graphics.h" #include "spacecraft.h" #includ...
MiguelDelPinto/LCOM_TPs
proj/src/spacecraft.c
// Group's created headers #include "spacecraft.h" #include "video_card.h" // Useful header #include <math.h> // A static variable that holds the value of gravity's acceleration static double gravity = 0.075; // A static variable that holds the value of the boost's force static double boost_force = -0.25; // Maxi...
MiguelDelPinto/LCOM_TPs
proj/src/macros.h
#ifndef _LCOM_MACROS_H_ #define _LCOM_MACROS_H_ #include <lcom/lcf.h> #include <minix/sysutil.h> /** @defgroup macros macros * @{ * * File for that holds some useful general macros for different purposes */ /* General macros */ #define LINEAR_FRAME_BUFFER BIT(14) #define MAX_LM_ALLOC_ATTEMPTS 5 /* VBE */ #d...
MiguelDelPinto/LCOM_TPs
proj/src/kbc.h
#ifndef _LCOM_KBC_H_ #define _LCOM_KBC_H_ #include <lcom/lcf.h> #include "i8042.h" #include "utils.h" /** @defgroup kbc kbc * @{ * * File for dealing with the KBC (used in the keyboard and the mouse) */ /** * @brief Issues a command to the KBC * * @param cmd The command byte to be issued * @return 0 if t...
MiguelDelPinto/LCOM_TPs
proj/src/asteroid.h
#ifndef _LCOM_ASTEROID_H_ #define _LCOM_ASTEROID_H_ #include <lcom/lcf.h> #include <math.h> #include "sprite.h" #include "video_card.h" /** @defgroup asteroid asteroid * @{ * * File for dealing with asteroid object */ typedef struct { Sprite* sprite; bool active; } Asteroid; /** * @brief Creates a aste...
MiguelDelPinto/LCOM_TPs
proj/src/rtc.c
#include <lcom/lcf.h> #include "rtc.h" bool rtc_is_updating() { unsigned number = 0; sys_outb(RTC_ADDR_REG, RTC_A); sys_inb(RTC_DATA_REG, &number); if(A_UIP & number) return false; else return true; } unsigned bcd_convert(unsigned bcd) { return (unsigned)(10*((bcd & 0xF0) >> 4) + (bcd & 0x0F)); } u...
MiguelDelPinto/LCOM_TPs
lab2/utils.c
<reponame>MiguelDelPinto/LCOM_TPs #include <lcom/lcf.h> #include <stdint.h> int(util_get_LSB)(uint16_t val, uint8_t *lsb) { *lsb = (uint8_t) val; return 0; } int(util_get_MSB)(uint16_t val, uint8_t *msb) { *msb = (uint8_t) (val >> 8); return 0; } int (util_sys_inb)(int port, uint8_t *value) { ui...
MiguelDelPinto/LCOM_TPs
proj/src/mouse.c
#include "mouse.h" /* Global variables */ // Non-static int mouse_hook_id = 2; uint8_t packet; // Static static bool status_error = false; int (mouse_subscribe_int)(uint8_t *bit_no) { *bit_no = BIT(mouse_hook_id); if(sys_irqsetpolicy(MOUSE_IRQ, IRQ_REENABLE | IRQ_EXCLUSIVE, &mouse_hook_id) != OK) retu...
MiguelDelPinto/LCOM_TPs
lab5/i8042.h
<reponame>MiguelDelPinto/LCOM_TPs<gh_stars>0 #ifndef _LCOM_I8042_H_ #define _LCOM_I8042_H_ #include <lcom/lcf.h> #include <minix/sysutil.h> /** @defgroup i8042 i8042 * @{ * * Constants for programming the i8042 Keyboard. */ /* General macros */ #define KBD_IRQ 1 #define DELAY_US 20000 #define WAIT_KBC tickdel...
MiguelDelPinto/LCOM_TPs
lab5/keyboard.c
<filename>lab5/keyboard.c #include "keyboard.h" /* Global variables */ int kbd_hook_id = KBD_IRQ; uint8_t scancode; uint32_t sys_inb_counter = 0; bool status_error = false; // will only count the uses of sys_inb when in LAB3, because of the flag #ifdef LAB3 int sys_inb_with_count(int port, uint8_t *value) { sys_inb...
MiguelDelPinto/LCOM_TPs
proj/src/mouse.h
#ifndef _LCOM_MOUSE_H_ #define _LCOM_MOUSE_H_ #include <lcom/lcf.h> #include "kbc.h" /** @defgroup mouse mouse * @{ * * File for programming with the PS2 mouse */ /** * @brief Subscribes to interrupts from the mouse * @param bit_no Used to correctly identify interrupts, by serving as a mask for irq_set * @r...
MiguelDelPinto/LCOM_TPs
proj/src/space_lander.h
<gh_stars>0 #ifndef _SPACE_LANDER_H_ #define _SPACE_LANDER_H_ #define ASTEROID_AMOUNT 3 #define ASTEROID_REGEN_TIME 120 #define ROCKET_AMOUNT 5 #define ROCKET_COOLDOWN_TIME 25 #define LANDING 0x00FF00 #define LEVEL1_GROUND 0x858D8A #define LEVEL2_GROUND 0xD16E12 #define LEVEL3_GROUND 0xC6BF8C /** @defgrou...
MiguelDelPinto/LCOM_TPs
lab4/lab4.c
// IMPORTANT: you must include the following line in all your C files #include <lcom/lcf.h> #include <stdio.h> #include <stdint.h> // Any header files included below this line should have been created by you #include <stdbool.h> #include "i8254.h" #include "i8042.h" #include "mouse.h" // Global variables extern int mo...
MiguelDelPinto/LCOM_TPs
proj/src/asteroid.c
#include "asteroid.h" static time_t t; // static int x_dif; // -------------------------------------------- Asteroid* create_asteroid(xpm_map_t xpm) { Asteroid* asteroid = (Asteroid*)malloc(sizeof(Asteroid)); if(asteroid == NULL) return NULL; srand((unsigned) time(&t)); //Intializes random number generator in...
MiguelDelPinto/LCOM_TPs
lab5/sprite.c
<reponame>MiguelDelPinto/LCOM_TPs #include <lcom/lcf.h> #include "sprite.h" #include "video_card.h" Sprite* create_sprite(xpm_map_t xpm, int x, int y,int xspeed, int yspeed) { // allocates space for the "object" Sprite *sp = (Sprite *) malloc ( sizeof(Sprite)); if(sp == NULL) return NULL; // reads the sp...