Dolphin compiles, network untested
This commit is contained in:
@@ -18,4 +18,5 @@ target_sources(${DUSK_BINARY_TARGET_NAME}
|
||||
add_subdirectory(asset)
|
||||
add_subdirectory(log)
|
||||
add_subdirectory(display)
|
||||
add_subdirectory(input)
|
||||
add_subdirectory(input)
|
||||
add_subdirectory(system)
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2026 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
target_sources(${DUSK_LIBRARY_TARGET_NAME}
|
||||
PUBLIC
|
||||
systemdolphin.c
|
||||
)
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "systemdolphin.h"
|
||||
#include "input/input.h"
|
||||
#include "util/string.h"
|
||||
#include "assert/assert.h"
|
||||
|
||||
errorret_t systemInitDolphin(void) {
|
||||
errorOk();
|
||||
}
|
||||
|
||||
systemdialogtype_t systemGetActiveDialogTypeDolphin(void) {
|
||||
return SYSTEM_DIALOG_TYPE_NONE;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "system/system.h"
|
||||
|
||||
/**
|
||||
* Initializes the Dolphin system module.
|
||||
*
|
||||
* @return Error code indicating success or failure.
|
||||
*/
|
||||
errorret_t systemInitDolphin(void);
|
||||
|
||||
/**
|
||||
* Returns which Dolphin system dialog is currently open (if any).
|
||||
*
|
||||
* @return Currently open system dialog type.
|
||||
*/
|
||||
systemdialogtype_t systemGetActiveDialogTypeDolphin(void);
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "system/systemdolphin.h"
|
||||
|
||||
#define systemInitPlatform systemInitDolphin
|
||||
#define systemGetActiveDialogTypePlatform systemGetActiveDialogTypeDolphin
|
||||
Reference in New Issue
Block a user