This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by ASUS on 30/12/2020. | |
// | |
#include "Platform/Misc.h" | |
#include <optional> | |
#include <Allocation.h> | |
class CFileEntry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* It is unsafe to expose Win32 api into the user's UE4 C++. This may cause various | |
* cryptic compilation errors and chaotic rebuilds. | |
* The obvious solution is to use engine API to blindly load Crypt32.dll and use it | |
* without referencing any of Win32 API. | |
*/ | |
class FCryptoUtilsWindows | |
{ | |
static const TCHAR* Crypt32LibraryName = TEXT("Crypt32"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* It is unsafe to expose Win32 api into the user's UE4 C++. This may cause various | |
* cryptic compilation errors and chaotic rebuilds. | |
* The obvious solution is to use engine API to blindly load Crypt32.dll and use it | |
* without referencing any of Win32 API. | |
*/ | |
class FCryptoUtilsWindows | |
{ | |
static const TCHAR* Crypt32LibraryName = TEXT("Crypt32"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define BLINK(x) __blink(x) | |
#define SLEEP_MS() Sleep(1) | |
bool get_indicator_status(const int8_t i) | |
{ | |
static const bool matrix[] = { | |
/* 1 */ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, | |
/* 2 */ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, | |
/* 3 */ 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, | |
/* 4 */ 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdint> | |
#include "library.h" | |
#include <pthread.h> | |
#include <cstring> | |
#include <string> | |
#include <iostream> | |
#include <cstdio> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.vizor; | |
import com.sun.jna.Pointer; | |
import com.sun.jna.platform.win32.User32; | |
import com.sun.jna.platform.win32.WinNT.HANDLE; | |
import com.sun.jna.platform.win32.WinUser; | |
import javafx.stage.Stage; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** | |
* Enables locale-dependent URLs to be loaded from configuration files. | |
*/ | |
public class InternationalUrl | |
{ | |
private static Logger log = LogManager.getLogger(InternationalUrl.class); | |
/** | |
* Could be either: | |
* - {@link java.net.URL} - non-localizable URL. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int32 _convert_cli_options(const char* program_arguments, JNIEnv* env, jobjectArray* OUT_program_arguments_array) | |
{ | |
NULL_CHECK(env); | |
NULL_CHECK(OUT_program_arguments_array); | |
const char* const non_null_program_arguments = EITHER(program_arguments, ""); | |
// Error message will be empty if succeeded | |
char err_msg[1024]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PRIVATE_FUNCTION int32 _convert_cli_options(const char* program_arguments, JNIEnv* env, jobjectArray* OUT_program_arguments_array) | |
{ | |
NULL_CHECK(env); | |
NULL_CHECK(OUT_program_arguments_array); | |
const char* const non_null_program_arguments = EITHER(program_arguments, ""); | |
// Error message will be empty if succeeded | |
char err_msg[4096]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.Iterator; | |
import java.util.Queue; | |
import java.util.concurrent.BrokenBarrierException; | |
import java.util.concurrent.ConcurrentLinkedQueue; | |
import java.util.concurrent.CyclicBarrier; |
NewerOlder