Skip to content

Instantly share code, notes, and snippets.

View hxhb's full-sized avatar

lipengzha hxhb

View GitHub Profile
@hxhb
hxhb / main.i
Last active June 4, 2017 11:05
[compiler] #preprocessor
# 1 "main.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "main.c"
# 1 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/stdio.h" 1 3
# 9 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/stdio.h" 3
# 1 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/crtdefs.h" 1 3
# 10 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/crtdefs.h" 3
# 1 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/_mingw.h" 1 3
# 12 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/_mingw.h" 3
@hxhb
hxhb / cpp
Created July 2, 2018 08:47
UE-Gen-Cpp-Code-From-Bp-Asset
// TestFuncLib_pf1448227310.h
#pragma once
#include "Blueprint/BlueprintSupport.h"
#include "Runtime/Engine/Classes/Kismet/BlueprintFunctionLibrary.h"
class AActor;
class UActorComponent;
class UClass;
class UObject;
#include "TestFuncLib__pf1448227310.generated.h"
UCLASS(config=Engine, meta=(ReplaceConverted="/Game/NewFolder/TestFuncLib.TestFuncLib_C", OverrideNativeName="TestFuncLib_C"))
@hxhb
hxhb / ue4docset.py
Last active March 24, 2022 15:07
ue4docset
#!/usr/local/bin/python
import sys, os, getopt, signal, time, re, sqlite3
import distutils.core
import xml.etree.cElementTree as ET
from bs4 import BeautifulSoup, NavigableString, Tag
# The categories that can be found in the ClassHierarchy/index.html file.
maincategories = {
"Class": [
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#include "CoreMinimal.h"
#include "Misc/CommandLine.h"
#include "Misc/App.h"
#include "Misc/OutputDeviceError.h"
#include "LaunchEngineLoop.h"
#include "PhysicsPublic.h"
#include "HAL/ExceptionHandling.h"
#include "Modules/ModuleManager.h"
#include <iostream>
#include <cstdio>
using namespace std;
namespace Hacker
{
template<typename Tag, typename Tag::MemType M>
struct PrivateMemberStealer
{
// define friend funtion GetPrivate,return class member pointer
friend typename Tag::MemType GetPrivate(Tag) { return M; }
void create_recursion_dir(const string& basepath,const string& rela_path)
{
// cout<<path<<endl;
std::string recursion_path=basepath;
std::string::size_type begin_index=0;
std::string::size_type pos_index=rela_path.find("\\",begin_index);
if(rela_path.find(":")!=std::string::npos){
std::string::size_type tempcolon = rela_path.find(":");
begin_index=tempcolon+1;
std::string replace_substring(const std::string& file,const std::string& replace_src,const std::string& replace_target)
{
std::string resault("");
std::string::size_type begin_index=0;
std::string::size_type pos_index=file.find(replace_src,begin_index);
while(pos_index != std::string::npos)
{
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#define MAX_NUM 512
void remove_suffix(const char* filename,char* resault);
void append_string(char* base_string,const char* append_string);
void replace_char(char* base_string,char origin,char target);
@hxhb
hxhb / FThreadUtils.h
Created July 24, 2019 16:43
UE4 FRunnable Wrapper class.
#pragma once
#include "HAL/Runnable.h"
#include "HAL/RunnableThread.h"
class FThread : public FRunnable
{
public:
using FCallback = TFunction<void()>;
explicit FThread(const TCHAR *pThreadName, const FCallback& pCallback)
:mCallback(pCallback)
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=NGI77B
ro.build.display.id=user-358570.9320.0
ro.build.version.incremental=3585700093200000
ro.build.version.sdk=25
ro.build.version.preview_sdk=0
ro.build.version.codename=REL
ro.build.version.all_codenames=REL
ro.build.version.release=7.1.1