Skip to content

Instantly share code, notes, and snippets.

@7Hazard
7Hazard / cef.js
Created March 25, 2017 12:51
A general class to use for CEF Windows,
class CEFWindow {
path; local; open; x; y; width; height; browser;
constructor(resourcePath, local, width, height, x, y) {
this.path = resourcePath;
this.local = local;
this.open = false;
this.x = x;
this.y = y;
this.width = width;
this.height = height;
@7Hazard
7Hazard / cef.js
Last active March 25, 2017 12:54
A general class to use for CEF Windows
/*
Usage:
var cef = new CEFWindow("your/path/", local(bool), width, height, x, y);
*/
class CEFWindow {
path; local; open; x; y; width; height; browser;
constructor(resourcePath, local, width, height, x, y) {
this.path = resourcePath;
this.local = local;
@7Hazard
7Hazard / API.h
Last active June 28, 2017 14:29
Generated.cs from CppSharp
#pragma once
#include "CVector3.h"
#ifndef ULONG
#define ULONG unsigned long
#endif // ULONG
enum {
M_STRING,
\CppSharp\build>msbuild vs2017\CppSharp.sln /p:Configuration=Release;Platform=x86
Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 6/29/2017 4:26:50 PM.
Project "E:\temp\CppSharp\build\vs2017\CppSharp.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x86".
Project "E:\temp\CppSharp\build\vs2017\CppSharp.sln" (1) is building "E:\temp\CppSharp\src\Core\CppSharp.csproj" (2) on
@7Hazard
7Hazard / output-log
Created June 29, 2017 15:01
CppSharp vs2015 compilation output -- FAILED
\CppSharp\build>msbuild vs2015\CppSharp.sln /p:Configuration=Release;Platform=x86
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 6/29/2017 4:54:48 PM.
Project "E:\temp\CppSharp\build\vs2015\CppSharp.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x86".
The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Com
@7Hazard
7Hazard / output-log
Created June 29, 2017 15:39
CppSharp vs2015 compilation output -- FAILED
\CppSharp\build>msbuild vs2015\CppSharp.sln /p:Configuration=Release;Platform=x86
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 6/29/2017 5:38:08 PM.
Project "E:\temp\CppSharp\build\vs2015\CppSharp.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x86".
The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Com
void Invoke(MonoDomain* domain, MonoMethod* method, MonoObject* obj, void** args, bool threaded) {
if (threaded) {
mono_thread_attach(domain);
}
MonoObject** exc;
try {
mono_runtime_invoke(method, obj, args, exc);
}
catch (MonoObject* obj)
{
// THIS FILE IS AUTOGENERATED
// Generated on "6/20/2019, 12:17:47 AM"
declare namespace hashes {
enum Weapon {
AntiqueCavalryDagger = 24601201,
BaseballBat = 2508868239,
BrokenBottle = 4192643659,
Crowbar = 2227010557,
// Files to parse
"D:/src/llvm-project/clang-tools-extra/altv-capi/cpp-sdk/SDK.h",
"--",
// Includes
//"-Icpp-sdk",
// Defines
"-DUNICODE",