mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-09 05:47:40 +00:00
main: Add EnsureWorldPakReady
This commit is contained in:
19
include/rstl/auto_ptr.hpp
Normal file
19
include/rstl/auto_ptr.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef _RSTL_AUTO_PTR_HPP
|
||||
#define _RSTL_AUTO_PTR_HPP
|
||||
|
||||
#include "types.h"
|
||||
|
||||
namespace rstl {
|
||||
template < typename T >
|
||||
class auto_ptr {
|
||||
bool x0_has;
|
||||
T* x4_item;
|
||||
|
||||
public:
|
||||
auto_ptr() : x0_has(false), x4_item(nullptr) {}
|
||||
T* get() { return x4_item; }
|
||||
T* operator->() { return get(); }
|
||||
};
|
||||
} // namespace rstl
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user