mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-10-31 07:51:08 -04:00
(shirait) 不要なファイルを削除
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@290 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
parent
cbae50ccc2
commit
884276ea2a
@ -45,7 +45,7 @@ SRCS = \
|
|||||||
wfskrn_Volume.cpp my_wfskrn_Device.cpp \
|
wfskrn_Volume.cpp my_wfskrn_Device.cpp \
|
||||||
wfs_Client_Common.cpp randomlib.cpp wfs_Debug.cpp \
|
wfs_Client_Common.cpp randomlib.cpp wfs_Debug.cpp \
|
||||||
wfs_Heap.cpp wfs_Mutex.cpp wfs_Names.cpp wfs_PathNames.cpp \
|
wfs_Heap.cpp wfs_Mutex.cpp wfs_Names.cpp wfs_PathNames.cpp \
|
||||||
wfscli_Handles.cpp WinOSReport.cpp wfs_AsyncUtils.cpp \
|
wfscli_Handles.cpp wfs_AsyncUtils.cpp \
|
||||||
drnand.c \
|
drnand.c \
|
||||||
#------------------------------------------------
|
#------------------------------------------------
|
||||||
#MACRO_FLAGS += --c90
|
#MACRO_FLAGS += --c90
|
||||||
|
|||||||
@ -1,37 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Project: wfs
|
|
||||||
File: WinOSReport.h
|
|
||||||
|
|
||||||
Copyright 2007 Nintendo. All rights reserved.
|
|
||||||
|
|
||||||
These coded instructions, statements, and computer programs contain
|
|
||||||
proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
||||||
Company Ltd., and are protected by Federal copyright law. They may
|
|
||||||
not be disclosed to third parties or copied or duplicated in any form,
|
|
||||||
in whole or in part, without the prior written consent of Nintendo.
|
|
||||||
|
|
||||||
$Log: WinOSReport.h,v $
|
|
||||||
Revision 1.6 2008/08/27 04:50:50 nakanose_jin
|
|
||||||
add function and defines
|
|
||||||
|
|
||||||
Revision 1.5 2007/11/02 00:21:11 paul
|
|
||||||
started logging changes in the file
|
|
||||||
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#if _WIN32
|
|
||||||
extern FILE *fpOSReport;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef void (*OSReportCallback) (const char *log);
|
|
||||||
|
|
||||||
void DebugPrintCallback(const char *pStr);
|
|
||||||
void DebugPrintCallback2(const char *pStr);
|
|
||||||
|
|
||||||
OSReportCallback SetOSReportPrintCallback(OSReportCallback cb);
|
|
||||||
|
|
||||||
void InitMyOSReport();
|
|
||||||
void MyOSReport(const char *format, ...);
|
|
||||||
void MyOSPanic(const char* file, int line , const char* msg, ...);
|
|
||||||
@ -1,145 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Project: wfs
|
|
||||||
File: WinOSReport.cpp - implementation of WFSDEV higher-level socket
|
|
||||||
library.
|
|
||||||
|
|
||||||
|
|
||||||
Copyright 2007 Nintendo. All rights reserved.
|
|
||||||
|
|
||||||
These coded instructions, statements, and computer programs contain
|
|
||||||
proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
||||||
Company Ltd., and are protected by Federal copyright law. They may
|
|
||||||
not be disclosed to third parties or copied or duplicated in any form,
|
|
||||||
in whole or in part, without the prior written consent of Nintendo.
|
|
||||||
|
|
||||||
$Log: WinOSReport.cpp,v $
|
|
||||||
Revision 1.9 2008/08/28 00:18:26 nakanose_jin
|
|
||||||
lets standard exception style
|
|
||||||
|
|
||||||
Revision 1.8 2008/08/27 04:50:52 nakanose_jin
|
|
||||||
add function and defines
|
|
||||||
|
|
||||||
Revision 1.7 2008/04/19 05:53:32 kondo_masahiro
|
|
||||||
Fixed code to accept RM compiler
|
|
||||||
|
|
||||||
Revision 1.6 2007/11/26 11:25:13 nakanose_jin
|
|
||||||
deal error on ndev
|
|
||||||
|
|
||||||
Revision 1.5 2007/11/02 01:08:06 paul
|
|
||||||
now logging changes
|
|
||||||
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if _WIN32
|
|
||||||
#include <windows.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !_IOP
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <firm.h>
|
|
||||||
#include "WinOSReport.h"
|
|
||||||
|
|
||||||
static OSReportCallback userCB=0;
|
|
||||||
|
|
||||||
#if _WIN32
|
|
||||||
FILE *fpOSReport;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void DebugPrintCallback(const char *pStr) {
|
|
||||||
#if _WIN32
|
|
||||||
//fpOSReport = fopen("OSReport.txt", "a+, ccs=UTF-8");
|
|
||||||
//fpOSReport = fopen("OSReport.txt", "a+");
|
|
||||||
fprintf(fpOSReport, pStr);
|
|
||||||
//fclose(fpOSReport);
|
|
||||||
//OutputDebugString(pStr);
|
|
||||||
#else
|
|
||||||
osTPrintf(pStr);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void DebugPrintCallback2(const char *pStr) {
|
|
||||||
#if _WIN32
|
|
||||||
OutputDebugString(pStr);
|
|
||||||
#else
|
|
||||||
osTPrintf(pStr);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
OSReportCallback SetOSReportPrintCallback(OSReportCallback cb) {
|
|
||||||
OSReportCallback oldCb = userCB;
|
|
||||||
userCB = cb;
|
|
||||||
return oldCb;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pragma warning(disable:4996)
|
|
||||||
|
|
||||||
#if (_MSC_VER) && (_MSC_VER < 1400)
|
|
||||||
#define VSNPRINTF _vsnprintf
|
|
||||||
#else
|
|
||||||
#define VSNPRINTF vsnprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define SIZEDUMP 1024
|
|
||||||
|
|
||||||
static char strdump[SIZEDUMP];
|
|
||||||
#include "wfs_Mutex.h"
|
|
||||||
WFSMutex mxOSReport;
|
|
||||||
|
|
||||||
#if _WIN32
|
|
||||||
void InitMyOSReport(void) {
|
|
||||||
WFSInitMutex(&mxOSReport);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if _WIN32
|
|
||||||
void MyOSReport(const char *format, ...) {
|
|
||||||
if (userCB) {
|
|
||||||
WFSLockMutex(&mxOSReport);
|
|
||||||
va_list ap;
|
|
||||||
va_start(ap, format);
|
|
||||||
VSNPRINTF(strdump, SIZEDUMP, format, ap);
|
|
||||||
userCB(strdump);
|
|
||||||
va_end( ap );
|
|
||||||
WFSUnlockMutex(&mxOSReport);
|
|
||||||
} else {
|
|
||||||
va_list ap;
|
|
||||||
va_start(ap, format);
|
|
||||||
vfprintf(stderr, format, ap);
|
|
||||||
va_end(ap);
|
|
||||||
fflush(stderr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if _WIN32
|
|
||||||
#include <exception>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void MyOSPanic(const char* file, int line , const char* msg, ...) {
|
|
||||||
#if _WIN32
|
|
||||||
MyOSReport(" in \"%s\" on line %d.\n", file, line);
|
|
||||||
if (userCB) {
|
|
||||||
WFSLockMutex(&mxOSReport);
|
|
||||||
va_list ap;
|
|
||||||
va_start(ap, msg);
|
|
||||||
VSNPRINTF(strdump, SIZEDUMP, msg, ap);
|
|
||||||
userCB(strdump);
|
|
||||||
va_end( ap );
|
|
||||||
WFSUnlockMutex(&mxOSReport);
|
|
||||||
} else {
|
|
||||||
va_list ap;
|
|
||||||
va_start(ap, msg);
|
|
||||||
vfprintf(stderr, msg, ap);
|
|
||||||
va_end(ap);
|
|
||||||
fflush(stderr);
|
|
||||||
}
|
|
||||||
throw std::bad_exception();
|
|
||||||
abort();
|
|
||||||
#else
|
|
||||||
osTPanic( "panic");
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ SRCS = \
|
|||||||
|
|
||||||
#LCFILE = # using default
|
#LCFILE = # using default
|
||||||
|
|
||||||
#FIRM_INCDIR = $(CTRBROM_ROOT)/include $(CTRFIRM_ROOT)/include $(FIRM_ROOT)/include
|
#FIRM_INCDIR = $(BROM_ROOT)/include $(FIRM_ROOT)/include $(FIRM_ROOT)/include
|
||||||
|
|
||||||
include $(CTRFIRM_ROOT)/build/buildtools/commondefs
|
include $(CTRFIRM_ROOT)/build/buildtools/commondefs
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,7 @@ SRCS = \
|
|||||||
|
|
||||||
#LCFILE = # using default
|
#LCFILE = # using default
|
||||||
|
|
||||||
#FIRM_INCDIR = $(CTRBROM_ROOT)/include $(CTRFIRM_ROOT)/include $(FIRM_ROOT)/include
|
#FIRM_INCDIR = $(BROM_ROOT)/include $(FIRM_ROOT)/include $(FIRM_ROOT)/include
|
||||||
|
|
||||||
include $(CTRFIRM_ROOT)/build/buildtools/commondefs
|
include $(CTRFIRM_ROOT)/build/buildtools/commondefs
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ GLIBRARIES += $(addsuffix $(FIRM_LIBSUFFIX).a, libnfs$(FIRM_PROFILE_TYPE))
|
|||||||
GLIBRARIES += $(addsuffix $(FIRM_LIBSUFFIX).a, libstd$(FIRM_PROFILE_TYPE))
|
GLIBRARIES += $(addsuffix $(FIRM_LIBSUFFIX).a, libstd$(FIRM_PROFILE_TYPE))
|
||||||
GLIBRARIES += $(addsuffix $(FIRM_LIBSUFFIX).a, libheap$(FIRM_PROFILE_TYPE))
|
GLIBRARIES += $(addsuffix $(FIRM_LIBSUFFIX).a, libheap$(FIRM_PROFILE_TYPE))
|
||||||
|
|
||||||
SRCDIR = . $(CTRFIRM_ROOT)/build/tests/nfs/ARM11 \
|
#SRCDIR = . $(CTRFIRM_ROOT)/build/tests/nfs/ARM11 \
|
||||||
|
|
||||||
INSTALL_DIR = ..
|
INSTALL_DIR = ..
|
||||||
INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN_BASENAME).axf
|
INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN_BASENAME).axf
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user