diff options
| author | 2015-02-13 15:53:34 -0500 | |
|---|---|---|
| committer | 2015-02-13 15:53:34 -0500 | |
| commit | 29a9e4ac25504bee82f273184a1afcc88a3e61e1 (patch) | |
| tree | 9fa96cdc2bc180ac4c5a2c33158ae7cc60f2a308 /src/core/hle/hle.cpp | |
| parent | Merge pull request #571 from lioncash/cleanup (diff) | |
| parent | core: Apply static to local functions (diff) | |
| download | yuzu-29a9e4ac25504bee82f273184a1afcc88a3e61e1.tar.gz yuzu-29a9e4ac25504bee82f273184a1afcc88a3e61e1.tar.xz yuzu-29a9e4ac25504bee82f273184a1afcc88a3e61e1.zip | |
Merge pull request #572 from lioncash/prototypes
core: Apply static to local functions
Diffstat (limited to 'src/core/hle/hle.cpp')
| -rw-r--r-- | src/core/hle/hle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp index 97d73781f..529133ca7 100644 --- a/src/core/hle/hle.cpp +++ b/src/core/hle/hle.cpp | |||
| @@ -22,7 +22,7 @@ static std::vector<ModuleDef> g_module_db; | |||
| 22 | 22 | ||
| 23 | bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a new thread | 23 | bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a new thread |
| 24 | 24 | ||
| 25 | const FunctionDef* GetSVCInfo(u32 opcode) { | 25 | static const FunctionDef* GetSVCInfo(u32 opcode) { |
| 26 | u32 func_num = opcode & 0xFFFFFF; // 8 bits | 26 | u32 func_num = opcode & 0xFFFFFF; // 8 bits |
| 27 | if (func_num > 0xFF) { | 27 | if (func_num > 0xFF) { |
| 28 | LOG_ERROR(Kernel_SVC,"unknown svc=0x%02X", func_num); | 28 | LOG_ERROR(Kernel_SVC,"unknown svc=0x%02X", func_num); |
| @@ -63,7 +63,7 @@ void RegisterModule(std::string name, int num_functions, const FunctionDef* func | |||
| 63 | g_module_db.push_back(module); | 63 | g_module_db.push_back(module); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | void RegisterAllModules() { | 66 | static void RegisterAllModules() { |
| 67 | SVC::Register(); | 67 | SVC::Register(); |
| 68 | } | 68 | } |
| 69 | 69 | ||