Skip to content

Commit

Permalink
sceZlibInitialize stub
Browse files Browse the repository at this point in the history
  • Loading branch information
kr1spy2115 committed Jun 1, 2024
1 parent bbd2cf9 commit add222d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/libSceZlib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set(libName libSceZlib)
include(../setupModule.cmake)

project(${libName})

add_library(${libName} SHARED entry.cpp)

setupModule(${libName})
4 changes: 4 additions & 0 deletions modules/libSceZlib/codes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#pragma once
#include <stdint.h>

namespace Err {} // namespace Err
18 changes: 18 additions & 0 deletions modules/libSceZlib/entry.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include "common.h"
#include "logging.h"
#include "types.h"

LOG_DEFINE_MODULE(libSceZlib);

namespace {} // namespace

extern "C" {

EXPORT const char* MODULE_NAME = "libSceZlib";

EXPORT SYSV_ABI int32_t sceZlibInitialize(const void* buffer, size_t length) {
LOG_USE_MODULE(libSceZlib);
LOG_ERR(L"todo %S", __FUNCTION__);
return Ok;
}
}
2 changes: 2 additions & 0 deletions modules/libSceZlib/types.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#pragma once
#include "codes.h"

0 comments on commit add222d

Please sign in to comment.